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

Problems with .Anchor on GroupBoxes

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Nov 02, 2004 1:54 pm    Post subject: Problems with .Anchor on GroupBoxes Reply with quote

Seems to be a buggy boo which I thought was fixed back when GroupBoxes replaced Frames Confused

I stripped down a current project of mine to the essential to outline a drawing bug on maximising a form where two groupboxes are placed side by side with a different .Anchor style:

Code:
break on

$s               = createobject("Kixtart.System")
$f               = $s.form()
$f.Text          = "Maximise the form to see Issue with Anchor"
$f.SizeGripStyle = 1
$f.MinimumSize   = 500,400
$f.Size          = 550,480

$tabs            = $f.Controls.TabControl()
$tabs.SizeMode   = 2
$tabs.Dock       = 5

$tab1            = $tabs.Controls.TabPages.Add("Tab1")
$tab2            = $tabs.Controls.TabPages.Add("Tab2")
$tab3            = $tabs.Controls.TabPages.Add("Tab3")

$g1              = $tab1.Controls.GroupBox("GroupBox1", 3, 5, 270, $tab1.ClientHeight - 70)
$g1.Anchor       = 3

$g2              = $tab1.Controls.GroupBox("GroupBox2", $g1.Right + 3, 5, $tab1.ClientWidth - 279, $tab1.ClientHeight - 70)
$g2.Anchor       = 15

$f.show

while $f.Visible
    $ = execute($f.DoEvents)
loop

exit 0


[edit: Sorry, forgot to mention ... Windows 2000 SP4 , kix 4.50 A2, Kixforms 2.4.0 build 46/Special build 5]

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Nov 04, 2004 9:15 am    Post subject: Reply with quote

Right! Stop, please ignore me up there!

It took me almost 2 days to recognize that I forgot to anchor the controls to the left edge of the container Stunned

Never tried to resize the form on the left edge until yesterday night and then I saw the light ... Halleluja brother Embarassed

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Nov 04, 2004 1:08 pm    Post subject: Reply with quote

Hey cappy, I missed this post ... you even had a demo snippet to go with it. Glad you sorted things out.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
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