OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: CADwiesel on October 04, 2016, 02:24:08 AM

Title: Palette to foreground in Brics
Post by: CADwiesel on October 04, 2016, 02:24:08 AM
i uses often self designed Palettes. But they are mostly behind the Property and Text window of Bricscad. When they are foldet to the Barn, and now you move over the Mouse, they are expanding but mostly in the back, not in the front.
How is it possible, to bring the Palette to foreground?
Title: Re: Palette to foreground in Brics
Post by: owenwengerd on October 06, 2016, 01:55:18 PM
Do I understand correctly that your Properties palette and Text window are also floating, and your floating palette rolls out behind those other floating palettes? Which version of BricsCAD?
Title: Re: Palette to foreground in Brics
Post by: CADwiesel on October 10, 2016, 01:47:07 AM
Hi Owen,
yes, correct!
Im testing now on V15.2, 16.2 and 17 I cant find no rule for this. Im using the Bricscad Application with opened Property bar.
Sometimes my Palettes opens behind the Propertys window and won't come to the foreground-even not, when i click on the Palette bar or move my palette to another place on the Screen. I have to close the Property Bar first.
Title: Re: Palette to foreground in Brics
Post by: owenwengerd on October 10, 2016, 05:46:28 AM
Sorry, I could not reproduce the problem in V17. I wonder if it is related to your graphics hardware or driver.
Title: Re: Palette to foreground in Brics
Post by: Fred Tomke on October 28, 2016, 03:16:00 AM
Hi, Martin, can you reproduce this with an empty palette (without any controls and events)? Maybe something prevents the palette to come to front.
@Owen: I think about an additional function to use the window shell32 P/Invoke method SetForegroundWindow. Would this help?

Regards, Fred
Title: Re: Palette to foreground in Brics
Post by: owenwengerd on November 03, 2016, 04:37:52 PM
Quote from: Fred Tomke on October 28, 2016, 03:16:00 AM
@Owen: I think about an additional function to use the window shell32 P/Invoke method SetForegroundWindow. Would this help?

Calling SetForegroundWindow is almost always a bad idea. We need to know the underlying reason. Testing with an empty palette is an excellent idea.