Previous Thread
Next Thread
Print Thread
AUI: ParentID question/problem #36873 13 Dec 23 06:54 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Good day-

I am trying to populate a static text box on the main ate window, but ashell in its infinite wisdom is adding a parentID of the last known dialog. (i can prove this by dumping the screen controls). I have been all over this for the past 3 hours and can't find a reason. It was sharing a bottom border and i thought aha thats it but moving it was no help. I can't seem to force AUI to leave parentID to null.

Here is the type info: AUI'TYPE=MBF_STATIC+MBF_CENTER

Then i said ill use MBF_NODLGPARENT! But that is apparently only for dialogs. So how do i force the parentID on this AUI call to be 0?

Jack - i can give you a local recipe if you need/want to put eyes on it.

TIA

Re: AUI: ParentID question/problem [Re: Frank] #36875 13 Dec 23 07:42 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
I was about to tell you to read the History note at the bottom of the AUI_CONTROL -> parentid topic, but then realized that: a) it refers to dialogs not child controls, and b) it doesn't work for child controls.

I thought you'd be able to set the parentid explicitly to -1, but that also appears to only work for dialogs.

However, eventually I stumbled on MBF2_NOAUTOPARENT, which does the trick.

I'm sorry we didn't make that very easy to find in the doc. I'll have to take Ty to the woodshed to see if we can work that out.

Re: AUI: ParentID question/problem [Re: Frank] #36876 13 Dec 23 07:44 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Thanks for the digging! Let me give that a shot...

BINGO! Thanks again...

Last edited by Frank; 13 Dec 23 08:05 PM.

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3