google-code-export / gambas

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

Command Button Transparency Found #363

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.
Command button background disappears (not visible) after cron job or 
screensaver use.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=3.2.0-35-generic-pae
Architecture=i686
Memory=3095920 kB
DistributionVendor=Ubuntu
DistributionRelease="Kubuntu 12.04.1 LTS"
Desktop=KDE4

[Gambas 2]
Version=2.23.1
Path=/usr/bin/gbx2

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

[Libraries]
Qt4=libQtCore.so.4.8.2
GTK+=libgtk-x11-2.0.so.0.2400.10

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

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

5) Explain clearly how to reproduce the bug or the crash.
graphics attached / before & after - I created a Gambas project with a number 
of command buttons. The 'Today' button retrieves a 48x48 icon with today's date 
in the icon so when the project runs today's date is shown in the icon of 
'Today.'

This works well in IDE. Works well in starting the compiled version. 
Unfortunately it doesn't work from a cron job or when the visible window goes 
away after the screensaver activity. The background of the command button does 
not show. Nothing. Rien.

This is a good effect if it can be controlled unfortunately when the background 
goes, I cannot bring it back.

I cannot find an option for command button transparency but I may have 
inadvertently found it!

This is a definite bug but who wants to claim ownership. I'll start with Gambas 
and then move on.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

Original issue reported on code.google.com by t4769_a...@cogeco.ca on 7 Dec 2012 at 10:07

Attachments:

GoogleCodeExporter commented 9 years ago
Please provide a little project that reproduces the bug!

Original comment by benoit.m...@gmail.com on 8 Dec 2012 at 5:34

GoogleCodeExporter commented 9 years ago
Used Gambas3

A small project is attached.

I am attaching another bug report as a spinoff from this testing project.

Original comment by t4769_a...@cogeco.ca on 8 Dec 2012 at 7:05

Attachments:

GoogleCodeExporter commented 9 years ago
One more bit of information that MAY be important(?).

The project has 11 command buttons, 10 have icons attached through the 
Properties option of Picture. These are stock 32x32 icons. There are no 
problems with the display of these buttons.

The transparent command button gets it's icon from code. A different icon is 
chosen each day. Each icon has a number from 1 to 31 displayed on a pseudo 
calendar page.

The code looks like this:

  ' load a calendar icon for the day of the month for the today button
  btnToday.Picture = Picture.Load("img/cal-" & Format(Day(Now), "00") & ".png")

It does seem a coincidence that this happens from code and not a menu option.

Original comment by t4769_a...@cogeco.ca on 9 Dec 2012 at 3:54

GoogleCodeExporter commented 9 years ago
I cannot reproduce the problem. Maybe it is a bug in the widget theme. Which 
widget theme do you use?

Original comment by benoit.m...@gmail.com on 10 Dec 2012 at 1:57

GoogleCodeExporter commented 9 years ago
I tried each and every theme on my stock Kubuntu KDE for styles and icons and 
the issue is reproducible. Specifically, Oxygen theme and icons reproduce the 
problem. I even downloaded some extra themes and icons and tried them.

One extra point. If I assign a picture from the properties menu to the command 
button then the issue goes away. If I use code then the issue returns.

It maybe my general KDE setup so I used a live cd to rename .kde and I 
rebooted. Surprise. Surprise. Look at the image from a new .kde install. 
Everyone of the command buttons are now a transparent.

I also tried the transparent command button for clicking and it works as 
expected. When the mousepointer moves over the button, an outline can be seen.

The issue is mostly at my end not yours. A bug exists somewhere but it is not 
totally Gambas's fault. So . . . please mark this issue closed.

Thank You

Original comment by t4769_a...@cogeco.ca on 10 Dec 2012 at 6:29

Attachments:

GoogleCodeExporter commented 9 years ago
OK. I close the issue. Check in the KDE control panel if you are using the 
"raster" or the "native" QT graphics system.

Original comment by benoit.m...@gmail.com on 10 Dec 2012 at 8:52

GoogleCodeExporter commented 9 years ago
From: t4769_a929@cogeco.ca

I reported a bug about this a week ago(?) but I am unable to locate the closed 
bug so I will submit a new bug and someone can attach it to the closed bug. 
Please and Thank You.

I have the cause of the problem. I created a new icon for a new button and it 
too along with the original button had a transparent background when run by 
cron (loaded by Scheduled tasks).

The new icon was 48x48. I downsized it to 32x32 because it did not look good 
then no transparency problem. I took the 31 day calendar icons for the original 
button which were 48x48 and downsized all of them to 32x32. Voila, no 
transparencies.

The size of the icon is relative to the height(?) of the button so isolating a 
problem size is not possible. My buttons are 45 in height and 48x48 causes a 
problem.

The cause of the problem is putting too large an icon onto a button. It was 
reproducable in all my KDE styles and icons so I believe it to be a problem at 
your end.

Hope this helps.

Original comment by benoit.m...@gmail.com on 20 Dec 2012 at 8:49