Page 1 of 1

VLFONE Theme Customization

Posted: Fri Jul 09, 2021 4:36 am
by ESODevKJ
EDIT: I had to set the fontsize of the webpage and then use the slider. For anyone interested the sample GOOGLE was very helpful.

Hi All,

I know there are shipped themes from Lansa and that I can create custom themes. Let's say I want to give the user the option to change font type, title bar color and font size.

I want to present to them, hypothetically, a drop down list of all the font types available, a slider for the font size, and a color wheel to choose the title bar. Then they can choose Times New Roman/12px/red and the application will update with the user's choices.

Has anyone done anything similar to this that can point me in the right direction?

I'm running into plenty of issues to begin, here's what I have for my slider to adjust the font (tried this with fontsize and same error):

Code: Select all

Evtroutine Handling(#Slider.Changed)
#sys_web.WebPage.style.fontweight := Weight600
Endroutine
I execute it and when I change the slider on the webpage I get this error:

Fatal Error:

Cannot read property 'setFontWeight' of null


Thanks you!

Re: VLFONE Theme Customization

Posted: Fri Jul 09, 2021 2:14 pm
by MarkD
The message suggests some part of the property #sys_web.WebPage.style is null.
You could find out with some temporary debug code I guess.