There is no need for IupRefresh for every IupAppend. Actually this will slow down a lot the creation process.
Despite that the C code you sent looks ok. Best, Scuri On Mon, Dec 14, 2015 at 9:12 AM, James Fuller <jcfulle...@gmail.com> wrote: > 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 > >
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users