KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

the locations are all screwed up in KF .net current build.
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Dec 29, 2005 12:03 am    Post subject: Reply with quote

ok, so with this script below - what part of the tabcontrol are you trying to fill, the little bit of border that exists around the tabpage and the tabcontrol ?

Code:

break on

$System = CreateObject("Kixforms.System")

$Form = $System.Form()

$TabControl = $Form.Controls.Add($System.TabControl())
$TabControl.Dock = $System.DockStyle_Fill

$TabPage = $TabControl.TabPages.Add($System.TabPage())
$TabPage.Text = "TabPage1"
$TabPage.BackColor = $System.Color.IndianRed

$Form.Center
$Form.Show
While $Form.Visible
 $= Execute($Form.DoEvents)
Loop

Exit 0
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 29, 2005 12:35 am    Post subject: Reply with quote

This one:
Code:
break on

$System = CreateObject("Kixforms.System")

$Form = $System.Form()


$TabControl = $Form.Controls.Add($System.TabControl())
$TabControl.Dock = $System.DockStyle_Fill

$TabPage = $TabControl.TabPages.Add($System.TabPage())
$TabPage.Text = "TabPage1"
$TabPage.BackColor = $System.Color.IndianRed
$Button = $TabPage.Controls.Add($System.Button)
$Button.location = $System.Point($TabPage.ClientWidth - 55,$TabPage.ClientHeight - 55)
$Button.size = $System.Size(50,50)
$Button.text = "hello g!"

$Form.Center
$Form.Show
While $Form.Visible
 $= Execute($Form.DoEvents)
Loop

Exit 0

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Dec 29, 2005 12:45 am    Post subject: Reply with quote

k, i see this:


tabpage.jpg
 Description:
 Filesize:  9.1 KB
 Viewed:  638 Time(s)

tabpage.jpg


Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 29, 2005 12:51 am    Post subject: Reply with quote

yes.
hmm, your colors are screwed up. Razz

anyways, you can clearly see that the button is not at the edge of the tabpage.
and that's why I said, docking is not option.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 29, 2005 12:52 am    Post subject: Reply with quote

wow, it actually is the phpBB which does the screwing up.
your image has the correct colors.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Dec 29, 2005 1:06 am    Post subject: Reply with quote

k i see what you mean (by the way, need to click on the image to see true color) ... here's a trick to get it to work ...

$Button.Anchor = 10

This will basically staple the button to a known location prior the tabpage being realized, then when it is realized - the button will snap to where it belongs.

Thinking about a better solution though - may mean some new properties need implementing.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group