Quote:
|
Originally Posted by Zonx
So my suggested method for dealing with this sortta thing is to give each MemberPage a dummy OnShow for each configuration.
OnShowV="all the resize and location stuff you want to happen to this MemberPage when layout is set to vertical"
OnShowH="all the resize and location stuff you want to happen to this MemberPage when layout is set to horizontal"
Now all your ConfigH button has to do is set MemberPage#.OnShow=MemberPage#.OnShowH for each member.
Do the same type thing for OnHides.
Maybe toss in...
MemberPage.Visible=! MemberPage.Visible=!
to double toggle visibility of each member and force the window to reconfig while grouped.
|
As an example then:
ToggleSizeButton.OnPress=parent.groupmember2.Onshow=groupmember2.OnShowH Onpress=Press2
ToggleSizeButton.Press1=parent.groupmember2.Onshow=groupmember2.OnShowH Onpress=Press2
ToggleSizeButton.Press2=parent.groupmember2.Onshow=groupmember2.OnShowV Onpress=Press1
-------------------------------------------
GroupMember2.OnShowV="parent.size=240,90" "shift postions code here"
GroupMember2.OnHideV="parent.size=240,45" "shift postions code here"
-----
GroupMember2.OnShowH="parent.size=480,45" "shift postions code here"
GroupMember2.OnHideH="parent.size=240,45" "shift postions code here"
-----------------
All I hafta do is figure out how to shift positions. Heh.
THanks, that helps alot.
Darrin