|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Howto disable Insert and Append?
Howto disable Insert and Append? [message #13381] |
Thu, 03 January 2008 18:32 |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Hi,
I have quite a lot of tables where I do want people to be able to paste cell values and ranges of cell values but I do not want people to be able to change the size of the table.
I have tried
m_grid.Appending(false).Inserting(false);
but this does not appear to work.
Hey Daniel, are you looking at fixing copy/paste TO excel?
Nick
|
|
|
|
Re: Howto disable Insert and Append? [message #13401 is a reply to message #13381] |
Fri, 04 January 2008 00:07 |
|
nixnixnix wrote on Thu, 03 January 2008 12:32 | Hi,
I have quite a lot of tables where I do want people to be able to paste cell values and ranges of cell values but I do not want people to be able to change the size of the table.
I have tried
m_grid.Appending(false).Inserting(false);
|
Use m_grid.FixedPaste() - to disable adding rows to fit clipboard data. Is that what you need?
Quote: |
Hey Daniel, are you looking at fixing copy/paste TO excel?
|
GridCtrl support pasting of text clipboard (OO and MS Office stores grid data both in text and internal format in the clipboard). It should work fine. What's wrong?
|
|
|
|
Re: Howto disable Insert and Append? [message #13444 is a reply to message #13403] |
Mon, 07 January 2008 18:58 |
|
nixnixnix wrote on Thu, 03 January 2008 19:15 | Sorry Mirek, yes I'm talking about GridCtrl.
Daniel, I tried the FixedPaste and it prevents appending but still allows inserting. What do Appending(false) and Inserting(false) do?
|
Appedning enables ability to add or to insert a row (available in popup menu and through keyboard shortcuts
Try ExtraPaste(false) to turn off the "paste as.." menu. Is that what you need? I can also synchronize it with Appending switch if you want.
|
|
|
|
Goto Forum:
Current Time: Wed May 15 05:33:53 CEST 2024
Total time taken to generate the page: 0.02431 seconds
|
|
|