Frame around window

Post Reply
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Frame around window

Post by Natter »

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 ?
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Frame around window

Post by ukoenig »

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.
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Frame around window

Post by Natter »

What an example to look at ?
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Frame around window

Post by ukoenig »

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.
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Frame around window

Post by Natter »

Yes, but can do/remove the border via SetWindowLong() ?
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Frame around window

Post by ukoenig »

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.
Post Reply