FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem < keep on top >
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A problem < keep on top >
Posted: Sat Nov 11, 2017 04: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.



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.
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: A problem < keep on top >
Posted: Sat Nov 11, 2017 06: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.08 with Harbour

Continue the discussion