Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Horrible CheckBox within grid
Message
 
 
À
07/06/2002 08:43:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00665495
Message ID:
00665892
Vues:
25
Hi!

Grid works with controls in columns personally without using properties of control in most cases. The properties of control inside of the column has effect only when control is focused for editing. Also, when grid draws self, it alway force drawing of the control no matter what its state is. Becuse control with Visible =.F. could not b focused, any attempt to click on it will cause nothing. In other words, you just see the image of the control drawn by grid control, but not the control itself.

>That is true. But why ist it visible without the visible=.t. statement?
>
>Peter
>
>>Hi!
>>
>>.Column1.addObject("Lcheck", "Checkbox")
>>.Column1.Lcheck.Visible = .T.
>>
>>Controls added in run-time are always added with property Visible = .F.
>>
>>>Hi, Folks!
>>>
>>>I have a silly problem dealing with grid and checkboxes:
>>>- I have a data source in any open work area.
>>>- I create a grid using ColumnCount=-1 and bound them to the datasource.
>>>- Some VFP automatics works very well (calculating column widths etc.)
>>>- Now the hack: I try to change the first column from textbox to checkbox!
>>>- That works fine - but the checkbox is always readonly!
>>>- I tried a lot of stuff:
>>> - dealing with BoundTo
>>> - setting ReadOnly=.T. programmatically
>>> - explicit setting of controlsource of the checkbox
>>>
>>>But whatever I do, the ... checkbox is read only at all!
>>>
<<<< .Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform