Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wishlist: Revision of the RelativeRow propery.
Message
De
06/11/1999 10:21:39
Walter Meester
HoogkarspelPays-Bas
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00284474
Message ID:
00288018
Vues:
22
Mark,

>In my incremental search textbox, I have the following in my InteractiveChange method:
>with ThisForm
>   .LockScreen = .t.
>   with .GridName
>      do while .RelativeRow > 1
>         .DoScroll(1)
>      enddo
>      .Refresh()
>   endwith
>   .LockScreen = .f.
>endwith
>
I've just looked at your class, sorry for the time delay.

Sadly your solution doesn't work. The Relativerow property does return 0 therefor the record does not show up in the first line. That's what's this wish is about. The relativerow property has a value of 0 when it does not have the focus.

I can't see any reason why it should return 0 instead of the actual relativerow when the grid doesn't have the focus.

Things become more complicated when you want to highlight the row without have to set the focus onto the grid.

Personally i've found a workarround by using a negative transparent shape to highlight the row (evolved from a grid found on David F's site) and setting the height of the grid to exactly one row, refresh it, and restore the grid's height (of course with the help of lockscreen).

But this workarround is clumsy. therefore I would ask MS to fix (or enhance) the relativerow property

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform