Listbox Not Focused Color

Listbox Not Focused Color

Postby cdmmaui » Mon Jan 31, 2011 8:11 pm

Hello,

How can I set the color of listbox row when the listbox is not focused?

oLbx1:nClrText = { || IIF( invdet->posted, CLR_WHITE, CLR_BLACK ) }
oLbx1:nClrPane = { || IIF( invdet->posted, CLR_GREEN, CLR_WHITE ) }

oLbx1:nClrForeFocus = { || IIF( invdet->posted, CLR_WHITE, CLR_WHITE ) }
oLbx1:nClrBackFocus = { || IIF( invdet->posted, CLR_GREEN, CLR_BLUE ) }
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: Listbox Not Focused Color

Postby James Bott » Tue Feb 01, 2011 2:07 am

Darrell,

I don't understand your question. nClrText and nClrPane ARE the unfocused colors.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Listbox Not Focused Color

Postby cdmmaui » Tue Feb 01, 2011 2:49 am

Hi James,

That is what I thought, however, when the screen opens and the focus is on data entry fields, the LISTBOX is grey

Here is the screen when the dialog box is opened, the listbox not in focus
Image

Here is the screen once I tab to listbox and it is focused
Image
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: Listbox Not Focused Color

Postby James Bott » Tue Feb 01, 2011 4:36 pm

Darrell,

Ah, I see. You mean with the control is not focused, and I thought you meant when a row is not focused.

It is gray to indicate that the control is not focused. This is normal Windows behavior. I suggest not changing this as it will confuse users. I also suggest not showing other rows with the same background color as the highlighted row (as in your screenshots) as this makes it difficult to see which row is in focus. Also, remember there are a significant number of users that are colorblind so you need to pick colors that will show as different to users with the various types of colorblindness. If you are interested, I can give you a link to a website that will take your screenshot and convert it to the various ways colorblind people will see it.

regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Listbox Not Focused Color

Postby cdmmaui » Tue Feb 01, 2011 5:19 pm

Hi James,

Thank you for your assistance.
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests

cron