I must be blind but how can I set the slider background to transparent or just white ?
I’m using it on a TabPanel in Windows and it always looks grey.
I must be blind but how can I set the slider background to transparent or just white ?
I’m using it on a TabPanel in Windows and it always looks grey.
Have you tried
declare sub setDrawBack lib "Cocoa" selector "setDrawsBackground:" (id As integer, b As boolean)
Set to false.
[quote=111268:@Mike Charlesworth]Have you tried
declare sub setDrawBack lib "Cocoa" selector "setDrawsBackground:" (id As integer, b As boolean)
Set to false.[/quote]
The post should have been made in Windows. The OP mentions [quote]I’m using it on a TabPanel in Windows[/quote] so unfortunately the Coca declare cannot work.
That said, I checked and if a slider is indeed transparent over a window background, it becomes grey in a TabPanel. The workaround I found is to place it over a white rectangle.
Thanks for your answers.
For now I will use updownarrows. I really don’t understand why some basic things like this ones need so much effort to get them working in a nice and common way.
Windows seems not much appreciated by Xojo, actually I posted it on Getting started because it’s a “starter” question and should be independent from OS.
[quote=111300:@Michel Bujardet]The post should have been made in Windows. The OP mentions so unfortunately the Coca declare cannot work.
That said, I checked and if a slider is indeed transparent over a window background, it becomes grey in a TabPanel. The workaround I found is to place it over a white rectangle.[/quote]
Whoops sorry, did not read the post fully.
[quote=111333:@Alejandro Fresno Meyer]For now I will use updownarrows. I really don’t understand why some basic things like this ones need so much effort to get them working in a nice and common way.
Windows seems not much appreciated by Xojo, actually I posted it on Getting started because it’s a “starter” question and should be independent from OS.[/quote]
No harm done. But when you clearly post in the platform you are using it helps giving you a relevant answer. As it turns out, the issue presents itself only in TabPanels and on Windows.
This forum is the place where you get answers from other users like me, so you do not have to bang your head on the wall by yourself. I am not sure placing a control over a rectangle would be what I call a lot of efforts, tough. No more than an annoyance, I would say.
Do not worry about Xojo “not appreciating” Windows. You will find that there are indeed here people who do appreciate Windows and will be glad to lay a hand. Good luck with your project.