Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox Color Problem

Status
Not open for further replies.

rojariggs

IS-IT--Management
Feb 24, 2002
27
Hi

Got a weird issue. I have a form with a listbox on it. This list is setup as black text on a white background. However, when you load the form the listbox displays as black text on a grey background. If you click on an item and then off it again it displays correctly.

I have checked and double-checked all the properties for the listbox and the form but cannot get this to work correctly.

Anyone else come across this?

Thanks

Rog
 
It sounds like its disabled or readonly at the start.

Have you checked all of your control source? and row source?

Alan
 
Thanks guys. I'd been through all of those.

Have it sorted now. I had added a rectangle to the form around a control. Deleted the rectangle and all started working OK again. I have replaced the rectangle and still working OK.

I can only think that something was corrupted or eating a lump of memory. Weird!

Thanks

Rog
 
Happening again on a different screen now. Very annoying!

 
What do you mean by a different "screen"? Do you mean a different form? If so, have you checked that to see if that has a "rectangle" as well? (By the way, what is a "rectangle"?)

Or do you meant it's happening on a different monitor?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Hi Mike

Sorry, I mean a different form (I'm coding in VFP but I still speak FPW!).

When I say a rectangle I mean a shape that I have drawn to visually separate two sections of the form.

I have replaced the rectangles/shapes on these forms with JPEGS of the same shape, size and colour and all is now well again.

Very odd.

Cheers

Rog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top