Sometimes I forget to set the transparency of labels on a desktop window, which looks very sloppy since users have different Windows themes.
Wouldn’t it be a good idea to have the transparancy-property of the standard label-control by default ON ?
I thought the same many times in the past. Do we already have a FR i can sign to?
TBH, I wish ALL of the controls had transparency, at least as an option, instead of having to resort to expensive third-party plugins or kludges to achieve it.
Added comment/request to FB 23269
There is a request <https://xojo.com/issue/15940> but sadly it is only 674th.
Oh sorry … so now we have 675 official requests.
What is the minimum number of requests before it gets on Normans’ todo list ?
When he feels like it is useful, I guess. Ranking is just an indication, it seems.
That said, there is an option : subclass label with in Open :
me.transparent = True
Feels like blowing my own trumpet, but http://blog.xojo.com/guest-post-transparent-label-tip-for-windows & http://blog.xojo.com/guest-post-transparent-label-tip-for-windows-0
It will definitely save some effort when building forms with lots of labels on them.
[quote=230602:@Michel Bujardet]That said, there is an option : subclass label with in Open :
me.transparent = True[/quote]
Oh, I thought that I was the only one knowing this trick.
Subclass Label, select the new control and choose “Inspector Behavior” in the navigator. You now can change the default values of all properties. So no coding needed.
On Windows this is not possible as long as the native win32api is used, because it is not supported by MS. There are hacks, but they are ugly, the controls are flickering when resizing the windows, etc.
By the way the Xojo label is not the native win32api control, it is a canvas which draws the string in its paint event.
In Feedback case 23269 @Greg O’Lone said NO, referring to problem windows developers dealing with all the time.
Think it’s time for Xojo icn. to put more afford in MS Windows versions in order to find solutions for flickering etc. It’s quite a challenge to compete with the look and feel .NET (visual studio) builds provide.
A while ago I wanted to use a label control, put on a colored background so with transparancy set, and blinking using a timer. Had to give up this idea since it was just flickering on every blink. Tried using a canvas myself to avoid this behavior but not successful. Same project/application on OSX works perfectly fine.
Also a while ago, I heard about the idea to embrace the .NET framework for Windows-64 builds. Anybody knowing more about this rumor ?
Did you turn on DoubleBuffer?
@Michel Bujardet once advised me to just insert “Me.DoubleBuffer = TargetWin32” into the Open Event of any Canvas. And this works really fine.
Played with it, yes.
For the newbies: this is just a way to switch doublebuffer on in case you build for windows. TargetWin32 = True