Copy to clipbord not working with selected columns in table window (TD3.1)

forum.td.development (2005-2010)
StefanM
Germany
Posts: 610
Joined: 10 Aug 2018, 15:57
Location: Bavaria

Copy to clipbord not working with selected columns in table window (TD3.1)

Post by StefanM » 14 Jul 2010, 19:46

 Posted by:  Stefan Misch 

Hi,

I just noted that in a table window with flag TBL_Flag_SelectableCols
set, you can't copy column values to the clipboard (also "Copy" in edit
menu with SalEditCanCut won't get enabled) whereas it works with
selected rows.

???

Any way to work arround this?

Thanks,
Stefan

StefanM
Germany
Posts: 610
Joined: 10 Aug 2018, 15:57
Location: Bavaria

Copy to clipbord not working with selected columns in table window (TD3.1)

Post by StefanM » 16 Jul 2010, 10:13

 Posted by:  Stefan Misch 

It seems that this functionality is not supported by normal SAL stuff.
You have to write code
- to enable/disable "Copy" in menuEdit in case the current control is a
table window with columns selected
- to loop through table window rows/cols to collect selected text and
copy this to the clipboard using WIN32 SDK functions (see
SalExtension-Library, SalEditCopyLongSTring - thanks to Rainer Ebert).

Stefan

Return to “td.development”

Who is online

Users browsing this forum: [Ccbot] and 0 guests