Page MenuHomeFeedback Tracker

Control CT_EDIT - ST_MULTI : Implement carriage return and tabulation
Reviewed, WishlistPublic

Description

When using a multiline edit box like the one in the BIS debug console, it is impossible to insert a carriage return or a tabulation with the keyboard.

In addition, when we copy a text from the clipboard (Ctrl-V), all carriage returns and tabulations are broken.

This is annoying for some very useful community tools. It also corrupts a SQF script pasted in the text box, if it contains inline comments (//).

Implementing these characters will provide a powerful tools to develop scripts in real time ingame.

Details

Legacy ID
657004446
Severity
None
Resolution
Open
Reproducibility
Always
Category
Ingame UI
Steps To Reproduce

Add a multiline edit box like this in your dialog :

class my_multi_line_edit_box
{
idc = -1;
type = 2; CT_EDIT
style = 16;
ST_MULTI

// etc.
};

  • Type the "enter" or "tab" key => It does not insert the willed character in the text field.
  • Copy/paste a random text into the text field => All carriage returns and tabulations are replaced by spaces.

Event Timeline

madbull edited Steps To Reproduce. (Show Details)Aug 11 2013, 3:35 PM
madbull edited Additional Information. (Show Details)
madbull set Category to Ingame UI.
madbull set Reproducibility to Always.
madbull set Severity to None.
madbull set Resolution to Open.
madbull set Legacy ID to 657004446.May 7 2016, 3:58 PM
Bohemia added a subscriber: AD2001.Aug 11 2013, 3:35 PM

Absolutely agreed. Though I have a syntax highlighting in Notepad++, I don't always want to write in there and then copy paste it over and over again.