Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current left column to right of locked columns
Message
 
 
À
30/11/2008 13:38:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01364611
Message ID:
01364743
Vues:
14
Cetin

Has anyone created any code to simulate a split?

>Oh you have split. I didn't think of it and did never check the code thinking split.
>Cetin
>
>>Hi Cetin
>>
>>In my test form when I scroll the second half of my split grid (2 locked columns), the code tells me that the left most column is 3, but in my test column 3 is not visible?
>>
>>The code steps from column3, and reports that the left is 951 not less than zero?
>>
>>Not sure what i'm missing here?
>>
>>Robin
>>
>>
>>
>>>Robin,
>>>Exactly that.
>>>The code would return you the first 'human' visible column's 'index' after the locked columns. All you need is to:
>>>
>>>lnIndex = GetColumnOnLeft( thisform.myGrid )
>>>oColumn = thisform.myGrid.Columns( m.lnIndex )
>>>
>>>Cetin
>>>
>>>
>>>>Hi Cetin
>>>>
>>>>I want to know what the 1st visible column is after the locked columns, even if the user has used the vertical scrollbar.
>>>>
>>>>When I say visible I dont mean the property, I mean that the user can see in the grid.
>>>>
>>>>Robin
>>>>
>>>>
>>>>>>If I have a grid with several columns locked, is it possible work out what the first visible column on the right of the split is?
>>>>>
>>>>>From http://www.foxite.com/archives/column-locking-in-a-grid-0000198556.htm
>>>>>
* GetColumnOnLeft.prg
>>>>>LPARAMETERS toGrid
>>>>>Local ix
>>>>>With toGrid
>>>>>  For ix = .LockColumns+1 To .ColumnCount
>>>>>    If Objtoclient(.Columns(m.ix),2) > 0
>>>>>      Return m.ix
>>>>>    Endif
>>>>>  Endfor
>>>>>Endwith
>>>>>return -1
>>>>>Cetin
Rob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform