>
> Antonio,
>
>   Well it looks like my old brain is failing me again :)
>
> I tried to convert the simple frame.c example to the Create/AddChild
>> format with NO success.
>
>
>> How would one approach this?
>
>
>> James
>
> ==============================================
>
> This is the "c" code for the Create/AddChild.
>
> ==============================================
>
> void AddChild (Ihandle* parent, Ihandle* child)
>
> {
>
>     IupAppend(parent, child);
>
>     IupRefresh(parent);
>
> }
>
>
>>
>> Ihandle* Create (char* Value, char* Attr, Ihandle* parent)
>
> {
>
>     Ihandle*  iHwnd = {0};
>
>     iHwnd = IupCreate( Value);;
>
>     if(iHwnd )
>
>     {
>
>         if(strlen(Attr))
>
>         {
>
>             IupSetAttributes(iHwnd, Attr);
>
>         }
>
>         if(parent )
>
>         {
>
>             AddChild(parent, iHwnd);
>
>         }
>
>         return iHwnd;
>
>     }
>
>     return NULL;
>
> }
>
>
>>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to