Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mover class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00522167
Message ID:
00522667
Views:
23
>>>>Well, for the mover functionality it is easier to manipulate the arrays than cursors - that's why (IMHO) most of them are array-based. In my mover class that you tried, I had save and restore selection functionality before, then I dropped it because it overcomplicates the class (probably unnecessary in most cases) and users' understanding on how it should work is different.
>>>
>>>Nick,
>>>
>>>If you have class, which has:
>>>1) Auto-resizing (simple enough)
>>>2) Drag+drop in addition to buttons
>>>3) Multiselect
>>>4) Ability to show several (say, three) columns
>>>5) Save+Restore ability
>>
>>>
>>>and you can share this class with me, I would really really appreciate it.
>>
>>Well, n-tier grid + GridDragDropper 2.0 may do this. :)
>>
>>Actually, there are many issues to resolve before you can create a generic multifunctional mover class.
>>
>>For example, my mover class supports drag & drop, but if you use multiselect in listboxes, how that supposed to work with Drag&Drop? You multiselect the items in the listbox, then one wrong finger move and your selections are gone. Here the grid wit the logical field may be better solution.
>>
>
>Right. And this is how Cetin implemented it.
>
>>What do you mean by auto-resizing exactly? There are many classes in Downloads section which automatically resize all controls on the form, why not use those?
>
> I mean resize this particular container. Both listboxes should be centered in this container, have width = (width of container - width of buttons + some space)/2 and height = height of container - height of label - some space. Really simple code and it's already in _mover class of _FFC classes, but for some reason not in the class we have.
>

IMHO, resizeability is overrated. For example, I made several apllications with Visual Extend framework. It has built-in resize-and-reposition functionality, but in every application it was turned off by uses' request. So happened, in any of my applications resizeability was never used. I believe in most cases it is from "nice to have" category.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform