Forms( TUniForm )
Rendering a FORM:
No Evento OnBEFORESHOW adicione:
rc_RenderLayout( Self, true, true, true );
FORMS in UNIGUI have a slightly different rendering than FRAMES and, depending on your layout, you may need to also use:
In the OnFormCREATE event add:
rc_RenderLayout( Self, false, false, false, false );
Ex: frmGenericModalForm, untDEMOWITHFORMMODAL...
Note:
When creating a new form using RC ELEMENTs, these functions are already inserted by default.
Migration:
When inserting a form created with standard UNIGUI into a RadCORE project, you need to add these functions.
IMPORTANT
> In rendering the frame or form, add the units: Untdm_rc and Mkm_layout
> When your form is not being called by the MAIN MENU, it is necessary to add the following line in the FormDestroy event:
mm.varC_Form_Modal := nil;
This will prevent when a MODAL FORM is active, the "dbGridUpdate" is not executed on what is "below" the MODAL, saving processing.
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator