google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

CheckBox Tristate View on Runtime #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.
The tristate CheckBox control image during project runtime is not changing into 
the shaded ticked box when "None" state is selected, instead it is shown empty 
as in "False" state.
The problem does not seem to exist on the Designer window. When the Value 
property of the control is set to None it is shown correctly on the Designer 
form as a shaded ticked box

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=3.3.2
Architecture=i686
Memory=4069316 kB
DistributionVendor=slackware
DistributionRelease=Slackware 13.37.0
Desktop=Xfce

[Gambas 3]
Version=3.0.0
Path=/usr/local/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2400.4

3) Provide a little project that reproduces the bug or the crash.
N/A

4) If your project needs a database, try to provide it, or part of it.
N/A

5) Explain clearly how to reproduce the bug or the crash.
1. Create an empty form
2. Drag and Drop a CheckBox control to the form
3. Change the control "Tristate" property to "True"
4. Change the control "Value" property to "None"
   - You should be able to see on the Designer window the shaded checked box as expected...
5. "Run" the project and cycle through the CheckBox states by clicking on it
6. The "None" state is visually identical to the "False" state during runtime. 
i.e. "None" state does not show up as a shaded checked box.

Original issue reported on code.google.com by kmanja...@googlemail.com on 18 Apr 2012 at 11:10

GoogleCodeExporter commented 9 years ago
PROBLEM SOLVED

On, Project -> Properties... -> Environment -> Environment variables
Insert:
Variable = GB_GUI
Value    = gb.qt4

The solution was available on the GameOfLife example Gambas Game source code.

Original comment by kmanja...@googlemail.com on 21 Apr 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Not really, as you changed the GUI component. I guess that you used gb.gtk 
indirectly (this is the default with XFCE), and that it may be a problem in the 
GTK+ widget theme.

So can you try other GTK+ widget themes, remove the "GB_GUI=gb.qt4" environment 
variable, and see if the tristate check box is correctly drawn?

Thanks in advance.

Original comment by benoit.m...@gmail.com on 21 Apr 2012 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 21 Apr 2012 at 1:51

GoogleCodeExporter commented 9 years ago
I did try using various Xfce-XX based GTK+ widget themes defined under 
"/usr/share/themes/" on my ~/.gtkrc-2.0 but that didn't seem to solve the 
problem either. 

Original comment by kmanja...@googlemail.com on 22 Apr 2012 at 10:48

GoogleCodeExporter commented 9 years ago
Here is two screenshots of the three states of tristate checkboxes displayed by 
a Gambas program using gb.gtk.

The first one uses Ambiance theme, the seconde one Clearlooks.

What I see seems perfectly normal.

Original comment by benoit.m...@gmail.com on 27 Apr 2012 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
That's proof enough for me there's something wrong on my end and it's not 
related to Gambas. I will continue using the Qt Widget for the time being until 
I get around fixing it. 
Btw, thanks again for taking the time to look into this and please feel free to 
close this issue report...

Regards,
Analekto

Original comment by kmanja...@googlemail.com on 27 Apr 2012 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 28 Apr 2012 at 11:10