Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column Moved or Resized - How to know?
Message
De
12/01/2010 19:24:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01443558
Message ID:
01443581
Vues:
34
>>>>This one is for VFP7.
>>>>
>>>>Moving or resizing a column does fire the Move or Resize Event of the column, but that's really all I can locate. In my situation some other objects on the form need a refresh in both cases, but their Refresh() is not triggered. I could add some code ( e.g. thisform.refresh() ) in the Move() and Resize() method of each column, but that can hardly be called a fundamental solution.
>>>>
>>>>Is there any other trick or place to test?
>>>
>>>See ideas from Re: How can I determine, if I changed row by clicking on hea Thread #556166 Message #556420
>>
>>When searching here for a solution I found that thread/message from 2001. But I didn't understand fully what it is about. Perhaps you can recall, since you were one of the participants in that thread.
>
>I think the idea was to distinguish between clicking on the header and resizing/moving the column. It was quite a while when I used this class last time since I switched to VFP9 GridSorting with BINDEVENT solution.

I was able to tackle my problem. Some columns already got a new header. But now I give ALL columns a new header. That new header contains some code for refreshing other objects on the form. The biggest problem remaining is that it takes a double for/next routine to retrieve the LEFT of the header/column. And this routine must be done each time that the user clicks on a header.

Perhaps this routine can be done less times if we can distinguuish between a simple click and a move click. Any idea is welcome.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform