Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & Memo and other problems...
Message
 
 
À
10/06/1999 15:31:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227549
Message ID:
00228554
Vues:
20
Hi Dragan,

>I'm in charge of such decisions over here, so this grid of ours gets built at runtime, using AddObject(cColumnName, "ColumnClass") - and this column class is

How you define cColumnName?

defined in a .prg, so it has different defaults regarding the default control and its

I am new here. I always created my classes visually, so could you give me a little more example here - how this prg should call, invoke, etc. I understand,
that I still can create this class visually, then copy code from ClassBrowser.
And am I right that I need to create class based on textbox, just in DblClick event and in KeyPress on Ctrl+Home have this code:

MODIFY MEMO

How can I decide when I need to put NOEDIT here - it depends on READONLY property of the parent object...

>This is all it takes, in grid's AfterRowColChange (nCurrentRec is the form's custom property to keep the RecNo(), initially 0):
>
>
IF ThisForm.nCurrentRec <> RECNO()
>   ThisForm.nCurrentRec = RECNO()
>   ThisForm.LockScreen = .T.
>   * here we may have other controls as well, not only this grid
>   ThisForm.Refresh()
>   ThisForm.LockScreen = .F.
>ENDIF
>
>
>Now I do a ThisForm.Refresh() just because I'm not sure other controls will be within a container with a predefined name, and this is what makes it work for sure, with probably a little more effort by the processor. Anyway, this refresh doesn't take long, and we surely don't expect the user to do hundred of these in a second - he's supposed to take a look or use some search function, not to press down arrow indefinitely (though it still works fine even that way). Just make sure the other controls have a controlsource with the same alias as the controls in the grid have, or belong to related tables (so their value changes as we navigate down the grid).

Ok.

Could you also suggest something about SetFocus problem?

Thanks a lot
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform