Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding movable fields to formset page
Message
De
10/06/2007 13:41:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Adding movable fields to formset page
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01231849
Message ID:
01231849
Vues:
50
Hi all,

We have some code set up to place a movable field on a formset page. It places the textbox and a caption. The textbox is created from a class we created called "mobilebox" and the caption is create from a class we created called "mobilelbl."

The fields are placed on a page tab within a form within a formset. The caption is movable. The textbox isn't. When we did this on a single form WITHOUT a formset, it worked just fine with both the caption and the label moving.

Here is some of the code that's found within both mobilebox and mobilelbl:

Mousemove procedure:
LPARAMETERS nButton, nShift, nXCoord, nYCoord
IF nButton = 1
Thisformset.Xoffset = nXCoord - THIS.Left
Thisformset.Yoffset = nYCoord - THIS.Top
ENDIF

DragDrop procedure:
LPARAMETERS oSource, nXCoord, nYCoord
THIS.Parent.DragDrop(oSource, nXCoord, nYCoord)



And on the current tab of the pageframe where we're adding the field and caption:

DragDrop procedure:
LPARAMETERS oSource, nXCoord, nYCoord
oSource.left=nXCoord-thisformset.xoffset
oSource.top=nYCoord-thisformset.yoffset


Is there something we should be looking for, or is it some kinda strange thing within VFP that captions can be dragged within formsets but textboxes can't?

Thanks!

John
Répondre
Fil
Voir

Click here to load this message in the networking platform