Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


different Font at .drawstring


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2008, 03:29 PM
MM2forever's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 49
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default different Font at .drawstring

Hi guys,
Is there any change to change the font style the drawer uses to draw strings on the form?

Thanks for your answers.
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.
Reply With Quote
  #2 (permalink)  
Old 06-30-2008, 03:39 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

Yes. You should change the font style of the Form with FormLib.SetFontStyle.
Reply With Quote
  #3 (permalink)  
Old 06-30-2008, 03:46 PM
MM2forever's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 49
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

does this work with forms created with the FormExDesktop too?

and how should creating the formlib object then?

Thanks so far
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.
Reply With Quote
  #4 (permalink)  
Old 06-30-2008, 06:45 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,755
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by MM2forever View Post
does this work with forms created with the FormExDesktop too?
It should do. Pass FormEx.ControlRef to SetFontStyle instead of the form name as a string.

Quote:
and how should creating the formlib object then?
Look in theFormExDemo app. That creates a FormLib on a donor form

"FormEx1.New1("Form1")"

and uses it on a FormEx to build the menus

"Formlib1.AddContextMenu(FormEx1.ControlRef, ContextMenu1.value)

Do a similar thing for SetFontStyle
Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Problem ?? nm7s9 Questions & Help Needed 6 08-08-2008 12:00 PM
can i change font ? gjoisa Questions & Help Needed 1 03-29-2008 10:58 AM
Incorporar Drawstring y Line en TabControl Lefabrar31 Spanish Forum 1 09-13-2007 07:17 PM
How to erase a DrawString on a form? Stellaferox Questions & Help Needed 14 07-08-2007 05:49 PM
DrawString in angles diferent than 0 Cableguy Basic4ppc Wishlist 0 05-05-2007 03:13 PM


All times are GMT. The time now is 01:22 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0