Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Freeze 1 column to be always visible
Message
 
 
À
02/08/2001 01:36:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00538711
Message ID:
00538741
Vues:
12
Hi!

It is possible to catch the event BEFORE user click reach the scroll bar of grid and lock the screen, then unlock just after scrolling. However, this require a lot of work and I did not really tested if mouse click on the locked form will be able to fire grid scrolling by scrollbar, so think if you really need this. (At least click on the button on locked screen fire button's click event, but I know a lot of differences between locked screen and unlocked related to grid behavior, so I'm not sure here.)

To catch the event before scrolling, you require to put transparent shape over the grid scroll bar. Then, after user click on scrollbar, hide the shape, lock the screen and forward mouse event to the form again. After you unlock the screen, you require to show the transparent shape again. Code sample of how to forward mouse events to the form again by API functions you can find in the Fancy ToolTip control that you can find here in the downloads section. It used the same approach - when user clicks on the tool tip accidentally, tool tip is hidden and any control under tool tip works as required, include ActiveX controls.

When tabbing through grid cells, it is also required to lock the screen in the BeforeRowColChange. It is tricky also because this event called when grid losing focus and grid reconstruction happens. When first you can catch in the LostFocus of the container where grid is placed and unlock screen there, third is hard to avoid, but I guess reconstruction is not used in your grid.

Tremendous...

Let me know if you have any questions.

>I read the article writed by Vlad Grynchyshyn.
>
>The article suggests use Lelfcolumn property to make the 1st column to be always visible even scrolling.
>
>It is a great tip I looking for and very easy to apply!
>
>But 1 drawback is the screen will flicker.
>
>Any solution??
>
>TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform