forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How can I change fonts on the fly with @fontdlg?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue Apr 13, 2004 8:34 am    Post subject: How can I change fonts on the fly with @fontdlg? Reply with quote

How can I change fonts on the fly with @fontdlg in VDS4?


Edited by FreezingFire. Reason: Added more specific question to post.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 13, 2004 12:05 pm    Post subject: Reply with quote

You can't change fonts on the fly with VDS 4 by itself, however, the VDSGUI.DLL
extension allows this, the function is called "Dyna Font" I believe. Smile

Get it at:
http://www.vdsworld.com/index.php?page=download&fileid=385

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Apr 14, 2004 8:52 am    Post subject: Reply with quote

Yes as FF said you can change the fonts on the fly using DYNAFONT command available in VDSGUI extension. You can use the VDS @fontdlg to allow the user select the font. (The demo examples show you how to do that).
You can do that on VDS dialog elements with a Handle (Edit/List etc - but not TEXT).

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Apr 14, 2004 9:50 am    Post subject: Reply with quote

Is it kinda like HTML ?

Code:
DIALOG ADD,TEXT,text,15,139,70,25,Color<font color="brown"; font face="Arial" size=2>text is cool


That would be nice..
Back to top
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Wed Apr 14, 2004 10:08 am    Post subject: Reply with quote

Cool, Thanks
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Apr 15, 2004 1:54 pm    Post subject: Reply with quote

vtol wrote:
Is it kinda like HTML ?

Code:
DIALOG ADD,TEXT,text,15,139,70,25,Color<font color="brown"; font face="Arial" size=2>text is cool


That would be nice..


You can have a single color/font face / font size to all the Text within say an EDIT control using VDSGUI.
If you want different attributes to each line/word then youu need to use a RichEdit control - I did do a transparent RichEdit DSU but it has problems with XP.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 5:47 am    Post subject: Reply with quote

So RichEdit wont work on XP, shucks..

Hey, is there a way to paint the backgrounds of the SPINNERs Tic and Radio dialogs?

That would be nice to have them same color as my EDIT LIST etc...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group