Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Grid help with the cursor in a textbox
Message
From
29/01/2007 11:52:28
 
 
To
29/01/2007 11:01:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01189689
Message ID:
01190141
Views:
21
>>>>>>>>I have a grid that I have implemented a multi-selection capability with. The issue I have is that I have text boxes in the grid and when clicked on I get the cursor displaying in the textbox as well as the highlighting around the edges of the textbox.
>>>>>>>>
>>>>>>>>I am using the gotfocus of the textbox to update the back and forecolor of the textbox. I use the mousedown of the textbox to call the method to highlight the row(s).
>>>>>>>>
>>>>>>>>I would appreciate some help in preventing the textboxes from having the cursor.
>>>>>>>>
>>>>>>>>Jason
>>>>>>>
>>>>>>>*gotfocus
>>>>>>>nodefault
>>>>>>>
>>>>>>>Cetin
>>>>>>
>>>>>>Is there a way to prevent the cell from showing a white highlight around the edges when the cell is clicked in when I am using dynamicbackcolor?
>>>>>>
>>>>>>Jason
>>>>>
>>>>>Probably you're using with a margin.
>>>>>Cetin
>>>>
>>>>Margin = 0
>>>
>>>I don't know then. I don't see that white line.
>>>Cetin
>>
>>Cetin, take a look at the "Display controls in a grid" sample from the solutions project in the controls - grid section. If you click on several different records in the product column you will in this case see a blue border around the specific textbox you have clicked in. Mine is showing as white as the textbox I am clicking in has a coloured background due to dynamicbackcolor. I do not want the hightlight on the textbox.
>>
>>Jason
>
>Did you try to set Grid.AllowCellSelection=.F. ?

Unfortunately this does not do what I want. The first column I do not want hightlighting on as it shows a status color. The other columns I do want hightlighted. When I set the allowcellselection I get all cells in the row hightlighted.
Previous
Reply
Map
View

Click here to load this message in the networking platform