|
Post by juppel on May 19, 2019 12:14:58 GMT 1
INCLUDE "hug.bac"
'--------------------------------------------------- Form1 = WINDOW("MainWindow", 800, 600) SETPROPERTY(Form1, "tooltip-text", "Main Windows Tooltip")
Quit = BUTTON("Quit", 102, 35) ATTACH(Form1, Quit, 10, 460) CALLBACK(Quit, QUIT)
textEdit = EDIT(781, 451) ATTACH(Form1, textEdit, 30, 0) 'for example backgroundcolor(textedit, "FFFF00")
DISPLAY '---------------------------------------------------
|
|
|
Post by vovchik on May 19, 2019 15:14:06 GMT 1
Dear juppel,
I think HUGOPTIONS will do it for you:
HUGOPTIONS
INCLUDE "hug.bac" HUGOPTIONS("MARKUP background:red,foreground:#FFFFFF,font:DejaVu Sans Bold 20") Form1 = WINDOW("MainWindow", 640, 360) SETPROPERTY(Form1, "tooltip-text", "Main Windows Tooltip") textEdit = EDIT(630, 300) ATTACH(Form1, textEdit, 10, 10) Quit = BUTTON("Quit", 90, 30) ATTACH(Form1, Quit, 530, 320) CALLBACK(Quit, QUIT) DISPLAY
With kind regards, vovchik
|
|
|
Post by juppel on May 19, 2019 15:50:23 GMT 1
Thanks for the answer, However I do not want to change the text color but the background of the whole text editor, instead.
kind regards, juppel
|
|