Change Editor Gadget Text Justification on the fly
Posted: Mon Nov 21, 2011 3:42 am
The Text justification can be pre-set thus:
However, if the justification needs to change at run-time, how is that accomplished?
I have tried:
This does not work. From MSDN, seems it is not possible to make this type of change at run time, which is strange to me.
My work around is to have 3 Editors, one for each justification style, and swap them using HideGadget().
http://www.purebasic.fr/english/viewtop ... 48#p367348
Another related issue is that I would like to suppress the Editor Gadget's auto-scrollbar setting.
Code: Select all
EditorGadget(#GADGET_Text,10,10,380,380,#ES_RIGHT)I have tried:
Code: Select all
SetWindowLongPtr_(GadgetID(#GADGET_Text),#GWL_STYLE,GetWindowLongPtr_(GadgetID(#GADGET_Text),#GWL_STYLE)|#ES_CENTER)My work around is to have 3 Editors, one for each justification style, and swap them using HideGadget().
http://www.purebasic.fr/english/viewtop ... 48#p367348
Another related issue is that I would like to suppress the Editor Gadget's auto-scrollbar setting.