Пример #1
0
STATIC void *sampleCreateWin( void )
/**********************************/
{
    a_window            *wnd;
    wnd_create_struct   info;
    char                *title;

#define TITLE_LEN       255

    title = alloca( TITLE_LEN );
    if( title == NULL ) return( NULL );
    WndInitCreateStruct( &info );
    snprintf( title, TITLE_LEN, LIT( Sample_Data ), CurrSIOData->samp_file_name );
    info.text = title;
    info.info = &WPSampleInfo;
    info.extra = CurrSIOData;
//    info.colour = GetWndColours( class );
    info.title_size = STATUS_ROW + 1;
    info.style |= GUI_INIT_INVISIBLE;
    wnd = WndCreateWithStruct( &info );
    if( wnd == NULL ) return( wnd );
//    WndSetFontInfo( wnd, GetWndFont( wnd ) );
//-//    WndSetSysFont( wnd, P_TRUE );
    WndClrSwitches( wnd, WSW_MUST_CLICK_ON_PIECE|WSW_ONLY_MODIFY_TABSTOP );
    WndSetSwitches( wnd, WSW_RBUTTON_CHANGE_CURR );
    return( wnd );
}
Пример #2
0
a_window WndCreate( char *title, wnd_info *wndinfo, wnd_class wndclass, void *extra )
{
    wnd_create_struct   info;

    WndInitCreateStruct( &info );
    info.title = title;
    info.info = wndinfo;
    info.wndclass = wndclass;
    info.extra = extra;
    return( WndCreateWithStruct( &info ) );
}
Пример #3
0
a_window W8Open( void )
{
    wnd_create_struct   info;

    WndInitCreateStruct( &info );
    info.title = "Bar Graph";
    info.info = &W8Info;
    info.wndclass = CLASS_W1;
    info.extra = NULL;
    return( WndCreateWithStruct( &info ) );
}
Пример #4
0
a_window *W7Open( void )
{
    wnd_create_struct   info;

    WndInitCreateStruct( &info );
    info.scroll |= GUI_VTRACK;
    info.title = "Numbers";
    info.info = &W7Info;
    info.wndclass = CLASS_W1;
    info.extra = NULL;
    return( WndCreateWithStruct( &info ) );
}
Пример #5
0
a_window W6Open( void )
{
    wnd_create_struct   info;
    a_window            wnd;

    WndInitCreateStruct( &info );
    info.info = &W6Info;
    info.style |= GUI_INIT_INVISIBLE | GUI_POPUP;
    wnd = WndCreateWithStruct( &info );
    WndSetFontInfo( wnd, "-13 0 0 0 700 0 0 0 0 1 2 1 18 \"MS Serif\"" );
    WndForcePaint( wnd );
    WndShrinkToMouse( wnd, &W6Metrics );
    GUIShowWindow( WndGui( wnd ) );
    return( wnd );
}
Пример #6
0
void WndInitWndMain( wnd_create_struct *info )
{
    WndInitCreateStruct( info );
    info->style |= GUI_INIT_INVISIBLE;
}