Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Font color in listbox
Fri, Aug 21 2015 2:45 AMPermanent Link

Jim Gallagher

I'm actually a little embarrassed to ask this, but I've tried everything I can think of to change the font color of a listbox, and I can't get it to work.  Changing the Font.Color property has no effect for me.  It allows me to change the property to red or blue or black, but it always displays as grey.  

II changed the background color in the interface, so I thought maybe I had to change the font color there.  It does change the default color that shows in the listbox, but it still displays as grey.  I see that there is an "ApplyProperties" property, but setting FontColor to true has no effect for me.

I know I'm missing something obvious, or maybe I've hosed my environment somehow.  The help for Font for the listbox seems to imply that this should work.

-Jim
Fri, Aug 21 2015 12:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jim,

<< I'm actually a little embarrassed to ask this, but I've tried everything I can think of to change the font color of a listbox, and I can't get it to work.  Changing the Font.Color property has no effect for me.  It allows me to change the property to red or blue or black, but it always displays as grey. >>

The control interface that affects this is the TListItem interface.  In it, you'll see that the FontColor is applied during state transitions to allow the text to change from grey (normal) to white (focused).  So, the interface state updates will override your Font.Color property setting.

I'm trying to come up with a way to filter out font properties that will be overridden by interface state transitions at design-time, but haven't come up with a reliable method to do so yet.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Aug 21 2015 1:32 PMPermanent Link

Jim Gallagher

Tim Young [Elevate Software] wrote:

<<I'm trying to come up with a way to filter out font properties that will be overridden by interface state transitions at design-time, but haven't come up with a reliable method to do so yet.>>


Thanks, Tim.  Got it working now.  I think it would be ideal for your more, um, literal-minded customers (kindest way I can put it) if the overridden properties not appear.  Failing that, a brief pointer in the help for TListbox would go a long ways.  I haven't checked the on-line version, but the installed help for the Listbox's Font property just says "Specifies the properties of the font used to display the content of the control".

I don't want to sound critical.  This is an amazing product, and is getting better by leaps and bounds.

-Jim
Fri, Aug 21 2015 2:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jim,

<< Thanks, Tim.  Got it working now.  I think it would be ideal for your more, um, literal-minded customers (kindest way I can put it) if the overridden properties not appear.  Failing that, a brief pointer in the help for TListbox would go a long ways.  I haven't checked the on-line version, but the installed help for the Listbox's Font property just says "Specifies the properties of the font used to display the content of the control".

I don't want to sound critical.  This is an amazing product, and is getting better by leaps and bounds. >>

No problem.  The individual font* properties in the ApplyProperties property (!), were a very late addition to accommodate the late changes/improvements to the control interfaces, so I didn't get a chance to work through the design as much as I would have liked.

Tim Young
Elevate Software
www.elevatesoft.com
Image