Page 1 of 1

Posted: Sun Mar 02, 2003 8:37 pm
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

Posted: Sun Mar 02, 2003 10:22 pm
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

Posted: Sun Mar 02, 2003 11:20 pm
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