To show them move them back to correct position by using MoveWindow>Object Name*,CORRECT_X_POS,CORRECT_Y_POS
Code: Select all
Dialog>Dialog1
Caption=Hide and Show Objects
Width=392
Height=216
Top=CENTER
Left=CENTER
Max=1
Min=1
Close=1
Resize=1
Button=Button 1,8,8,121,25,10
Button=Button 2,8,40,121,25,10
Edit=msEdit1,8,80,121,My Edit
Memo=MyMemo,144,8,97,97,My Memo
CheckBox=msCheckBox1,Check This,8,112,97,False
ListBox=msListBox1,248,8,121,97,Option 1%CRLF%Option 2
ComboBox=msComboBox1,8,136,121,Option 1%CRLF%Option 2
RadioGroup=msRadioGroup1,Select,144,112,97,49,Select 1%CRLF%Select 2,0
ProgressBar=msProgressBar1,248,128,121,17,0
EndDialog>Dialog1
Show>Dialog1
//Hide objects by moving them to a negative position
MoveWindow>Button 1*,-5000,-5000
MoveWindow>Button 2*,-5000,-5000
MoveWindow>My Edit*,-5000,-5000
MoveWindow>My Memo*,-5000,-5000
MoveWindow>Check This*,-5000,-5000
MoveWindow>msListBox1*,-5000,-5000
MoveWindow>Option *,-5000,-5000
MoveWindow>Select*,-5000,-5000
MoveWindow>msProgressBar1*,-5000,-5000
Label>Show_Hide_Loop
Wait>1
GetDialogAction>Dialog1,r
if>r=2,Exit
//Show objects by moving them back to the correct position
MoveWindow>Button 1*,8,8
MoveWindow>Button 2*,8,40
MoveWindow>My Edit*,8,80
MoveWindow>My Memo*,144,8
MoveWindow>Check This*,8,112
MoveWindow>msListBox1*,248,8
MoveWindow>Option *,8,136
MoveWindow>Select*,144,112
MoveWindow>msProgressBar1*,248,128
Wait>1
GetDialogAction>Dialog1,r
if>r=2,Exit
//Hide objects by moving them to a negative position
MoveWindow>Button 1*,-5000,-5000
MoveWindow>Button 2*,-5000,-5000
MoveWindow>My Edit*,-5000,-5000
MoveWindow>My Memo*,-5000,-5000
MoveWindow>Check This*,-5000,-5000
MoveWindow>msListBox1*,-5000,-5000
MoveWindow>Option *,-5000,-5000
MoveWindow>Select*,-5000,-5000
MoveWindow>msProgressBar1*,-5000,-5000
Goto>Show_Hide_Loop
Label>Exit
Rain