Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form moving
Message
De
22/06/2009 13:45:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01407630
Message ID:
01407647
Vues:
42
>>>Is there a way to limit form to be moved above some point?
>>>Like when you dock a toolbar on top of the _screen and you can't move the form below it.
>>>I tried to put in Moved event this.Top = something but if tje use holds the mouse button and continue drag the mouse there is a very ugly flickering.
>>>TIA
>>
>>Not tested - but have you tried NODEFAULT in mousedown under certain point ? (or some other mouse method)?
>
>Mouse is already down :-) user clicks on Title bar and moves the form, the only eevnt I could think off is Moved, but it cause me trouble :-)

Indeed, it looks ugly.

Here is another idea:

In Form.Moved(), activate a Timer object, to move the form 0.500 seconds later, or some other convenient time. That way, you shouldn't get that ugly flicker.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform