Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting Text in Grid Column Control
Message
De
14/03/2001 14:47:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Highlighting Text in Grid Column Control
Divers
Thread ID:
00485019
Message ID:
00485019
Vues:
57
I have a class made from a control containing a textbox and a command button. The class is set up so that the first two characters are highlighted in the GotFocus event of the textbox using SelStart and SelLength. This all works properly when the control is placed on a form, the characters properly highlight. However, when I place the control in the column of a grid, the two leading characters are not highlighted when tabbing into the cell containing the control. I have verified that the GotFocus of the textbox in the control fires using the debugger and wait window but the characters are not highlighted and the cursor is placed at the beginning of the text.

I have noted this tyoe problem in grids before and in a standard textbox in the column I have found that placing
NODEFAULT
TextBox::GotFocus()
THIS.SelStart = X
THIS.SelLength = Y
in the GotFocus() usually takes care of it. I tried this type code in the class textbox but it still does not highlight. Is this expected behavior or a bug and regardless of which, is there a sure fire way to get my highlighting to occur in my class textbox when it is instantiated in a grid column?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Répondre
Fil
Voir

Click here to load this message in the networking platform