Cutting,Copying & Pasting Edit table data (OpenInsight Specific)
At 15 APR 1998 01:13:57PM B Cameron wrote:
This doesn't seem to be working for me in my application.
Can this be done??
Thanks
At 15 APR 1998 01:53PM Jeff Blinn wrote:
If you select text in an edit table you can use the standard windows keys (Cntr-C/X/V) to copy/cut and paste. However, if you select the text and attempt to use the menu options for these functions it doesn't work. I've been trying to find a way to 'send' the windows keystrokes, but I haven't had any luck.
Jeff
At 15 APR 1998 02:11PM Blaise(Revelation) wrote:
Bruce and Jeff,
In an edit table the text must be highlighted first in order to do a cut, copy or paste. When the cell is selected the text is not at this point highlighted, you must press the F2 key to highlight the text. When the cell is in this state you can cut, copy or paste.
As far as doing this from a menu option, take a look at the text property in the online help and check out 'CLIPBOARD'. You can access the windows clipboard to copy and paste things to and from it.
Good Luck…
Blaise
At 15 APR 1998 07:40PM Mike Ruane wrote:
Bruce-
Go to the Knowledgebase, and serach on EditCell.
It has most of what you want, I think.
Mike
At 16 APR 1998 10:45AM B Cameron wrote:
Blaise,
Thanks, now from a users standpoint I enter an itemid, the form read and fills in an edittable that has two columns. Now I want to take my mouse and highlight the whole table or a column and use copy,paste. Can this be done swiftly? Clicking on a column heading, click and drag, click on coord. 0,0, for example?
Bruce
At 16 APR 1998 09:56PM Dave Pociu wrote:
Bruce,
Yes it can be done and it helps if you have a Windows SDK! Look at the STYLE property. You can set an edit table's style to allow multi-row and multi-column selection among other things.
I am not 100% sure, but for multi-column selection you might have to destroy ( using the Utility function) the table and re-create it with the new style (on CREATE for example).
Setting the multi-row style on the other hand works like a charm without the need for drastic (Destroy) measures.
Also look under the POPUP_SUB procedure for how the STYLE property, DESTROY, and CREATE are being used.
You might also want to consider some old-fashioned buttons on the side of the table that say "Copy entire table", "Copy column x " or something to that effect. It might be easier…
Hope this helps!
At 17 APR 1998 04:12PM Cameron Revelation wrote:
Jeff,
If you select text in an edit table you can use the standard windows keys (Cntr-C/X/V) to copy/cut and paste. However, if you select the text and attempt to use the menu options for these functions it doesn't work.
This is a bug. We hope to fix it for the next release.
Cameron Purdy
info@revelation.com
At 20 APR 1998 07:14PM B Cameron wrote:
Thanks I'll look into it!