show/hide Item of Panelgadget?

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 to show/hide an Item of a Panelgadget.

You can only show/hide the complete panel.

I want for trial functions not showing the complete panel

Suggestion are welcome!

Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.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 El_Choni.

Try:

Code: Select all

ShowWindow_(GadgetID(#Gadget), #SW_HIDE)
And to show it again:

Code: Select all

ShowWindow_(GadgetID(#Gadget), #SW_SHOW)


El_Choni
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 freak.

If it's for a trial function, you should remove it compleetly
from your source.
(Otherwise someone could write a prog, that sends some Message to the
Panel to sho it again and you trial-thing is gone.)

I would use something like:

CompilerIf #Demo = #False
.
.
.
CompilerEndIf

Timo
Post Reply