Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show control bound at run-time
Message
 
À
30/01/2006 08:23:07
Lam Hung
Truong Nguyen Co.,Ltd
Ho Chi Minh City, Vietnam
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01091397
Message ID:
01091768
Vues:
20
Hi,

> It means, at design time Microsoft Visual Fox view 8 dot arround the control so that we can resize or move it. But It only shows at design time and I want to show it at run-time.

There's no built-in way to simply activate this feature. You rather have to write code yourself to achieve this. One way to accomplish this is to put a transparent container on top of the control. You can change the BorderStyle property to achieve the dotted line effect. Add eight more little shapes as the resize handles. Then add code to the MouseDown, MouseMove and MouseUp event to respond to mouse movements by resizing or moving the control.

The class browser use a similar techology for the splitterbar control. The sources are in the XSource.ZIP file.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform