Start main window in top right monitor
Moderator: Rathinagiri
Start main window in top right monitor
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
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
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
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
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
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
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
Re: Start main window in top right monitor
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
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
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Start main window in top right monitor
my_form.my_label.fontcolor := aNewColor
You can change the color during runtime using the above property.
You can change the color during runtime using the above property.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Start main window in top right monitor
Background color of window is not changeable. You can define it only at creation time.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Start main window in top right monitor
Marek,
He wants to change the color of the label and not the background color of the window.
He wants to change the color of the label and not the background color of the window.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Start main window in top right monitor
Russ wrote about form background color in this postRussBaker 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
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Start main window in top right monitor
Thanks Marek.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Start main window in top right monitor
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 ...
-------------------------------------------------------------------------------------------------------
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?
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.