Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing a container during runtime?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00459387
Message ID:
00459448
Views:
19
>Hello, I would like my users to be able to resize a container object by clicking and dragging the border during runtime. Is this possible?
>
>If it's not I'll just prompt them for a new width and height. But it'd be really nice to be able to drag the size out themselves.

You can use two different approaches: Work with the drag & drop events of the container (that can be a bit tricky), or put some invisible handles on the container corners that drag&droppable. Ideally you would make the handle visible when the user start dragging to let her know where is she moving it. Once she drops the handle, you just make it invisible again and resize the container according to it's position.

You can write all this once in a container subclass and use it everywhere.

I'm not sure, but you probably can -when the drag starts- add a shape object that gets constantly resized while the user drags, marking the new container size, and that gets removed as soon as she drops. This can be a better visual indication.

Of course, that's my idea. You have to code it. 8-)


Good luck.
Previous
Reply
Map
View

Click here to load this message in the networking platform