Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid, textbox in a container in a column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00127736
Message ID:
00128414
Vues:
37
>That's pretty close. There are actually a few more than four containers and there is a function that is run through DynamicCurrentControl. That function works great, the proper pictures are there and the proper control is in the column. This function also sets the font to .F./.T. if that is the current record. This works too. I know because if you look at the .FontBold property of the textbox for the current active control, it's .T. when it's supposed to be. It's properly set, it just doesn't display unless you lose focus to it. I've tried forcing the .LostFocus event, but it appears that the cursor must physically leave the textbox for it to show. In the above mentioned function, I do a .SetFocus to the container and then back to the textbox.....this works, visually unappealing, but it works. But that's a workaround and doesn't really solve the issue of why the fontbold doesn't show even when .T. Whatever it is that is stopping the fontbold from displaying even though set to
>.T. is the same thing that is stopping the textbox from reverse coloring and becoming visible. I've checked .SelStart, .SelLength & .SelText.....and they too are correct. The visual effect simply does not show and that's what I'm trying to find out.

I'm not sure whether design or bug (not really either, perhaps, just a side effect of somewhat conflicting actions), but this is something I bump into fairly often with dynamics vs. cell focus in grids, too. The simplest case is just dynamic row highlighting where you put focus to a cell and the dynamic coloring is lost in the cell. Of course, the fix is just to use This.Backcolor = This.Selectedbackcolor, etc. in Gotfocus for this problem. Having intermediary containers complicates things, as I well know, too. Not much help, but certainly my sympathy...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform