Prevent Embedded ABL window from minimising when Parent ABL

Posted by MBeynon on 08-May-2013 02:41

Hi,

I have an ABL window embedded in a .NET form. The form is called by a purely ABL window. When the calling window is minimised the embedded ABL/.NET form minimises too.

Is there any way to prevent the embedded window from doing this?

Thanks.

Mark.

P.S. If any more information is required please ask and I'll be happy to supply it.

All Replies

Posted by Admin on 08-May-2013 02:45

Sounds like the Embedded ABL Window is still parented to your ABL based main window.

Don't do that.

Posted by MBeynon on 08-May-2013 02:53

Do you know how I can unparent it?

Thanks.

Posted by Admin on 08-May-2013 03:00

Somewhere, maybe in your standard include files, you must be setting the PARENT attribute of the second window.

From the ABL docs:

"For ABL windows, the parent widget is another window that parents this window. The main feature of these window families is that when the parent window is minimized, all of its child windows are hidden"

Posted by MBeynon on 08-May-2013 03:17

I figured out what it was. There was a line in my .NET form:

THIS-OBJECT:ProWinHandle:PARENT = LV_MAIN_STUB_HANDLE:CURRENT-WINDOW

I had completely missed it!

Mark.

This thread is closed