Hide Window ContentsI am attempting to use a button press to reveal the remaining information for a window. The user will pick a date range and that date range will be used to ping a SQL server to populate a table containing data from the matching range. Then I want to be able to use data from the table to allow the user to then make a second selection. This selection will further narrow the table down at which point it would be displayed. I am attempting to use the Unhide Next Item with a Button Box, but the items I am trying to hide do not understand the < command. Is there a better way to do this? From what I can tell only Text Boxes can be hidden?
New Window("XYZTEC Data Pull",
<Re: Hide Window ContentsBoth of these seem to be able to do what I want, however Mark's solution was easier for me to implement the way I wanted. I think if this was a more critical program Jim's solution could provide a cleaner result. However, Mark's works awesome for what I needed.
Thank you both!
Re: Hide Window ContentsJim's solution offers a lot of flexibility. I often use the Visibility( "Visible" | "Hidden" | "Collapse" ) display box attribute when simple is sufficient. You can set this initially as in
New Window( "You Can't See Me",
Button Box( "I'm Hiding", expression, << Visibility( "Collapse" ) )
);
Then I use a script or function in another control to make the button visible. You can also leave the button visible but disable it. It depends oh the design of your user interface.
Re: Hide Window ContentsHere is the method that I use to Hide and UnHide items within a Display Window
Names Default To Here( 1 );
HiddenButton = Button Box( "hidden" );
New Window( "Hidden",
modal,
MyVLB = V List Box(
ViewingBB = Button Box( "Click to UnHide",
ViewingBB << delete;
MyVLB << append( HiddenButton );
)
)
);