October 29, 2025, 03:51:57 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


hide - show a button in a window

Started by Andy, September 11, 2009, 02:59:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

Hi Everyone,

Has anybody got an example of how to hide a button and then later show the button again in a window ? I have looked at the example programs and searched the forum but cannot find what i'm looking for, or maybe i'm overlooking something simple ?

What I want to is:

1. open a window - no problem
2. Print some information in the window - no problem
3. have two buttons that say "Next" and "Previous" - no problem

ok no problems so far

When you click "next" it clears the window of any information and reads then displays the next record, same for the "previous" button - again no problem

Depending on the criteria of what is printed, I want a button called "Enable" to be either hidden or to be shown in the window when you click "next" or "previous" - the only way I can do this at the moment is to close and then re-open the window.

Please any help would be great,
Andy.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

See the SHOWWINDOW command in the help file.

create the control then use

SHOWWINDOW mywnd, @SWHIDE, mycontrol

SHOWWINDOW mywnd, @SWRESTORE, mycontrol
or
SHOWWINDOW mywnd, @SWSHOW, mycontrol


Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

Hi Larry,

Thanks very much, yes it works of course !

Just couldn't see the wood for the trees.

Thanks again !!!!
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.