Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by sfi_dev at 05-13-2011 12:06 . Topic has 5 replies.

Print Search
Sort Posts:    
   05-13-2011, 12:06
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Get Font
Reply Quote
Hi There,

I can see how to the set the font using: editor.EditSetDefaultFont

Is there a way to get the font. For example, our application you can setup different email templates to later use in processing. We would like to save the current font selected on the toolbar so when the template is retrieved we can the set the correct font using EditSetDefaiultFont.

Thanks in advance.

Kind Regards,

Julie
   Report 
   05-13-2011, 8:23
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Get Font
Reply Quote
Hello,

if you use the ToolbarUpdate event then you get the current status of the toolbar.

Regards,
Hans-Peter
   Report 
   06-27-2011, 4:37
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Re: Get Font
Reply Quote
Hi there,

I am back onto this.

When I change the font or size, I have found that the the event EditorToolbarUpdate() is not trigered

I just put a msgbox "update" in Private Sub pinEdit1_EditorToolbarUpdate(ByVal data As String)

and it never enters the sub.

Probably a newbie issue, but I am using the internal toolbars.

Am I supposed to do anything else to ensure this event is triggered.

Thank-you

sfi_dev
   Report 
   06-27-2011, 8:15
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Get Font
Reply Quote
Hello,

the "ToolbarUpdate" event is triggered when you change cursor position by key or mouse.

Regards,
Hans-Peter
   Report 
   06-27-2011, 8:19
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Re: Get Font
Reply Quote
Thank-you for the response. Refrerring back to my original request, is there away to retrieve the font/font size information either when the user changes it or at anytime ?

We store this information on page save, so the user has not necessarily started typing/editing anything.

We are using the inbuilt toolbar.

Thank-you.
   Report 
   06-28-2011, 7:55
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Get Font
Reply Quote
Hello,

determine the font is not easy as the font can be inherited from the parent object.

You can try to get the active object with EditGetActiveObject and then read the styles font attribute.

Regards,
Hans-Peter
   Report 
Pintexx Forum » Developer Produ... » pinEdit » Re: Get Font