Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid, textbox in a container in a column
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00127736
Message ID:
00127739
Views:
35
>I have a grid that in column 1 has a container in it. The container has an image and a textbox control on it. The .DynamicCurrentControl for column 1 is filled with a call to a function to determine what picture to put in the image control. In that function there is also a check to see if the font for the textbox should be bold or not. The .DynamicFontBold has an IIF() statement to bold the active row.
>
>This is all working........except that the bold characteristic of the textbox in the container does not display bold unless focus is NOT on that textbox. One can see this in two ways..if focus is in some other column, the textbox displays bold very nicely. Once focus is in the textbox, the bold goes away even though the property is still .T. You can also see it when focus is in the textbox and you hit a navigation key the textbox will become bold for a brief second as focus is transferred to another row.
>
>The textbox is also a searchable one. The coloring mechanisms for the class work fine in other grids but not here. Whatever is holding up the font bold is also holding up the reverse color while searching.
>
>I've tried switching .Bound and a host of other ideas but no solution.
>The bold won't show up unless the textbox does not have focus.
>
>Any ideas?
>
>Thanks,
>Steve

What if you will set bold in Form Designer, i.e. include already bold textbox to the container. Now, you can exclude container column from DynamicFontBold setting.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform