Page 1 of 1

A problem < keep on top >

PostPosted: Sat Nov 11, 2017 4:15 pm
by ukoenig
I tested different solutions to keep
a App on top.

As soon I change the focus it goes to the taskbar

From FWH-samples
changing the focus ( editor ) the test goes to the taskbar.

Image

Another solution with the same effect.

FUNCTION TOP_CLOSE(nType)

hWnd := FindWnd( "Keeping at top" ) // Title !!!
IF hWnd != NIL
IF ISICONIC( hWnd )
SHOWWINDOW( hWnd, SW_RESTORE )
ENDIF
IF nType = 1
SETFOREGROUNDWINDOW( hWnd )
ENDIF
IF nType = 2
SENDMESSAGE( hWnd, WM_CLOSE )
ENDIF
//ELSE
// MsgAlert( "COLORPICKER is not running !", "Attention" )
ENDIF

RETURN NIL


Is there any solution to stay on top even changing the focus ?

regards
Uwe :?:

Re: A problem < keep on top >

PostPosted: Sat Nov 11, 2017 6:00 pm
by Marc Venken
Uwe. I tested it, but here the program always stays on top !!

I had to push the left button once, but I suppose you did also ?

I see that this would be very usefull for the colorpicker