OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: mr nick on June 04, 2009, 03:02:11 AM

Title: Font colour on frame
Post by: mr nick on June 04, 2009, 03:02:11 AM
Is there any way to alter the colour of the text used in a frame? I ask this not because I want to do it but for some reason, one of my dialogs is showing the frame caption with a white font rather than black. I have tried deleteing the frame and adding another but that comes in with white text too. I initially thought it was related to the visual styles setting but this has no bearing on the way it's displayed.

**EDIT**
I have just tried this on another machine and it's all back to normal. It seems that all dialogs I have compiled on a machine running Windows 7 have got this issue with the frame text. If I edit them on an XP or Vista machine then the frames go back to normal.
Title: Re: Font colour on frame
Post by: Kerry on June 04, 2009, 03:24:57 AM

mr nick,

does this only occur when the defining editor is installed on a Win7 box
... and/or when the dialog is displayed on a Win7 box. ?

/// kdub
Title: Re: Font colour on frame
Post by: BazzaCAD on June 04, 2009, 10:35:21 AM
I'll beat it's a visual styles issue with Win 7.
I'm sure Owen will take a look at it when it ships.
Title: Re: Font colour on frame
Post by: mr nick on June 09, 2009, 08:19:41 AM
Sorry for the delay in responding - I forgot to turn on notifications.

Anyway, the problem only seems to occur when the dialog is edited on a Win7 box. If I create a dialog on a Vista or XP machine and then use it on my Win7 machine it displays as expected in black. The fix has been easy enough - just had to open and resave the files in my XP machine. Just lucky I've got three machines and three different OS's to choose from :)
Title: Re: Font colour on frame
Post by: owenwengerd on June 09, 2009, 11:39:31 AM
Have you compared properties between correct and incorrect versions to see what is different? The font would be a good one to check.
Title: Re: Font colour on frame
Post by: Fred Tomke on June 11, 2009, 01:22:23 AM
Hello, I waited for a long time if somebody else would have this. mr. nick, can you tell me, if you show ClassicStyle in Win 7? The white colored frame caption can be reproduced in Win XP and Win Vista, too - if VisualStyles are switched off in Windows (!!!).

Mr. nick, do you find the style how your frame does look like in the following screenshots? I made the samples to compare. I did not publish them before because for me it's hard to explain. But now I try it. I ask you all not to be angy with me but - wouldn't it make more sense to show the controls where the property UseVisualStyle is set only in visual styles if also Windows is using VisualStyles? The problem is - I have really no idea how to read out whether Windows uses VisualStyles or not.

Now the screenshots:
xp = Windows XP Pro
vista = Vista Business
vs = Windows uses VisuaStyles
novs = Windows uses no VisualStyles

Fred
Title: Re: Font colour on frame
Post by: Fred Tomke on June 11, 2009, 01:24:06 AM
Here is XP blue and the project I used.
Fred
Title: Re: Font colour on frame
Post by: mr nick on June 11, 2009, 04:09:35 AM
So it's not just me then.. that's good. In answer to your question Fred, yes I am using the 'classic' interface. I always do regardless of OS. Due to this it's always been a frustration that it's not possible to force a default setting for the visual styles option. I always turn them off in my projects as the results are hit and miss depending on the end-users configuration so by turning them off I know that what I see is what they will see.