List Info

Thread: using system color for background of frames




using system color for background of frames
user name
2006-03-23 13:00:42
Hello,

today I have many questions 

At first, the last time I was coding with Borland C-Builder.
There you 
can set the color of windows/frames to the same color as
used by the 
system for windows/frames and other interface elements.
Using DB to add a frame creates a dark-grey colored frame
background.
The field for background and foreground color are empty and
that it's 
not possible to set the color to the system interface color.
It's the 
same with bitmap buttons, which is colored in standard
dark-grey.
If I select a color from the color dialog, e.g. for a tool
window,  it 
will used on every system. It's not nice if the program
runs on a Mac 
with a not-system-like-colored window... Also on Windows XP
with themes 
it will look not so nice. To the tool window sample - on
Windows it is 
light-grey colored, on a Mac it will be white colored, like
every 
untextured window.
Can I use a command to set the color automatically to the
same interface 
elements color used by the system?

best regards
Martin


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    htt
p://groups.yahoo.com/group/anthemion-devtools/

<*> To unsubscribe from this group, send an email to:
    anthemion-devtools-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


using system color for background of frames
user name
2006-03-23 15:42:04
I believe the dark grey of a frame background _is_ the system standard.

However, you generally never create a dialog-like UI on a bare frame;
you use a panel, which is a lighter grey on Windows. It's generally
better not to fiddle with the colours and let wxWidgets set the
background.

At 13:00 23/03/2006, you wrote:
&gt;Can I use a command to set the color automatically to the same interface
>elements color used by the system?

This should be the default. If not, it's a bug in wxWidgets.

Regards,

Julian


using system color for background of frames
user name
2006-03-23 16:23:42
Hello Julian,

thanks for your answer. I've forgotten that I even use panels in my BCC projekt to get a window with sunken border and dark-grey background...
The idea a panel to use for the converse should come up rather to me.

The problem with the memory error was solved by using Clean Project from the Build menu two or three times. I don't know why and how. I was just clicking around.

best regards
Martin



Julian Smart schrieb:
pop3.gotadsl.co.uk" type="cite">
I believe the dark grey of a frame background _is_ the system standard.

However, you generally never create a dialog-like UI on a bare frame;
you use a panel, which is a lighter grey on Windows. It's generally
better not to fiddle with the colours and let wxWidgets set the
background.

At 13:00 23/03/2006, you wrote:
  
Can I use a command to set the color automatically to the same interface
elements color used by the system?
    

This should be the default. If not, it's a bug in wxWidgets.

Regards,

Julian




 
Yahoo! Groups Links

<;*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/anthemion-devtools/

&lt;*> To unsubscribe from this group, send an email to:
    anthemion-devtools-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



  
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )