Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Oct 21, 2019 10:35 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Inconsistent look of basic controls on Windows
PostPosted: Sat Oct 15, 2011 6:11 pm 
Offline

Joined: Fri May 08, 2009 1:42 am
Posts: 71
Is it is just me, or does anyone else find the way basic RB controls (group box, checkbox, TabPanel, Label) are handled on Windows? I know it has to do with the fact that Windows doesn't double-buffer like OSX does, but it seems like the controls where developed at different times, by different developers, with different goals in mind. I am having a dickins of a time getting any kind of a consistent look between them. They are on a PagePanel, and I've tried putting them directly on the PagePanel, on a Canvas, and on a Rectangle, but just can't see to get any kind of consistent behavior out of them. In my little test project, the main window is Brown, and the Retangle and canvas backgrounds are set to RGB (200,200,200).

On the PagePanel with the Canvas:
The Checkbox background is the same as the Canvas.
The Label background is the same as the Canvas.
The GroupBox title is the same as the Window.
The GroupBox itself is the same as the Canvas.
The TabPanel is a lightGray (RGB 240,240,240 actually).

On the PagePanel with the Rectangle:
The Checkbox background is the same as Window.
The Label background is the same as Window.
The GroupBox title background is the same as the Window.
The GroupBox itself is the same as the Canvas.
The TabPanel is a lightGray (RGB 240,240,240 actually).

On the PagePanel directly:
The Checkbox background is the same as Window.
The Label background is the same as Window.
The GroupBox title background is the same as the Window.
The GroupBox itself is the same as the Window.
The TabPanel is a lightGray (RGB 240,240,240 actually).

I've trade various things in the paint method where it is allowed, tried double buffering on the Canvas, and sifted through what seems like hundreds of threads on this same topic. Just simply cannot get all of the controls to behave the same way,and it is killing the look of the interface.

I think I could accomplish what I need if I had control over the background of the TabPanel (a bug is filed already), and the GroupBox Label took on the background of the underlying container and NOT the main window as it now seems to do. I've just about given up on the TabPanel, but really do not understand the behavior of the GroupBox title.

Does anyone have any anysight into this?

Thanks,
Merv


Top
 Profile  
Reply with quote  
 Post subject: Re: Inconsistent look of basic controls on Windows
PostPosted: Tue Oct 25, 2011 5:44 pm 
Offline

Joined: Sat Oct 01, 2005 5:19 pm
Posts: 3216
Gave up trying years ago, and only use the the part of the control that functions and fill the rest in with a label. For example a groupbox doesn't get a Caption and right above it I use a label and choose transparent = True. Same with the checkbox that I need to put on a canvas.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group