How show/hide Imagegadget

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

How can I show /hide an ImageGadet?

Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

Try this:

Code: Select all

  
Procedure HideGadget(GadgetID)
  ShowWindow_(GadgetID,#SW_HIDE)
EndProcedure
  
Procedure ShowGadget(GadgetID)
  ShowWindow_(GadgetID,#SW_SHOW)
EndProcedure
Keep in mind that GadgetID is the ID (handle) not the purebasic gadget number!


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
Post Reply