FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Frame around window
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Frame around window
Posted: Thu Jun 20, 2019 08:05 AM

Hi, all !

There are several modeless Windows on the screen. Is it possible to make a frame (shadow) appear around the window when the window receives focus, and when the focus is lost, this shadow disappears ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Frame around window
Posted: Thu Jun 20, 2019 09:09 AM
Working on a nice sample with different border-styles :-)

The solution You are looking for :-)

A main-window
3 child-windows
The first one got 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: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Frame around window
Posted: Thu Jun 20, 2019 09:40 AM

What an example to look at ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Frame around window
Posted: Thu Jun 20, 2019 09:44 AM
It means the child-windows with titles and systembuttons :-)

There are several modeless Windows on the screen. Is it possible to make a frame (shadow)
appear around the window when the window receives focus, and when the focus is lost,
this shadow disappears ?


I can show / use a normal window with border and draw a colored shadow around on focus ( a little bit different )
Is that what You want :-)

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: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Frame around window
Posted: Thu Jun 20, 2019 10:16 AM

Yes, but can do/remove the border via SetWindowLong() ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Frame around window
Posted: Thu Jun 20, 2019 11:47 AM
Yes, but can do/remove the border via SetWindowLong() ?


I found a information to change the window-style

//* New: New function __ChangeStyleWindow( hWnd, nStyle, nStyleType, lAdd ) in etc.prg, provided by:
//Hernan Diego Ceccarelli! It allows to change the style of a window, dialog or control in runtime.

maybe a solution for a visible border-change on focus and lostfocus

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.

Continue the discussion