Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hide/unhide
#1
Hi there,

I have a question...

Is it possible to set an item (button) for example in a dialog invisible, and after the moment a selection has been done in a listbox, it becomes visible, if the selection changes it becomes invisible again.

I tried a few things but nothing works for me.

So how can 1 set items invisible in the first place (i know i can select WS_visible) but afterwards i cannot get them active/visible anymore.

Plz give an example...

TIA

Freggel
#2
Code:
Copy      Help
Hide or show window
Syntax1 - set state
hid[-] [window]

;
Syntax2 - get state
int hid(window)

;

Parts
window - top-level or child window. If omitted, uses active window (with hid), or last hidden window (with hid-).

Options: - show. Default: hide.

;

Remarks
Syntax1

Hides or shows window.

;

Syntax2

Returns 1 if window is hidden, or 0 if visible. Alternatively, use IsWindowVisible function.

;

Tips

If hidden is active window, it may stay active even if invisible. Then after hid use act to activate next window (see example).

To unhide and activate, you can use act instead of hid-.

;

;Examples
hid "Notepad"  hide "Notepad"
hid- "Notepad"  unhide "Notepad"
hid-  unhide last hidden window
;
;Hide Notepad and make next window active:

int h=win("Notepad")
hid h
if(h=win) act


Forum Jump:


Users browsing this thread: 1 Guest(s)