Thanks,
I figured out the problem. I was doing this:
iup.Append(split,iup.vbox{bt})
iup.Append(split,iup.vbox{at})
iup.Map(bt)
iup.Map(at)
iup.Refresh(dlg)
since I was not mapping the vbox which was the actual child appended I was
not seeing it. After mapping the vbox elements instead of the text boxes it
works fine.
Thanks,
Milind
On Thu, Nov 6, 2014 at 8:53 AM, Antonio Scuri <[email protected]>
wrote:
> > On doing iup.LayoutDialog for my main dialog I don't see those text
> boxes inside the split.
>
> That's relevant. Even if the layout is not updated the text boxes should
> apear at least on the tree at left on the iup.LayoutDialog. This means that
> the IupAppend failed.
>
> In a simple test I did:
>
> split = IupSplit(NULL, NULL);
> ...
>
> IupShow(dlg);
>
> IupAppend(split, bt);
> IupAppend(split, ml);
> IupMap(bt);
> IupMap(ml);
> IupRefresh(dlg);
>
> Instead of simply:
>
> split = IupSplit(bt, ml);
>
> And it works. Please, check this on your code.
>
> Best,
> Scuri
>
>
> On Thu, Nov 6, 2014 at 2:41 PM, Milind Gupta <[email protected]>
> wrote:
>
>> I tried that but it still doesn't work. On doing iup.LayoutDialog for my
>> main dialog I don't see those text boxes inside the split. Append returns
>> the parent split handle.
>>
>> Milind
>>
>>
>> On Thu, Nov 6, 2014 at 4:10 AM, Antonio Scuri <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> You should update the dialog layout using iup.Refresh.
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>> On Thu, Nov 6, 2014 at 5:33 AM, Milind Gupta <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>> I am trying to add 2 text boxes to iup.split after I create it
>>>> (and the main dialog is already visible) using iup.Append. The text boxes
>>>> are created after the dialog was already visible. I then call iup.Map for
>>>> the 2 text boxes. But the text boxes do not show up in the split control.
>>>> How can I make them show up?
>>>>
>>>> Thanks,
>>>> Milind
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Iup-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Iup-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users