02-20-2017, 04:35 PM
(02-20-2017, 02:02 PM)ggaliens Wrote: I'm trying to paste into a wide text control in WINGS ...As know, that is the usual behaviour in Windows.
pasting from a spread-sheet column of numbers using CUT/PASTE.
I only get the first CELL of data . I could like to get all the cells.
In a single line control, if we try to past multiple lines then only the first one is "accepted". That you want just works only for multiple line controls.
At the Windows' API documentation for Edit Controls Style we see that ENTER isn't managed by single-line controls:
Quote:ES_WANTRETURN
Specifies that a carriage return be inserted when the user presses the ENTER key while entering text into a multiline edit control in a dialog box. If you do not specify this style, pressing the ENTER key has the same effect as pressing the dialog box's default push button. This style has no effect on a single-line edit control;
...
ES_MULTILINE
Designates a multiline edit control. The default is single-line edit control.
When the multiline edit control is in a dialog box, the default response to pressing the ENTER key is to activate the default button. To use the ENTER key as a carriage return, use the ES_WANTRETURN style;
and specifically for wxWidgets - wxTextCtrl:
Quote:wxTE_PROCESS_ENTER:Basically the same thing.
The control will generate the event wxEVT_TEXT_ENTER (otherwise pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any);
...
wxTE_MULTILINE:
The text control allows multiple lines. If this style is not specified, line break characters should not be used in the controls value.
As Wings3D doesn't have any need for multiple line controls they doesn't exists in wings_dialog.erl module (1386 and 1464).
So, probably you will need to manage the clipboard by your self. Maybe adding a button to do that using the wxClipboard class. Just an idea.
Maybe dgud could bring more details.