Dyalog / ewc-client

Other
1 stars 4 forks source link

Add support for Edit 'Style' 'Multi' #232

Closed mkromberg closed 1 month ago

mkromberg commented 2 months ago

Run DemoMultiEdit, and make a selection. The end result (Win32 screen shot) should be:

image

Note the WC message:

{"WC":{"ID":"F1.NotePad","Properties":{"Event":[["MouseUp",""]],"Font":["Courier New",20],"Posn":[50,10],"Size":[740,780],"Style":"Multi","Text":["Lorem ipsum dolor sit amet, consectetur adipiscing elit,",blablabla,"sunt in culpa qui officia deserunt mollit anim id est laborum."],"Type":"Edit"}}}

It contains: Style: Multi Text: As a a list of strings in Multi Mode Event: MouseUp

Note that when the application requests the SelText event in Multi mode, the returned value should be a two-element list of 2-element lists giving the starting and ending line and column. In this case, that would be:

"SelText":[[2,23],[3,26]]

NB not [3,25]: SelText returns the position of the first NON-selected character.