PDA

View Full Version : Hide and Show



Scampula
11-25-2003, 11:08 AM
I would like to know if I am missing something here.. I have looked in all the documents and help files that I can find and I can not seem to find anywhere what the replacement codes are for the page.HideObject and page.ShowObject.

I have hundreds of these lines in my programs to allow items to overlay in the same space at diffrent times. Am I to understand that this WONDERFUL feature of AMS4 is not here anyplace?

This is a small example of the comands I am talking about...

""
IF (%DiskSetYes% = YES)
Page.ShowObject ("MultiDisk")
Page.ShowObject ("MultiDisk2")
Page.ShowObject ("MultiON")
ELSE
Page.HideObject ("MultiDisk")
Page.HideObject ("MultiDisk2")
Page.HideObject ("MultiON")
END IF
Page.HideObject ("MediaPlayer")
Page.HideObject ("MediaFullScreen")
Page.HideObject ("BegMedia")
Page.HideObject ("AVIPlayer")
Page.HideObject ("MediaPlay")
Page.HideObject ("ENDMedia")
Page.HideObject ("MediaPause")
Page.HideObject ("FlashPlayer")
Page.HideObject ("BEGFlash")
Page.HideObject ("FrameRFlash")
Page.HideObject ("FlashPlay")
Page.HideObject ("FrameFFlash")
Page.HideObject ("ENDFlash")
Page.HideObject ("FlashPause")
Page.HideObject ("QuickDirections")
Page.HideObject ("QuickBack")
""

Thanks: Scampula..

TJ_Tigger
11-25-2003, 11:29 AM
Each object on the page now has a new parameter entitled Visible. You can set the visibility within each objects actions.

such as
Button.SetVisible("Button1", true);
ListBox.SetVisible("ListBox1",true);
Flash.SetVisible("flash1", true);

so on and so forth.

HTH

eric_darling
11-25-2003, 05:31 PM
Heh...

Yeah, getting used to the new version seems daunting at first, but once you figure out the key stuff, it's a lot better.