Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying controls _clipWhat
Message
From
28/02/2013 16:23:59
 
 
To
27/02/2013 02:51:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01567008
Message ID:
01567192
Views:
96
>Dear All
>
>When we do RightClick-Copy (or CTRL+C) in VFP form designer or report designer there is some clipboard content being created
>(presumably containing scx table records) which VFP then uses to create copy of that control. Is there any way to get a hold of that content ?
>If you do ctrl+c on some portion of some text we can read it using _cliptext variable. Is there anything in VFP environment
>that we could use to access this information (copied label or textbox information) ?
>
>Exactly the same question applies for Report Designer.
>
>* * *
>
>With some heavy lifting applied, it is perfectly doable making SCX2FRX() and FRX2SCX() converter utility. Both scx and frx are just vfp tables which we can read/write etc. So this is doable. Not easy, but definitely doable. (Anybody did it already by any chance ?)
>
>However, what I would love to have is to be able to copy not entire forms or frx-es into each other but rather;
>Copy one or more controls at the time between Report and Form and vice versa.
>
>Million $ question is: Am I being humble ? :))
>
>or in other words;
>Is this doable at all, and if yes, what would it take ?


Yes. If it's on the clipboard and not actually being manually maintained by VFP internally, then you can iterate in C++ through the clipboard objects, extracting their content, and then translate it from any form you like to any other form you like. By analyzing the format of the FRX and SCX data, you can create the switch.
Previous
Reply
Map
View

Click here to load this message in the networking platform