Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 4th, 2008, 2:17 PM   #1
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Exclamation Font -

Sup guys,

How would I forcefully set a font size in my program and not allow to change(so default font has no effect)?

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Feb 4th, 2008, 3:08 PM   #2
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 291
Rep Power: 4 Klarre is on a distinguished road
Re: Font -

How should we know how your font system works do you think?
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Feb 4th, 2008, 3:23 PM   #3
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Font -

I don't understand, please elaborate.

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Feb 4th, 2008, 3:34 PM   #4
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 291
Rep Power: 4 Klarre is on a distinguished road
Re: Font -

* Are you using some kind of font library?
* What kind of fonts are you using? TTF or bitmap fonts?
* Is the font implementation operating system specific? If it is - what OS are you using?
* ...

Gives us some more clues, and we will help you!

/Klarre
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Feb 4th, 2008, 4:10 PM   #5
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Font -

Oh lol You mis-understood, what I was asking was "How do I set a font for a dialog box? And not use a default system font?".

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Feb 4th, 2008, 4:15 PM   #6
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 291
Rep Power: 4 Klarre is on a distinguished road
Re: Font -

Hehe, ok!

But still - font for dialog boxes in what operating system?
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Feb 4th, 2008, 4:36 PM   #7
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Font -

WinXP
pcbrainbuster is offline   Reply With Quote
Old Feb 5th, 2008, 5:10 PM   #8
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 291
Rep Power: 4 Klarre is on a distinguished road
Re: Font -

This function call might help you.
SendMessage(mYourDialogTextHwnd, WM_SETFONT, (WPARAM)hFont, TRUE);
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[WIN32 API] GUI widgets font size Klarre C++ 3 Sep 3rd, 2007 1:08 PM
Cant Change Font Properties, Urgent brokenhope Visual Basic .NET 11 Sep 20th, 2005 3:42 PM
String to Font squishiful Visual Basic .NET 3 Jun 21st, 2005 9:26 PM
changing font style blueandconfused HTML / XHTML / CSS 4 May 2nd, 2005 3:46 PM
colors. fonts and font size inside the table ?_? cloud- HTML / XHTML / CSS 2 Mar 12th, 2005 3:10 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC