Real Software Forums
http://forums.realsoftware.com/

Inconsistent look of basic controls on Windows
http://forums.realsoftware.com/viewtopic.php?f=6&t=41021
Page 1 of 1

Author:  pate [ Sat Oct 15, 2011 6:11 pm ]
Post subject:  Inconsistent look of basic controls on Windows

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

Author:  Jym [ Tue Oct 25, 2011 5:44 pm ]
Post subject:  Re: Inconsistent look of basic controls on Windows

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/