Frame around window

Frame around window

Postby Natter » Thu Jun 20, 2019 8: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 ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Frame around window

Postby ukoenig » Thu Jun 20, 2019 9:09 am

Working on a nice sample with different border-styles :wink:

The solution You are looking for :?:

A main-window
3 child-windows
The first one got the focus

Image

regards
Uwe :D
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: Frame around window

Postby Natter » Thu Jun 20, 2019 9:40 am

What an example to look at ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Frame around window

Postby ukoenig » Thu Jun 20, 2019 9: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Frame around window

Postby Natter » Thu Jun 20, 2019 10:16 am

Yes, but can do/remove the border via SetWindowLong() ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Frame around window

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 72 guests