Welcome! Log In Create A New Profile

Advanced

[WD26] HTML Editor - How can I select a font at start

Posted by Michael Drechsel 
[WD26] HTML Editor - How can I select a font at start
August 25, 2021 10:39AM
Hi,

anybody knows how to select a font and a fontsize at start of a window with the new html editor ?

regards Michael
My understanding is that the font selectedin the combo reflect the font at the current cursort place, so, to set an initial value in the font combo, I would just set in the html control an html string with the desired font/size, then put the cursor in the control.
Re: [WD26] HTML Editor - How can I select a font at start
September 14, 2021 09:44AM
Hi,

mmh, thats what I do. But can we access the combo with the fontname and size anyway via code ?

regards Michael
Re: [WD26] HTML Editor - How can I select a font at start
September 15, 2021 10:27AM
Hi MIchael,

I don't have WD26 so I know nothing bout HTML-editor. I use RTF-fields and put i.e. "MySelf..Font = FontCreate("Cambria", 12)" in the initialisation. Is this function not working with the HTML-editor?

Grt/Aad



Edited 1 time(s). Last edit at 09/15/2021 10:46AM by AadG.
Re: [WD26] HTML Editor - How can I select a font at start
September 15, 2021 11:57AM
Hi Aad,

I´m away from keyboard, but I will try this later. Thx.

regards Michael
Re: [WD26] HTML Editor - How can I select a font at start
September 23, 2021 02:23PM
Hi Michael,

Just for the record. Did this work or not ?

Best regards,

Aad
Re: [WD26] HTML Editor - How can I select a font at start
September 23, 2021 03:51PM
Hi,

I am back tomorrow from my holidays and check this out.

regards Michael
Re: [WD26] HTML Editor - How can I select a font at start
September 25, 2021 05:15PM
Hi,

no, doesn´t work:

The Font property does not apply to HTMEDT_NoName1. Control type: HTML Editor.

regards Michael



Edited 1 time(s). Last edit at 09/25/2021 05:16PM by Michael Drechsel.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: