Dear Scuri:

I test below at IUP3.23 / 3.24, the selection of IupText is the same as
background color( can't see ), but it's OK if using IupTabs

D Language:
void main()
{
    if( IupOpen( null, null ) == IUP_ERROR )
    {
        Stdout( "IUP open error!!!" ).newline;
        return;
    }

    Ihandle* mainDlg = IupDialog( null );
    IupSetHandle( "MAIN_DIALOG", mainDlg );
    IupSetAttributes( mainDlg, "SHRINK=YES,SIZE=300x200,TITLE=TEST" );


    Ihandle* text0 = IupText( null );
    IupSetAttributes( text0, "EXPAND=YES,MULTILINE=YES=YES,WORDWRAP=YES" );

    Ihandle* text1 = IupText( null );
    IupSetAttributes( text1, "EXPAND=YES,MULTILINE=YES=YES,WORDWRAP=YES" );

    //Ihandle* tabs = IupTabs( text0, text1, null );
    Ihandle* tabs = IupFlatTabs( text0, text1, null );
    IupSetAttributeId( tabs, "TABTITLE", 0, "TEST0" );
    IupSetAttributeId( tabs, "TABTITLE", 1, "TEST1" );

    IupAppend( mainDlg, tabs );

    // Shows dialog
    IupShow( mainDlg );


    //IUP main Loop
    IupMainLoop();
    IupClose();
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to