Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tabstop in a Grid Not Working
Message
De
11/06/2007 07:01:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/06/2007 06:37:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01231787
Message ID:
01231917
Vues:
13
>>>>>Hi.
>>>>>I have a Gris with a few columns, and I want the default behaviour of some of the columns to be Tbastop = .f., so the user should not land in them.
>>>>>
>>>>>I notice there is not a Tabstop control for the column itselef, so I set the Tabstop of the Control in the column to .F., however, the user still lands in the column, and the TabStop propert seems to make no diffeence.
>>>>>
>>>>>Is there a way of 'Jumping' over a column ?
>>>>>
>>>>>Regards,
>>>>>Gerard
>>>>
>>>>Gerard,
>>>>Either set enabled = .f. for the column or return .f. from when event of its control. Both however wouldn't prevent you form focusing to it with mouse.
>>>>Cetin
>>>
>>>Setting WHEN to false WILL prevent focussing with the mouse.
>>
>>In which version?
>>Cetin
>
>In all versions. The cursor won't be positioned in the cell and selecting text won't be possible.

I didn't say it'd allow selecting text but it can get focus. ie:
PUBLIC oForm
oForm = CREATEOBJECT('myForm')
oForm.Show

DEFINE CLASS myForm as Form
    datasession = 2
    Height = 200
    Width = 600
    PROCEDURE load
        USE (_samples+'data\customer')
    endproc

    ADD OBJECT myGrid as grid WITH height=200,width=600

    procedure init
        WITH this.myGrid.Columns(2)
            .NewObject('text2','myTextBox')
            .CurrentControl = 'text2'
            .Sparse = .f.
            .text2.visible = .t.
        endwith
    endproc
ENDDEFINE

DEFINE CLASS myTextBox as textbox
    PROCEDURE when
        RETURN .f.
    ENDPROC
enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform