PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Change font size edit control
Change font size edit control
Iniciado por guest, 06,sep. 2015 17:37 - 2 respuestas
Publicado el 06,septiembre 2015 - 17:37
Helo All,

I would like to chnage the size of a edit control on the fly.

When I use EDT_WhatEver..Fontsize = 18 only the input area font size changes.

How do I change the size of the caption??

DW
Publicado el 06,septiembre 2015 - 19:09
Hi, there's no way to change the font size of the caption except for assigning a style, which is new in version 20! So, prepare another style, which includes the font size of the caption and set

MyBigStyle is Buffer
MyBigStyle = EDIT_AnotherOne..Style
fAddBuffer(CompleteDir(fExeDir())+"MyBigStyle_EDIT.DAT",MyBigStyle)

......

MyBigStyle = fLoadBuffer(CompleteDir(fExeDir())+"MyBigStyle_EDIT.DAT")
EDIT_Whatever..style = MyBigStyle

Your project will have to contain some Style-files in order to change the styles.

Using the property ..CaptionWidth you can adjust size / position of the Edit control as well
Publicado el 06,septiembre 2015 - 21:31
Thanks for the heads up, seems like to much work.

DW