Ejemplo n.º 1
0
static void copyLBLinetoEditCtl( unsigned index )
{
    char        *lb_item;
    unsigned    len;

    lb_item = uimalloc( MAX_EDIT_LINE_LEN );
    GetListBoxItem( &listData, index, lb_item, MAX_EDIT_LINE_LEN );
    len = strlen( lb_item );
    uifree( editCtl.buffer );
    editCtl.buffer = lb_item;
    editCtl.length = len;
    uiupdateedit( curHelpDialog, editVField );
    uiprintfield( curHelpDialog, editVField );
}
Ejemplo n.º 2
0
void GUIRefreshControl( gui_window *wnd, unsigned id )
{
    a_dialog    *ui_dlg_info;
    bool        colours_set;
    VFIELD      *field;

    field = GUIGetField( wnd, id );
    if( field != NULL ) {
        ui_dlg_info = GUIGetDialog( wnd );
        if( ui_dlg_info != NULL ) {
            colours_set = GUISetDialColours();
            uiprintfield( ui_dlg_info, field );
            if( colours_set ) {
                GUIResetDialColours();
            }
        }
    }
}