Page 1 of 1
Frame around window
Posted: Thu Jun 20, 2019 8:05 am
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 ?
Re: Frame around window
Posted: Thu Jun 20, 2019 9:09 am
by ukoenig
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
Re: Frame around window
Posted: Thu Jun 20, 2019 9:40 am
by Natter
What an example to look at ?
Re: Frame around window
Posted: Thu Jun 20, 2019 9:44 am
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
Re: Frame around window
Posted: Thu Jun 20, 2019 10:16 am
by Natter
Yes, but can do/remove the border via SetWindowLong() ?
Re: Frame around window
Posted: Thu Jun 20, 2019 11:47 am
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