I tested the following sample in Ubuntu 16.04 with GTK 3.18, the
selection is now back to orange.

  There is one difference from the code you sent me, the imediate child of
the IupFlatTabs should be a native container for better function of the
tabs, like IupBackgroundBox. But I don't think this affects the selection
color.

Best,
Scuri


2018-03-08 14:56 GMT-03:00 許永寬 <nagahiro....@gmail.com>:

> Thank for your effort! But still the same, am I miss something?
>
> 2018-03-08 5:27 GMT+08:00 Antonio Scuri <antonio.sc...@gmail.com>:
>
>>   Fixed and committed to SVN.
>>
>> Best,
>> Scuri
>>
>>
>> 2018-03-07 12:29 GMT-03:00 Antonio Scuri <antonio.sc...@gmail.com>:
>>
>>>   Hi Ranier,
>>>
>>>   Sometimes to update GTK can be very tricky. So we usually build using
>>> the GTK that is installed on the system. This is specially true for
>>> older systems and we have many of those...
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>> 2018-03-07 11:13 GMT-03:00 Antonio Scuri <antonio.sc...@gmail.com>:
>>>
>>>>  Ok. I'll do some tests here.
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>>> Em 7 de mar de 2018 10:02 AM, "許永寬" <nagahiro....@gmail.com> escreveu:
>>>>
>>>>> It's:
>>>>> GTK Version=3.18.9
>>>>> GTK Dev Version=3.18.9
>>>>>
>>>>>
>>>>> 2018-03-07 20:14 GMT+08:00 Antonio Scuri <antonio.sc...@gmail.com>:
>>>>>
>>>>>>   Hi,
>>>>>>
>>>>>>   Thanks for the feedback.
>>>>>>
>>>>>>   You have installed both GTKs, but I need to know which GTK that IUP
>>>>>> is using. You can do this, after IupOpen:
>>>>>>
>>>>>> printf("GTK Version=%s", IupGetGlobal("GTKVERSION"));
>>>>>> printf("GTK Dev Version=%s", IupGetGlobal("GTKDEVVERSION"));
>>>>>>
>>>>>>   They should be equal.
>>>>>>
>>>>>> Best,
>>>>>> Scuri
>>>>>>
>>>>>> 2018-03-07 9:07 GMT-03:00 許永寬 <nagahiro....@gmail.com>:
>>>>>>
>>>>>>> Dear Scuri:
>>>>>>>
>>>>>>> The picture about the issue:
>>>>>>> https://i.imgur.com/JPtF0Rj.png
>>>>>>>
>>>>>>> Top one is the GTK version
>>>>>>> Bottom-L is use IupTabs, the selection and V-scrollbar is show
>>>>>>> correctly
>>>>>>> Bottom-R is use IupFlatTabs, the selection become same color as
>>>>>>> background and the V-scrollbar is disappear( but can work)
>>>>>>>
>>>>>>> 2018-03-07 7:19 GMT+08:00 Antonio Scuri <antonio.sc...@gmail.com>:
>>>>>>>
>>>>>>>>   Ok.
>>>>>>>>
>>>>>>>>   You had a similar issue in October last year, right?
>>>>>>>>
>>>>>>>>   Can you check what is the GTK version on your system?
>>>>>>>>
>>>>>>>>   And send screenshots of the problem with IupTabs and IupFlatTabs?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Scuri
>>>>>>>>
>>>>>>>>
>>>>>>>> 2018-03-06 14:47 GMT-03:00 許永寬 <nagahiro....@gmail.com>:
>>>>>>>>
>>>>>>>>> Sorry, I'm test on Linux mint 18.3 Cinnamon 64bit, I also compile
>>>>>>>>> same code on Win7, it is OK no problem~
>>>>>>>>>
>>>>>>>>> 2018-03-07 1:45 GMT+08:00 許永寬 <nagahiro....@gmail.com>:
>>>>>>>>>
>>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------
>>>>>>>> ------------------
>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------
>>>>>>> ------------------
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------
>>>>>> ------------------
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------
>>>>> ------------------
>>>>> 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
>>>>>
>>>>>
>>>
>>
>> ------------------------------------------------------------
>> ------------------
>> 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
>>
>>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>

Attachment: tabs_text.cpp
Description: Binary data

------------------------------------------------------------------------------
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