To All
Let me ask this question another way ... remember in the old dos days .. when you tabbed or hit enter to go to the next get .. the field get would turn another color ( yellow perhaps ) .. is there a global setting ( or code ) that will turn the get field a different color when the field is in focus ... I have a complex form with lots of gets .. it is very difficult to see the cursor when it moves from field to field .. I just need a way to turn the field get to a hi-lited color .. that would help the users to know where they are in the form.
Thanks
Rick Lipkin
Hi-Lite get fields like the old Dos days
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: Hi-Lite get fields like the old Dos days
Maybe
Code: Select all
TGet():nClrFocus := 16577214
TGet():lClrFocus := .t.
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Hi-Lite get fields like the old Dos days
Simpler
Code: Select all
SetGetColorFocus()
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: Hi-Lite get fields like the old Dos days
Rao
SetGetColorFocus() .. 2 questions
1) do you have a short example ??
2) I would prefer to use this function when and where I need it .. and not be a global setting ..
Thanks
Rick Lipkin
SetGetColorFocus() .. 2 questions
1) do you have a short example ??
2) I would prefer to use this function when and where I need it .. and not be a global setting ..
Thanks
Rick Lipkin
Re: Hi-Lite get fields like the old Dos days
Rick,
It is a global setting to be called at the beginining of main()
It is a global setting to be called at the beginining of main()
Saludos / Regards,
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Re: Hi-Lite get fields like the old Dos days
Hello, if you want to customize
Saludos
Code: Select all
oGet : bGotFocus := { || oGet : SetColor( 0, CLR_GRAY ) }
oGet : bLostFocus := { || oGet : SetColor( 0, CLR_WHITE ) }
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Hi-Lite get fields like the old Dos days
1) Just put it in one of your applications and see the difference.Rick Lipkin wrote:Rao
SetGetColorFocus() .. 2 questions
1) do you have a short example ??
2) I would prefer to use this function when and where I need it .. and not be a global setting ..
Thanks
Rick Lipkin
2)
Syntax:
Code: Select all
SetGetColorFocus( [nClr] )
All Gets created after this setting and before you change the setting use this color for focused gets.
Code: Select all
SetGetColorFocus( CLR_WHITE )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India