RichEdit Attributes Bold,..Underline: Alan Hollingsworth

new topic     » topic index » view thread      » older message » newer message

Hi Alan,

about the routine that I posted on last April, 18 answering to your request,
I must fix a bug due to a quick conversion from my previous, that I have
debugged again just now. Hope this did not inconvenience you, since your
question was referred to the font attributes rather than to the text 
alignement, however the whole routine must be efficient.

Therefore the changes are:
if inRange( 4, 8, LOGchanged) then       -- i.e. 5,6,7; I use a single check
    < or >, not <= >=
font = {0, 6, 2}                     -- TA_LEFT = 0, TA_RIGHT = 2,
    TA_CENTER = 6,
    	setAlignment( id, font[LOGchanged -4])


If you still need some more help do not hesitate :)
antonio

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu