Page 1 of 2
Start main window in top right monitor
Posted: Fri Feb 26, 2016 11:28 pm
by RussBaker
How can I start my main window in the top right corner of the monitor?
More specifically, how can I determine the screen resolution? It may be different on other user monitors?
Also, how do I change the font color of a label after the form is loaded?
--Russ
Re: Start main window in top right monitor
Posted: Fri Feb 26, 2016 11:32 pm
by RussBaker
I found the answer to my first question
DEFINE WINDOW Win_1 ;
AT 0,GetDesktopWidth()- myformwidth
2) Can I change the font color and/or the form background color after the form is active?
--Russ
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 12:49 am
by andyglezl
Definicion:
DEFINE WINDOW Form_1.......
@ 200,20 LABEL Label_1 VALUE "HMG" TRANSPARENT FONT "ARIAL" SIZE 36 ;
FONTCOLOR BLACK BACKCOLOR YELLOW AUTOSIZE
END WINDOW
----------------------------------------------------------------------------------------------------
Ejecucion:
Form_1.Label_1.FONTCOLOR := WHITE
Form_1.Label_1.BACKCOLOR := BLUE
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 3:30 am
by RussBaker
I know how to set the colors of a label at definition.
How can I change the property AFTER?
My form displays data that changes. I want to be able to change the color of a label to Green or Red based on status.
How can I set the color properties of a label?
--Russ
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 4:50 am
by Rathinagiri
my_form.my_label.fontcolor := aNewColor
You can change the color during runtime using the above property.
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 7:29 am
by mol
Background color of window is not changeable. You can define it only at creation time.
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 8:39 am
by Rathinagiri
Marek,
He wants to change the color of the label and not the background color of the window.
Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 10:55 am
by mol
RussBaker wrote:I found the answer to my first question
DEFINE WINDOW Win_1 ;
AT 0,GetDesktopWidth()- myformwidth
2) Can I change the font color and/or the form background color after the form is active?
--Russ
Russ wrote about form background color

in this post

Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 12:35 pm
by Rathinagiri

Thanks Marek.

Re: Start main window in top right monitor
Posted: Sat Feb 27, 2016 8:15 pm
by andyglezl
Quiza son 2 preguntas... pero si RussBaker no contesta los post, no sabremos...
-------------------------------------------------------------------------------------------------------
Maybe are 2 questions ... but if RussBaker not answer the post not know ...
Also, how do I change the font color of a label after the form is loaded?
......
2) Can I change the font color and/or the form background color after the form is active?