A problem < keep on top >

A problem < keep on top >

Postby ukoenig » Sat Nov 11, 2017 4:15 pm

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 :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: A problem < keep on top >

Postby Marc Venken » Sat Nov 11, 2017 6:00 pm

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
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1338
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 7 guests