Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Couple of Questions
Message
From
16/10/2007 11:37:09
 
 
To
16/10/2007 11:30:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01261225
Message ID:
01261275
Views:
8
>Hi Fred,
>
>>You'll have to choose the object name since you'll be using thisform.AddObject()
>
>What happens when you drag a class from the class menu ? Is there a class file in the FCC directory where I can see some code ? I quess I can store in a file or property somewhere a value used in the naming.

I've only way I've ever done it visually is from the Class Browser. When you do it that way, the naming would be automatic. I've dynamically added objects to a form with thisform.AddObject(), but you have to choose the object name that way.

>
>
>>Since when you click on an object that's in the container and try to start the drag, the short answer is you can't, you're not on the container, you're on the object in the container. You'll have to put some sort of transparent shape over the object to trap the click, and pass the information down to the container itself. I've never tried doing that through the shape on top for drag/drop, but I guess it could be done. Maybe you can do it in each of the objects in the container to pass the click down to the container.
>
>
>What if when dragging starts happening and you set focus on the container ? Not a big deal anyways... the dragging feature in this app will be intended for a developer person's maintenance.

I don't know, I've never tried that. I'd think you have to capture the MouseDown on the other objects and then you could manually start the drag for the container. I don't think setting focus will buy you anything.

>
>thanks for the input,
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform