Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox background colors are Incorrect
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00488291
Message ID:
00488457
Views:
8
Well after spending too many hours I can now produce my erroneous textbox background color consistently, in my application. I have a toplevel form, pageframes, and then a container, which are all classes. The textboxes have the incorrect color only if the container has a grid, and a shape that has a fill color solid, and a non-default background color. If i create a new container class and add a grid, shape (fill color solid and a non-default background color) and then a textbox, the textbox always has the shape's background color when I instantiate it within my application.

Kind of weird, but I have seen weirder. Thanks for the help.

Brenda


>Hi Brenda,
>What happens if you open a new container class and paste in the textboxes (both good and bad)? Does the new container continue the problem or correct it?
>
>Also, can you put a breakpoint on the background color of one of the 'bad' textboxes and track where the color changes?
>
>Finally, do you have any user preference tables (including FoxUser or another resource file) that might be causing problems? This was the reason I had grids that wouldn't show the correct column widths - the user preference table had stored the original values and overwrote my new values at runtime.
>
>HTH
>Barbara

>>I have 6 textboxes that will not behave. In the designer their background color is correct, but when the app is running, the background color is wrong. I have about 40 container classes with several thousand textboxes and it is only these scattered 6 that are wrong. I have done project searches, and compared property sheets, and I feel 100% sure that the background color is not changing through the code or design.
>>
>>After many attempts at many different things, I feel it must have something to do with the container class not reporting something properly ... how vague is THAT? Once the container gets a bad textbox, every textbox added after that has the incorrect background color. I have copied and pasted good textboxes and I have added new textboxes without changing any defaults (which is the desired font and colors) on the containers, and all these "new" textboxes have the wrong background color when the application runs. Once a container gets one of these bad textboxes, every textbox after it also has the incorrect background color.
>>
>>Any ideas where I can look or what I can look for?
>>
>>Brenda
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform