Code::Blocks Forums

User forums => Help => Topic started by: kpuchatek on February 23, 2006, 05:01:33 pm

Title: Font problem in Windows
Post by: kpuchatek on February 23, 2006, 05:01:33 pm
Hi,

I just downloded CBlocks and looks great  :P But I think it has nasty problem with large fonts
on MS Windows. Maybe somebody could confirm that. It is typical problem of open-source or
shareware software. You go to Contronal Panel and change fonts to Large.
Then dialogs are not displayed correctly - windows are not resized properly.
Is any solution to that for CBlocks ?

Michal
Title: Re: Font problem in Windows
Post by: takeshimiya on February 23, 2006, 05:11:22 pm
I didn't found any problem at first-try.

Can you post an screenshot?
Title: Re: Font problem in Windows
Post by: thomas on February 23, 2006, 05:49:44 pm
Do you mean this?


(http://img151.imageshack.us/img151/2580/00000eh1.png)
Title: Re: Font problem in Windows
Post by: sethjackson on February 23, 2006, 05:50:49 pm
 :shock: Pretty nasty.  :P
Title: Re: Font problem in Windows
Post by: Game_Ender on February 23, 2006, 09:58:41 pm
It is typical problem of open-source or
shareware software.

Thats because those authors were lazy when they wrote there dialogs and most likely used an absolute position for the widgets.  So if the widgets change size everything goes crazy.  Since CB is cross platform and it can't depened on absolute sizes for widgets everything is layed out with sizers, which automatcially adjust windows based on the widgets they contain and how much space each one needs.

Note:  I have seen plenty of VB dialogs layed out using absolute position.  If this were a problem with CB we would of already seen it because people run on windows and linux which have significantly different sizes for some widgets and definelty fonts.
Title: Re: Font problem in Windows
Post by: MortenMacFly on February 23, 2006, 10:04:14 pm
Do you mean this?
{IMG}
LOL :lol:
Title: Re: Font problem in Windows
Post by: takeshimiya on February 23, 2006, 11:51:58 pm
The good rule of the thumb is that given any dialog, when maximized, it haves to look ok.
Title: Re: Font problem in Windows
Post by: kpuchatek on February 24, 2006, 03:51:03 pm
I meant for instance this:


[attachment deleted by admin]
Title: Re: Font problem in Windows
Post by: MortenMacFly on February 24, 2006, 04:06:41 pm
I meant for instance this:
Thomas: Allthough I'm sure you know by now, but just in case: I think he means a 120dpi font and not the "Schriftgrad" in the "Darstellungsoptionen"... ;-)
With regards, Morten.
Ps.: Anyone knows the english description for this?!

[attachment deleted by admin]
Title: Re: Font problem in Windows
Post by: thomas on February 24, 2006, 10:31:12 pm
Thomas: Allthough I'm sure you know by now, but just in case: I think he means a 120dpi font and not the "Schriftgrad" in the "Darstellungsoptionen"... ;-)
No, I did not know, I tried the wrong thing (did not even know about the other :lol:).

Very well, tried that, and although Windows messed around for a while (missing files, had to insert the DVD, and then it switched settings and told me the system needed to be restarted to switch settings...), I got it to work.

@kpuchatek:
Current HEAD does not seem to have this problem. The dialogs use 96dpi fonts either way. I don't know the reason for this, might be a wxWidgets thing. I'll be back in 2 minutes, will try after reboot.
Title: Re: Font problem in Windows
Post by: thomas on February 24, 2006, 10:37:44 pm
Yep, looks fine :)

(http://img527.imageshack.us/img527/576/00006bt.png)
Title: Re: Font problem in Windows
Post by: Zingam on February 25, 2006, 06:12:26 am
I've seen not properly aliened text and controls in the linux version.

I think that modern programs should not feature fixed sized dialogs, etc. Modern programs should be more like a good web page.

Other problems that occur not only in open source programs but in commercial is that when translating a program into another language: sometimes the text doesn't fit at all.

original
-> Properties
but
-> Einstellungen
-> Настройки

original
-> Dialog window
-> Dialogfenster
but
-> Диалогов прозорец

Some languages are more descriptive than other and need longer or more words to describe something than English.



Also in my oppinion when properly designed tab based iterfaces look better than dialog ones and are more natural. For examples the Settings in CB are "tab based". But I believe most of a program could be designed like that. One big window and tabs inside (MDI). Why is it better than Dialogs - because most of the time, when you pop-up a dialog, you can't use the main program anyway. Pop-ups, message boxes, dialogs, etc. should be reserved for the most important stuff only and some designers used/abuse them for anything.
Title: Re: Font problem in Windows
Post by: takeshimiya on February 25, 2006, 09:55:30 pm
Thomas, it's just me, or in that screenshot, the Make program: mingw32-make.exe is completely eaten? :D
Title: Re: Font problem in Windows
Post by: MortenMacFly on February 25, 2006, 10:09:16 pm
Thomas, it's just me, or in that screenshot, the Make program: mingw32-make.exe is completely eaten?
You're right! :lol: :lol: :lol:
So Thomas is affected by the "120dpi virus" then. But because he has a different screen resolution it rips off widgets in a way you wouldn't even recognise... ;-)
Morten.
Title: Re: Font problem in Windows
Post by: thomas on February 25, 2006, 10:41:38 pm
Hmm strange... but yes, it's missing, I did not see it at all.
Actually the dialog should automatically resize to fit all....
Title: Re: Font problem in Windows
Post by: takeshimiya on February 25, 2006, 10:47:32 pm
So Thomas is affected by the "120dpi virus" then.
Actually it happens on my linux with the "default" dpi also.
Not a big problem that can't be solved changing the XRC a bit.
Title: Re: Font problem in Windows
Post by: Pecan on February 26, 2006, 12:24:56 am
On a high resolution screen, I run at 150 dpi because my
eyes are over "49" years old. I get the following effects:
(http://forums.codeblocks.org/index.php?action=dlattach;topic=2443.0;attach=813)

[attachment deleted by admin]
Title: Re: Font problem in Windows
Post by: thomas on February 26, 2006, 12:29:40 am
Those are wxWidgets problems which we probably won't be able to address :(
At least, I can't imagine how we could...

The compiler dialog has been fixed. There remains a small glitch in the editor dialog, but that one is not so severe.