Information générale
Catégorie:
Codage, syntaxe et commandes
>OBJTOCLIENT works for me. Are you sure your TextBox is IN the container?
>>yes...it's Marcia Akinsn & Andy Kramek's Combo Grid class...still don't know what the problem was there...will play w/it a little.
Oops, sorry about Marcia's last name ... it's Akins, of course.
OK, I created a container w/2 text boxes, put it on a form, and got the results that I expected when I displayed the ObjToClient value of the 2 text boxes in the INIT of the form.
The ComboGrid class is a container w/a Grid (top = 24), a command button (top = 1), a textbox (top = 0) and a label (top = 172). If I display the ObjToClient values in the INIT of a form that has a ComboGrid object, w/a TOP of 198, the values show:
Grid 198
textbox 0
button 1
(shouldn't value for Grid be 198 + 24, textbox be 198 and button be 199?)
If I move the display of the values to after the INIT of the form, the values are:
Grid 198
textbox 198
button 199
OK, now textbox and button make sense...but why are they different after the INIT? and the Grid should, again be 198 + 24, I think.
Actually, I don't really need to make use of this any more - but I've never used ObjToClient - it seems handy, but I can't get this straight...Any input is appreciated...J
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement