]>
Commit | Line | Data |
---|---|---|
5608bce4 FM |
1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
2 | %% Name: styledtextctrl.tex | |
3 | %% Purpose: wxStyledTextCtrl documentation | |
4 | %% Author: Francesco Montorsi | |
5 | %% Created: 2007-08-07 | |
6 | %% RCS-ID: $Id$ | |
7 | %% Copyright: (c) 2006 Francesco Montorsi | |
8 | %% License: wxWindows license | |
9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
10 | ||
11 | \section{\class{wxStyledTextCtrl}}\label{wxstyledtextctrl} | |
12 | ||
13 | A wxWidgets implementation of the Scintilla source code editing component. | |
14 | ||
15 | As well as features found in standard text editing components, Scintilla includes | |
16 | features especially useful when editing and debugging source code. These include | |
17 | support for syntax styling, error indicators, code completion and call tips. The | |
18 | selection margin can contain markers like those used in debuggers to indicate | |
19 | breakpoints and the current line. Styling choices are more open than with many | |
20 | editors, allowing the use of proportional fonts, bold and italics, multiple | |
21 | foreground and background colours and multiple fonts. | |
22 | ||
23 | wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose documentation | |
24 | can be found in the \urlref{Scintilla website}{http://www.scintilla.org/}. | |
25 | ||
26 | \wxheading{Derived from} | |
27 | ||
28 | \helpref{wxControl}{wxcontrol} | |
29 | ||
30 | \wxheading{Include files} | |
31 | ||
32 | <wx/stc/stc.h> | |
33 | ||
34 | \wxheading{See also} | |
35 | ||
36 | \helpref{wxStyledTextEvent}{wxstyledtextevent} | |
37 | ||
38 | \wxheading{Event handling} | |
39 | ||
40 | To process input from a wxStyledTextCtrl, use these event handler macros to direct input to member | |
41 | functions that take a \helpref{wxStyledTextEvent}{wxstyledtextevent} argument. | |
42 | ||
43 | \twocolwidtha{7cm} | |
44 | \begin{twocollist}\itemsep=0pt | |
45 | \twocolitem{{\bf EVT\_STC\_CHANGE(id, fn)}}{TOWRITE} | |
46 | \twocolitem{{\bf EVT\_STC\_STYLENEEDED(id, fn)}}{TOWRITE} | |
47 | \twocolitem{{\bf EVT\_STC\_CHARADDED(id, fn)}}{TOWRITE} | |
48 | \twocolitem{{\bf EVT\_STC\_SAVEPOINTREACHED(id, fn)}}{TOWRITE} | |
49 | \twocolitem{{\bf EVT\_STC\_SAVEPOINTLEFT(id, fn)}}{TOWRITE} | |
50 | \twocolitem{{\bf EVT\_STC\_ROMODIFYATTEMPT(id, fn)}}{TOWRITE} | |
51 | \twocolitem{{\bf EVT\_STC\_KEY(id, fn)}}{TOWRITE} | |
52 | \twocolitem{{\bf EVT\_STC\_DOUBLECLICK(id, fn)}}{TOWRITE} | |
53 | \twocolitem{{\bf EVT\_STC\_UPDATEUI(id, fn)}}{TOWRITE} | |
54 | \twocolitem{{\bf EVT\_STC\_MODIFIED(id, fn)}}{TOWRITE} | |
55 | \twocolitem{{\bf EVT\_STC\_MACRORECORD(id, fn)}}{TOWRITE} | |
56 | \twocolitem{{\bf EVT\_STC\_MARGINCLICK(id, fn)}}{TOWRITE} | |
57 | \twocolitem{{\bf EVT\_STC\_NEEDSHOWN(id, fn)}}{TOWRITE} | |
58 | \twocolitem{{\bf EVT\_STC\_PAINTED(id, fn)}}{TOWRITE} | |
59 | \twocolitem{{\bf EVT\_STC\_USERLISTSELECTION(id, fn)}}{TOWRITE} | |
60 | \twocolitem{{\bf EVT\_STC\_URIDROPPED(id, fn)}}{TOWRITE} | |
61 | \twocolitem{{\bf EVT\_STC\_DWELLSTART(id, fn)}}{TOWRITE} | |
62 | \twocolitem{{\bf EVT\_STC\_DWELLEND(id, fn)}}{TOWRITE} | |
63 | \twocolitem{{\bf EVT\_STC\_START\_DRAG(id, fn)}}{TOWRITE} | |
64 | \twocolitem{{\bf EVT\_STC\_DRAG\_OVER(id, fn)}}{TOWRITE} | |
65 | \twocolitem{{\bf EVT\_STC\_DO\_DROP(id, fn)}}{TOWRITE} | |
66 | \twocolitem{{\bf EVT\_STC\_ZOOM(id, fn)}}{TOWRITE} | |
67 | \twocolitem{{\bf EVT\_STC\_HOTSPOT\_CLICK(id, fn)}}{TOWRITE} | |
68 | \twocolitem{{\bf EVT\_STC\_HOTSPOT\_DCLICK(id, fn)}}{TOWRITE} | |
69 | \twocolitem{{\bf EVT\_STC\_CALLTIP\_CLICK(id, fn)}}{TOWRITE} | |
70 | \twocolitem{{\bf EVT\_STC\_AUTOCOMP\_SELECTION(id, fn)}}{TOWRITE} | |
71 | \end{twocollist} | |
72 | ||
73 | ||
74 | \latexignore{\rtfignore{\wxheading{Members}}} | |
75 | ||
76 | \membersection{wxStyledTextCtrl::wxStyledTextCtrl}\label{wxstyledtextctrlwxstyledtextctrl} | |
77 | ||
78 | \func{}{wxStyledTextCtrl::wxStyledTextCtrl}{\param{wxWindow *}{parent}, \param{wxWindowID}{id = wxID\_ANY}, \param{const wxPoint&}{pos = wxDefaultPosition}, \param{const wxSize&}{size = wxDefaultSize}, \param{long}{style = 0}, \param{const wxString&}{name = "stcwindow"}} | |
79 | ||
80 | Ctor. | |
81 | ||
82 | \membersection{wxStyledTextCtrl::AddRefDocument}\label{wxstyledtextctrladdrefdocument} | |
83 | ||
84 | \func{void}{AddRefDocument}{\param{void* }{docPointer}} | |
85 | ||
86 | Extend life of document. | |
87 | ||
88 | ||
89 | \membersection{wxStyledTextCtrl::AddStyledText}\label{wxstyledtextctrladdstyledtext} | |
90 | ||
91 | \func{void}{AddStyledText}{\param{const wxMemoryBuffer\& }{data}} | |
92 | ||
93 | Add array of cells to document. | |
94 | ||
95 | ||
96 | \membersection{wxStyledTextCtrl::AddText}\label{wxstyledtextctrladdtext} | |
97 | ||
98 | \func{void}{AddText}{\param{const wxString\& }{text}} | |
99 | ||
100 | ||
101 | BEGIN generated section. The following code is automatically generated | |
102 | by gen\_iface.py. Do not edit this file. Edit stc.h.in instead | |
103 | and regenerate | |
104 | Add text to the document at current position. | |
105 | ||
106 | ||
107 | \membersection{wxStyledTextCtrl::AddTextRaw}\label{wxstyledtextctrladdtextraw} | |
108 | ||
109 | \func{void}{AddTextRaw}{\param{const char* }{text}} | |
110 | ||
111 | The following methods are nearly equivallent to their similarly named | |
112 | cousins above. The difference is that these methods bypass wxString | |
113 | and always use a char* even if used in a unicode build of wxWidgets. | |
114 | In that case the character data will be utf-8 encoded since that is | |
115 | what is used internally by Scintilla in unicode builds. | |
116 | Add text to the document at current position. | |
117 | ||
118 | ||
119 | \membersection{wxStyledTextCtrl::Allocate}\label{wxstyledtextctrlallocate} | |
120 | ||
121 | \func{void}{Allocate}{\param{int }{bytes}} | |
122 | ||
123 | Enlarge the document to a particular size of text bytes. | |
124 | ||
125 | ||
126 | \membersection{wxStyledTextCtrl::AppendText}\label{wxstyledtextctrlappendtext} | |
127 | ||
128 | \func{void}{AppendText}{\param{const wxString\& }{text}} | |
129 | ||
130 | Append a string to the end of the document without changing the selection. | |
131 | ||
132 | ||
133 | \membersection{wxStyledTextCtrl::AppendTextRaw}\label{wxstyledtextctrlappendtextraw} | |
134 | ||
135 | \func{void}{AppendTextRaw}{\param{const char* }{text}} | |
136 | ||
137 | Append a string to the end of the document without changing the selection. | |
138 | ||
139 | ||
140 | \membersection{wxStyledTextCtrl::AutoCompActive}\label{wxstyledtextctrlautocompactive} | |
141 | ||
142 | \func{bool}{AutoCompActive}{\void} | |
143 | ||
144 | Is there an auto-completion list visible? | |
145 | ||
146 | ||
147 | \membersection{wxStyledTextCtrl::AutoCompCancel}\label{wxstyledtextctrlautocompcancel} | |
148 | ||
149 | \func{void}{AutoCompCancel}{\void} | |
150 | ||
151 | Remove the auto-completion list from the screen. | |
152 | ||
153 | ||
154 | \membersection{wxStyledTextCtrl::AutoCompComplete}\label{wxstyledtextctrlautocompcomplete} | |
155 | ||
156 | \func{void}{AutoCompComplete}{\void} | |
157 | ||
158 | User has selected an item so remove the list and insert the selection. | |
159 | ||
160 | ||
161 | \membersection{wxStyledTextCtrl::AutoCompGetAutoHide}\label{wxstyledtextctrlautocompgetautohide} | |
162 | ||
163 | \func{bool}{AutoCompGetAutoHide}{\void} | |
164 | ||
165 | Retrieve whether or not autocompletion is hidden automatically when nothing matches. | |
166 | ||
167 | ||
168 | \membersection{wxStyledTextCtrl::AutoCompGetCancelAtStart}\label{wxstyledtextctrlautocompgetcancelatstart} | |
169 | ||
170 | \func{bool}{AutoCompGetCancelAtStart}{\void} | |
171 | ||
172 | Retrieve whether auto-completion cancelled by backspacing before start. | |
173 | ||
174 | ||
175 | \membersection{wxStyledTextCtrl::AutoCompGetChooseSingle}\label{wxstyledtextctrlautocompgetchoosesingle} | |
176 | ||
177 | \func{bool}{AutoCompGetChooseSingle}{\void} | |
178 | ||
179 | Retrieve whether a single item auto-completion list automatically choose the item. | |
180 | ||
181 | ||
182 | \membersection{wxStyledTextCtrl::AutoCompGetCurrent}\label{wxstyledtextctrlautocompgetcurrent} | |
183 | ||
184 | \func{int}{AutoCompGetCurrent}{\void} | |
185 | ||
186 | Get currently selected item position in the auto-completion list | |
187 | ||
188 | ||
189 | \membersection{wxStyledTextCtrl::AutoCompGetDropRestOfWord}\label{wxstyledtextctrlautocompgetdroprestofword} | |
190 | ||
191 | \func{bool}{AutoCompGetDropRestOfWord}{\void} | |
192 | ||
193 | Retrieve whether or not autocompletion deletes any word characters | |
194 | after the inserted text upon completion. | |
195 | ||
196 | ||
197 | \membersection{wxStyledTextCtrl::AutoCompGetIgnoreCase}\label{wxstyledtextctrlautocompgetignorecase} | |
198 | ||
199 | \func{bool}{AutoCompGetIgnoreCase}{\void} | |
200 | ||
201 | Retrieve state of ignore case flag. | |
202 | ||
203 | ||
204 | \membersection{wxStyledTextCtrl::AutoCompGetMaxHeight}\label{wxstyledtextctrlautocompgetmaxheight} | |
205 | ||
206 | \func{int}{AutoCompGetMaxHeight}{\void} | |
207 | ||
208 | Set the maximum height, in rows, of auto-completion and user lists. | |
209 | ||
210 | ||
211 | \membersection{wxStyledTextCtrl::AutoCompGetMaxWidth}\label{wxstyledtextctrlautocompgetmaxwidth} | |
212 | ||
213 | \func{int}{AutoCompGetMaxWidth}{\void} | |
214 | ||
215 | Get the maximum width, in characters, of auto-completion and user lists. | |
216 | ||
217 | ||
218 | \membersection{wxStyledTextCtrl::AutoCompGetSeparator}\label{wxstyledtextctrlautocompgetseparator} | |
219 | ||
220 | \func{int}{AutoCompGetSeparator}{\void} | |
221 | ||
222 | Retrieve the auto-completion list separator character. | |
223 | ||
224 | ||
225 | \membersection{wxStyledTextCtrl::AutoCompGetTypeSeparator}\label{wxstyledtextctrlautocompgettypeseparator} | |
226 | ||
227 | \func{int}{AutoCompGetTypeSeparator}{\void} | |
228 | ||
229 | Retrieve the auto-completion list type-separator character. | |
230 | ||
231 | ||
232 | \membersection{wxStyledTextCtrl::AutoCompPosStart}\label{wxstyledtextctrlautocompposstart} | |
233 | ||
234 | \func{int}{AutoCompPosStart}{\void} | |
235 | ||
236 | Retrieve the position of the caret when the auto-completion list was displayed. | |
237 | ||
238 | ||
239 | \membersection{wxStyledTextCtrl::AutoCompSelect}\label{wxstyledtextctrlautocompselect} | |
240 | ||
241 | \func{void}{AutoCompSelect}{\param{const wxString\& }{text}} | |
242 | ||
243 | Select the item in the auto-completion list that starts with a string. | |
244 | ||
245 | ||
246 | \membersection{wxStyledTextCtrl::AutoCompSetAutoHide}\label{wxstyledtextctrlautocompsetautohide} | |
247 | ||
248 | \func{void}{AutoCompSetAutoHide}{\param{bool }{autoHide}} | |
249 | ||
250 | Set whether or not autocompletion is hidden automatically when nothing matches. | |
251 | ||
252 | ||
253 | \membersection{wxStyledTextCtrl::AutoCompSetCancelAtStart}\label{wxstyledtextctrlautocompsetcancelatstart} | |
254 | ||
255 | \func{void}{AutoCompSetCancelAtStart}{\param{bool }{cancel}} | |
256 | ||
257 | Should the auto-completion list be cancelled if the user backspaces to a | |
258 | position before where the box was created. | |
259 | ||
260 | ||
261 | \membersection{wxStyledTextCtrl::AutoCompSetChooseSingle}\label{wxstyledtextctrlautocompsetchoosesingle} | |
262 | ||
263 | \func{void}{AutoCompSetChooseSingle}{\param{bool }{chooseSingle}} | |
264 | ||
265 | Should a single item auto-completion list automatically choose the item. | |
266 | ||
267 | ||
268 | \membersection{wxStyledTextCtrl::AutoCompSetDropRestOfWord}\label{wxstyledtextctrlautocompsetdroprestofword} | |
269 | ||
270 | \func{void}{AutoCompSetDropRestOfWord}{\param{bool }{dropRestOfWord}} | |
271 | ||
272 | Set whether or not autocompletion deletes any word characters | |
273 | after the inserted text upon completion. | |
274 | ||
275 | ||
276 | \membersection{wxStyledTextCtrl::AutoCompSetFillUps}\label{wxstyledtextctrlautocompsetfillups} | |
277 | ||
278 | \func{void}{AutoCompSetFillUps}{\param{const wxString\& }{characterSet}} | |
279 | ||
280 | Define a set of characters that when typed will cause the autocompletion to | |
281 | choose the selected item. | |
282 | ||
283 | ||
284 | \membersection{wxStyledTextCtrl::AutoCompSetIgnoreCase}\label{wxstyledtextctrlautocompsetignorecase} | |
285 | ||
286 | \func{void}{AutoCompSetIgnoreCase}{\param{bool }{ignoreCase}} | |
287 | ||
288 | Set whether case is significant when performing auto-completion searches. | |
289 | ||
290 | ||
291 | \membersection{wxStyledTextCtrl::AutoCompSetMaxHeight}\label{wxstyledtextctrlautocompsetmaxheight} | |
292 | ||
293 | \func{void}{AutoCompSetMaxHeight}{\param{int }{rowCount}} | |
294 | ||
295 | Set the maximum height, in rows, of auto-completion and user lists. | |
296 | The default is 5 rows. | |
297 | ||
298 | ||
299 | \membersection{wxStyledTextCtrl::AutoCompSetMaxWidth}\label{wxstyledtextctrlautocompsetmaxwidth} | |
300 | ||
301 | \func{void}{AutoCompSetMaxWidth}{\param{int }{characterCount}} | |
302 | ||
303 | Set the maximum width, in characters, of auto-completion and user lists. | |
304 | Set to 0 to autosize to fit longest item, which is the default. | |
305 | ||
306 | ||
307 | \membersection{wxStyledTextCtrl::AutoCompSetSeparator}\label{wxstyledtextctrlautocompsetseparator} | |
308 | ||
309 | \func{void}{AutoCompSetSeparator}{\param{int }{separatorCharacter}} | |
310 | ||
311 | Change the separator character in the string setting up an auto-completion list. | |
312 | Default is space but can be changed if items contain space. | |
313 | ||
314 | ||
315 | \membersection{wxStyledTextCtrl::AutoCompSetTypeSeparator}\label{wxstyledtextctrlautocompsettypeseparator} | |
316 | ||
317 | \func{void}{AutoCompSetTypeSeparator}{\param{int }{separatorCharacter}} | |
318 | ||
319 | Change the type-separator character in the string setting up an auto-completion list. | |
320 | Default is '?' but can be changed if items contain '?'. | |
321 | ||
322 | ||
323 | \membersection{wxStyledTextCtrl::AutoCompShow}\label{wxstyledtextctrlautocompshow} | |
324 | ||
325 | \func{void}{AutoCompShow}{\param{int }{lenEntered}, \param{const wxString\& }{itemList}} | |
326 | ||
327 | Display a auto-completion list. | |
328 | The lenEntered parameter indicates how many characters before | |
329 | the caret should be used to provide context. | |
330 | ||
331 | ||
332 | \membersection{wxStyledTextCtrl::AutoCompStops}\label{wxstyledtextctrlautocompstops} | |
333 | ||
334 | \func{void}{AutoCompStops}{\param{const wxString\& }{characterSet}} | |
335 | ||
336 | Define a set of character that when typed cancel the auto-completion list. | |
337 | ||
338 | ||
339 | \membersection{wxStyledTextCtrl::BackTab}\label{wxstyledtextctrlbacktab} | |
340 | ||
341 | \func{void}{BackTab}{\void} | |
342 | ||
343 | Dedent the selected lines. | |
344 | ||
345 | ||
346 | \membersection{wxStyledTextCtrl::BeginUndoAction}\label{wxstyledtextctrlbeginundoaction} | |
347 | ||
348 | \func{void}{BeginUndoAction}{\void} | |
349 | ||
350 | Start a sequence of actions that is undone and redone as a unit. | |
351 | May be nested. | |
352 | ||
353 | ||
354 | \membersection{wxStyledTextCtrl::BraceBadLight}\label{wxstyledtextctrlbracebadlight} | |
355 | ||
356 | \func{void}{BraceBadLight}{\param{int }{pos}} | |
357 | ||
358 | Highlight the character at a position indicating there is no matching brace. | |
359 | ||
360 | ||
361 | \membersection{wxStyledTextCtrl::BraceHighlight}\label{wxstyledtextctrlbracehighlight} | |
362 | ||
363 | \func{void}{BraceHighlight}{\param{int }{pos1}, \param{int }{pos2}} | |
364 | ||
365 | Highlight the characters at two positions. | |
366 | ||
367 | ||
368 | \membersection{wxStyledTextCtrl::BraceMatch}\label{wxstyledtextctrlbracematch} | |
369 | ||
370 | \func{int}{BraceMatch}{\param{int }{pos}} | |
371 | ||
372 | Find the position of a matching brace or INVALID\_POSITION if no match. | |
373 | ||
374 | ||
375 | \membersection{wxStyledTextCtrl::CallTipActive}\label{wxstyledtextctrlcalltipactive} | |
376 | ||
377 | \func{bool}{CallTipActive}{\void} | |
378 | ||
379 | Is there an active call tip? | |
380 | ||
381 | ||
382 | \membersection{wxStyledTextCtrl::CallTipCancel}\label{wxstyledtextctrlcalltipcancel} | |
383 | ||
384 | \func{void}{CallTipCancel}{\void} | |
385 | ||
386 | Remove the call tip from the screen. | |
387 | ||
388 | ||
389 | \membersection{wxStyledTextCtrl::CallTipPosAtStart}\label{wxstyledtextctrlcalltipposatstart} | |
390 | ||
391 | \func{int}{CallTipPosAtStart}{\void} | |
392 | ||
393 | Retrieve the position where the caret was before displaying the call tip. | |
394 | ||
395 | ||
396 | \membersection{wxStyledTextCtrl::CallTipSetBackground}\label{wxstyledtextctrlcalltipsetbackground} | |
397 | ||
398 | \func{void}{CallTipSetBackground}{\param{const wxColour\& }{back}} | |
399 | ||
400 | Set the background colour for the call tip. | |
401 | ||
402 | ||
403 | \membersection{wxStyledTextCtrl::CallTipSetForeground}\label{wxstyledtextctrlcalltipsetforeground} | |
404 | ||
405 | \func{void}{CallTipSetForeground}{\param{const wxColour\& }{fore}} | |
406 | ||
407 | Set the foreground colour for the call tip. | |
408 | ||
409 | ||
410 | \membersection{wxStyledTextCtrl::CallTipSetForegroundHighlight}\label{wxstyledtextctrlcalltipsetforegroundhighlight} | |
411 | ||
412 | \func{void}{CallTipSetForegroundHighlight}{\param{const wxColour\& }{fore}} | |
413 | ||
414 | Set the foreground colour for the highlighted part of the call tip. | |
415 | ||
416 | ||
417 | \membersection{wxStyledTextCtrl::CallTipSetHighlight}\label{wxstyledtextctrlcalltipsethighlight} | |
418 | ||
419 | \func{void}{CallTipSetHighlight}{\param{int }{start}, \param{int }{end}} | |
420 | ||
421 | Highlight a segment of the definition. | |
422 | ||
423 | ||
424 | \membersection{wxStyledTextCtrl::CallTipShow}\label{wxstyledtextctrlcalltipshow} | |
425 | ||
426 | \func{void}{CallTipShow}{\param{int }{pos}, \param{const wxString\& }{definition}} | |
427 | ||
428 | Show a call tip containing a definition near position pos. | |
429 | ||
430 | ||
431 | \membersection{wxStyledTextCtrl::CallTipUseStyle}\label{wxstyledtextctrlcalltipusestyle} | |
432 | ||
433 | \func{void}{CallTipUseStyle}{\param{int }{tabSize}} | |
434 | ||
435 | Enable use of STYLE\_CALLTIP and set call tip tab size in pixels. | |
436 | ||
437 | ||
438 | \membersection{wxStyledTextCtrl::CanPaste}\label{wxstyledtextctrlcanpaste} | |
439 | ||
440 | \func{bool}{CanPaste}{\void} | |
441 | ||
442 | Will a paste succeed? | |
443 | ||
444 | ||
445 | \membersection{wxStyledTextCtrl::CanRedo}\label{wxstyledtextctrlcanredo} | |
446 | ||
447 | \func{bool}{CanRedo}{\void} | |
448 | ||
449 | Are there any redoable actions in the undo history? | |
450 | ||
451 | ||
452 | \membersection{wxStyledTextCtrl::CanUndo}\label{wxstyledtextctrlcanundo} | |
453 | ||
454 | \func{bool}{CanUndo}{\void} | |
455 | ||
456 | Are there any undoable actions in the undo history? | |
457 | ||
458 | ||
459 | \membersection{wxStyledTextCtrl::Cancel}\label{wxstyledtextctrlcancel} | |
460 | ||
461 | \func{void}{Cancel}{\void} | |
462 | ||
463 | Cancel any modes such as call tip or auto-completion list display. | |
464 | ||
465 | ||
466 | \membersection{wxStyledTextCtrl::CharLeft}\label{wxstyledtextctrlcharleft} | |
467 | ||
468 | \func{void}{CharLeft}{\void} | |
469 | ||
470 | Move caret left one character. | |
471 | ||
472 | ||
473 | \membersection{wxStyledTextCtrl::CharLeftExtend}\label{wxstyledtextctrlcharleftextend} | |
474 | ||
475 | \func{void}{CharLeftExtend}{\void} | |
476 | ||
477 | Move caret left one character extending selection to new caret position. | |
478 | ||
479 | ||
480 | \membersection{wxStyledTextCtrl::CharLeftRectExtend}\label{wxstyledtextctrlcharleftrectextend} | |
481 | ||
482 | \func{void}{CharLeftRectExtend}{\void} | |
483 | ||
484 | Move caret left one character, extending rectangular selection to new caret position. | |
485 | ||
486 | ||
487 | \membersection{wxStyledTextCtrl::CharRight}\label{wxstyledtextctrlcharright} | |
488 | ||
489 | \func{void}{CharRight}{\void} | |
490 | ||
491 | Move caret right one character. | |
492 | ||
493 | ||
494 | \membersection{wxStyledTextCtrl::CharRightExtend}\label{wxstyledtextctrlcharrightextend} | |
495 | ||
496 | \func{void}{CharRightExtend}{\void} | |
497 | ||
498 | Move caret right one character extending selection to new caret position. | |
499 | ||
500 | ||
501 | \membersection{wxStyledTextCtrl::CharRightRectExtend}\label{wxstyledtextctrlcharrightrectextend} | |
502 | ||
503 | \func{void}{CharRightRectExtend}{\void} | |
504 | ||
505 | Move caret right one character, extending rectangular selection to new caret position. | |
506 | ||
507 | ||
508 | \membersection{wxStyledTextCtrl::ChooseCaretX}\label{wxstyledtextctrlchoosecaretx} | |
509 | ||
510 | \func{void}{ChooseCaretX}{\void} | |
511 | ||
512 | Set the last x chosen value to be the caret x position. | |
513 | ||
514 | ||
515 | \membersection{wxStyledTextCtrl::Clear}\label{wxstyledtextctrlclear} | |
516 | ||
517 | \func{void}{Clear}{\void} | |
518 | ||
519 | Clear the selection. | |
520 | ||
521 | ||
522 | \membersection{wxStyledTextCtrl::ClearAll}\label{wxstyledtextctrlclearall} | |
523 | ||
524 | \func{void}{ClearAll}{\void} | |
525 | ||
526 | Delete all text in the document. | |
527 | ||
528 | ||
529 | \membersection{wxStyledTextCtrl::ClearDocumentStyle}\label{wxstyledtextctrlcleardocumentstyle} | |
530 | ||
531 | \func{void}{ClearDocumentStyle}{\void} | |
532 | ||
533 | Set all style bytes to 0, remove all folding information. | |
534 | ||
535 | ||
536 | \membersection{wxStyledTextCtrl::ClearRegisteredImages}\label{wxstyledtextctrlclearregisteredimages} | |
537 | ||
538 | \func{void}{ClearRegisteredImages}{\void} | |
539 | ||
540 | Clear all the registered images. | |
541 | ||
542 | ||
543 | \membersection{wxStyledTextCtrl::CmdKeyAssign}\label{wxstyledtextctrlcmdkeyassign} | |
544 | ||
545 | \func{void}{CmdKeyAssign}{\param{int }{key}, \param{int }{modifiers}, \param{int }{cmd}} | |
546 | ||
547 | When key+modifier combination km is pressed perform msg. | |
548 | ||
549 | ||
550 | \membersection{wxStyledTextCtrl::CmdKeyClear}\label{wxstyledtextctrlcmdkeyclear} | |
551 | ||
552 | \func{void}{CmdKeyClear}{\param{int }{key}, \param{int }{modifiers}} | |
553 | ||
554 | When key+modifier combination km is pressed do nothing. | |
555 | ||
556 | ||
557 | \membersection{wxStyledTextCtrl::CmdKeyClearAll}\label{wxstyledtextctrlcmdkeyclearall} | |
558 | ||
559 | \func{void}{CmdKeyClearAll}{\void} | |
560 | ||
561 | Drop all key mappings. | |
562 | ||
563 | ||
564 | \membersection{wxStyledTextCtrl::CmdKeyExecute}\label{wxstyledtextctrlcmdkeyexecute} | |
565 | ||
566 | \func{void}{CmdKeyExecute}{\param{int }{cmd}} | |
567 | ||
568 | Perform one of the operations defined by the wxSTC\_CMD\_* constants. | |
569 | ||
570 | ||
571 | \membersection{wxStyledTextCtrl::Colourise}\label{wxstyledtextctrlcolourise} | |
572 | ||
573 | \func{void}{Colourise}{\param{int }{start}, \param{int }{end}} | |
574 | ||
575 | Colourise a segment of the document using the current lexing language. | |
576 | ||
577 | ||
578 | \membersection{wxStyledTextCtrl::ConvertEOLs}\label{wxstyledtextctrlconverteols} | |
579 | ||
580 | \func{void}{ConvertEOLs}{\param{int }{eolMode}} | |
581 | ||
582 | Convert all line endings in the document to one mode. | |
583 | ||
584 | ||
585 | \membersection{wxStyledTextCtrl::Copy}\label{wxstyledtextctrlcopy} | |
586 | ||
587 | \func{void}{Copy}{\void} | |
588 | ||
589 | Copy the selection to the clipboard. | |
590 | ||
591 | ||
592 | \membersection{wxStyledTextCtrl::CopyRange}\label{wxstyledtextctrlcopyrange} | |
593 | ||
594 | \func{void}{CopyRange}{\param{int }{start}, \param{int }{end}} | |
595 | ||
596 | Copy a range of text to the clipboard. Positions are clipped into the document. | |
597 | ||
598 | ||
599 | \membersection{wxStyledTextCtrl::CopyText}\label{wxstyledtextctrlcopytext} | |
600 | ||
601 | \func{void}{CopyText}{\param{int }{length}, \param{const wxString\& }{text}} | |
602 | ||
603 | Copy argument text to the clipboard. | |
604 | ||
605 | ||
606 | \membersection{wxStyledTextCtrl::Create}\label{wxstyledtextctrlcreate} | |
607 | ||
608 | \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = 0}, \param{const wxString\& }{name = wxSTCNameStr}} | |
609 | ||
610 | ||
611 | \membersection{wxStyledTextCtrl::CreateDocument}\label{wxstyledtextctrlcreatedocument} | |
612 | ||
613 | \func{void*}{CreateDocument}{\void} | |
614 | ||
615 | Create a new document object. | |
616 | Starts with reference count of 1 and not selected into editor. | |
617 | ||
618 | ||
619 | \membersection{wxStyledTextCtrl::Cut}\label{wxstyledtextctrlcut} | |
620 | ||
621 | \func{void}{Cut}{\void} | |
622 | ||
623 | Cut the selection to the clipboard. | |
624 | ||
625 | ||
626 | \membersection{wxStyledTextCtrl::DelLineLeft}\label{wxstyledtextctrldellineleft} | |
627 | ||
628 | \func{void}{DelLineLeft}{\void} | |
629 | ||
630 | Delete back from the current position to the start of the line. | |
631 | ||
632 | ||
633 | \membersection{wxStyledTextCtrl::DelLineRight}\label{wxstyledtextctrldellineright} | |
634 | ||
635 | \func{void}{DelLineRight}{\void} | |
636 | ||
637 | Delete forwards from the current position to the end of the line. | |
638 | ||
639 | ||
640 | \membersection{wxStyledTextCtrl::DelWordLeft}\label{wxstyledtextctrldelwordleft} | |
641 | ||
642 | \func{void}{DelWordLeft}{\void} | |
643 | ||
644 | Delete the word to the left of the caret. | |
645 | ||
646 | ||
647 | \membersection{wxStyledTextCtrl::DelWordRight}\label{wxstyledtextctrldelwordright} | |
648 | ||
649 | \func{void}{DelWordRight}{\void} | |
650 | ||
651 | Delete the word to the right of the caret. | |
652 | ||
653 | ||
654 | \membersection{wxStyledTextCtrl::DeleteBack}\label{wxstyledtextctrldeleteback} | |
655 | ||
656 | \func{void}{DeleteBack}{\void} | |
657 | ||
658 | Delete the selection or if no selection, the character before the caret. | |
659 | ||
660 | ||
661 | \membersection{wxStyledTextCtrl::DeleteBackNotLine}\label{wxstyledtextctrldeletebacknotline} | |
662 | ||
663 | \func{void}{DeleteBackNotLine}{\void} | |
664 | ||
665 | Delete the selection or if no selection, the character before the caret. | |
666 | Will not delete the character before at the start of a line. | |
667 | ||
668 | ||
669 | \membersection{wxStyledTextCtrl::DoDragOver}\label{wxstyledtextctrldodragover} | |
670 | ||
671 | \func{wxDragResult}{DoDragOver}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{wxDragResult }{def}} | |
672 | ||
673 | Allow for simulating a DnD DragOver | |
674 | ||
675 | ||
676 | \membersection{wxStyledTextCtrl::DoDropText}\label{wxstyledtextctrldodroptext} | |
677 | ||
678 | \func{bool}{DoDropText}{\param{long }{x}, \param{long }{y}, \param{const wxString\& }{data}} | |
679 | ||
680 | Allow for simulating a DnD DropText | |
681 | ||
682 | ||
683 | \membersection{wxStyledTextCtrl::DocLineFromVisible}\label{wxstyledtextctrldoclinefromvisible} | |
684 | ||
685 | \func{int}{DocLineFromVisible}{\param{int }{lineDisplay}} | |
686 | ||
687 | Find the document line of a display line taking hidden lines into account. | |
688 | ||
689 | ||
690 | \membersection{wxStyledTextCtrl::DocumentEnd}\label{wxstyledtextctrldocumentend} | |
691 | ||
692 | \func{void}{DocumentEnd}{\void} | |
693 | ||
694 | Move caret to last position in document. | |
695 | ||
696 | ||
697 | \membersection{wxStyledTextCtrl::DocumentEndExtend}\label{wxstyledtextctrldocumentendextend} | |
698 | ||
699 | \func{void}{DocumentEndExtend}{\void} | |
700 | ||
701 | Move caret to last position in document extending selection to new caret position. | |
702 | ||
703 | ||
704 | \membersection{wxStyledTextCtrl::DocumentStart}\label{wxstyledtextctrldocumentstart} | |
705 | ||
706 | \func{void}{DocumentStart}{\void} | |
707 | ||
708 | Move caret to first position in document. | |
709 | ||
710 | ||
711 | \membersection{wxStyledTextCtrl::DocumentStartExtend}\label{wxstyledtextctrldocumentstartextend} | |
712 | ||
713 | \func{void}{DocumentStartExtend}{\void} | |
714 | ||
715 | Move caret to first position in document extending selection to new caret position. | |
716 | ||
717 | ||
718 | \membersection{wxStyledTextCtrl::EditToggleOvertype}\label{wxstyledtextctrledittoggleovertype} | |
719 | ||
720 | \func{void}{EditToggleOvertype}{\void} | |
721 | ||
722 | Switch from insert to overtype mode or the reverse. | |
723 | ||
724 | ||
725 | \membersection{wxStyledTextCtrl::EmptyUndoBuffer}\label{wxstyledtextctrlemptyundobuffer} | |
726 | ||
727 | \func{void}{EmptyUndoBuffer}{\void} | |
728 | ||
729 | Delete the undo history. | |
730 | ||
731 | ||
732 | \membersection{wxStyledTextCtrl::EndUndoAction}\label{wxstyledtextctrlendundoaction} | |
733 | ||
734 | \func{void}{EndUndoAction}{\void} | |
735 | ||
736 | End a sequence of actions that is undone and redone as a unit. | |
737 | ||
738 | ||
739 | \membersection{wxStyledTextCtrl::EnsureCaretVisible}\label{wxstyledtextctrlensurecaretvisible} | |
740 | ||
741 | \func{void}{EnsureCaretVisible}{\void} | |
742 | ||
743 | Ensure the caret is visible. | |
744 | ||
745 | ||
746 | \membersection{wxStyledTextCtrl::EnsureVisible}\label{wxstyledtextctrlensurevisible} | |
747 | ||
748 | \func{void}{EnsureVisible}{\param{int }{line}} | |
749 | ||
750 | Ensure a particular line is visible by expanding any header line hiding it. | |
751 | ||
752 | ||
753 | \membersection{wxStyledTextCtrl::EnsureVisibleEnforcePolicy}\label{wxstyledtextctrlensurevisibleenforcepolicy} | |
754 | ||
755 | \func{void}{EnsureVisibleEnforcePolicy}{\param{int }{line}} | |
756 | ||
757 | Ensure a particular line is visible by expanding any header line hiding it. | |
758 | Use the currently set visibility policy to determine which range to display. | |
759 | ||
760 | ||
761 | \membersection{wxStyledTextCtrl::FindColumn}\label{wxstyledtextctrlfindcolumn} | |
762 | ||
763 | \func{int}{FindColumn}{\param{int }{line}, \param{int }{column}} | |
764 | ||
765 | Find the position of a column on a line taking into account tabs and | |
766 | multi-byte characters. If beyond end of line, return line end position. | |
767 | ||
768 | ||
769 | \membersection{wxStyledTextCtrl::FindText}\label{wxstyledtextctrlfindtext} | |
770 | ||
771 | \func{int}{FindText}{\param{int }{minPos}, \param{int }{maxPos}, \param{const wxString\& }{text}, \param{int }{flags = 0}} | |
772 | ||
773 | Find some text in the document. | |
774 | ||
775 | ||
776 | \membersection{wxStyledTextCtrl::FormFeed}\label{wxstyledtextctrlformfeed} | |
777 | ||
778 | \func{void}{FormFeed}{\void} | |
779 | ||
780 | Insert a Form Feed character. | |
781 | ||
782 | ||
783 | \membersection{wxStyledTextCtrl::FormatRange}\label{wxstyledtextctrlformatrange} | |
784 | ||
785 | \func{int}{FormatRange}{\param{bool }{doDraw}, \param{int }{startPos}, \param{int }{endPos}, \param{wxDC* }{draw}, \param{wxDC* }{target}, \param{wxRect }{renderRect}, \param{wxRect }{pageRect}} | |
786 | ||
787 | On Windows, will draw the document into a display context such as a printer. | |
788 | ||
789 | ||
790 | \membersection{wxStyledTextCtrl::GetAnchor}\label{wxstyledtextctrlgetanchor} | |
791 | ||
792 | \func{int}{GetAnchor}{\void} | |
793 | ||
794 | Returns the position of the opposite end of the selection to the caret. | |
795 | ||
796 | ||
797 | \membersection{wxStyledTextCtrl::GetBackSpaceUnIndents}\label{wxstyledtextctrlgetbackspaceunindents} | |
798 | ||
799 | \func{bool}{GetBackSpaceUnIndents}{\void} | |
800 | ||
801 | Does a backspace pressed when caret is within indentation unindent? | |
802 | ||
803 | ||
804 | \membersection{wxStyledTextCtrl::GetBufferedDraw}\label{wxstyledtextctrlgetbuffereddraw} | |
805 | ||
806 | \func{bool}{GetBufferedDraw}{\void} | |
807 | ||
808 | Is drawing done first into a buffer or direct to the screen? | |
809 | ||
810 | ||
811 | \membersection{wxStyledTextCtrl::GetCaretForeground}\label{wxstyledtextctrlgetcaretforeground} | |
812 | ||
813 | \func{wxColour}{GetCaretForeground}{\void} | |
814 | ||
815 | Get the foreground colour of the caret. | |
816 | ||
817 | ||
818 | \membersection{wxStyledTextCtrl::GetCaretLineBackAlpha}\label{wxstyledtextctrlgetcaretlinebackalpha} | |
819 | ||
820 | \func{int}{GetCaretLineBackAlpha}{\void} | |
821 | ||
822 | Get the background alpha of the caret line. | |
823 | ||
824 | ||
825 | \membersection{wxStyledTextCtrl::GetCaretLineBackground}\label{wxstyledtextctrlgetcaretlinebackground} | |
826 | ||
827 | \func{wxColour}{GetCaretLineBackground}{\void} | |
828 | ||
829 | Get the colour of the background of the line containing the caret. | |
830 | ||
831 | ||
832 | \membersection{wxStyledTextCtrl::GetCaretLineVisible}\label{wxstyledtextctrlgetcaretlinevisible} | |
833 | ||
834 | \func{bool}{GetCaretLineVisible}{\void} | |
835 | ||
836 | Is the background of the line containing the caret in a different colour? | |
837 | ||
838 | ||
839 | \membersection{wxStyledTextCtrl::GetCaretPeriod}\label{wxstyledtextctrlgetcaretperiod} | |
840 | ||
841 | \func{int}{GetCaretPeriod}{\void} | |
842 | ||
843 | Get the time in milliseconds that the caret is on and off. | |
844 | ||
845 | ||
846 | \membersection{wxStyledTextCtrl::GetCaretSticky}\label{wxstyledtextctrlgetcaretsticky} | |
847 | ||
848 | \func{bool}{GetCaretSticky}{\void} | |
849 | ||
850 | Can the caret preferred x position only be changed by explicit movement commands? | |
851 | ||
852 | ||
853 | \membersection{wxStyledTextCtrl::GetCaretWidth}\label{wxstyledtextctrlgetcaretwidth} | |
854 | ||
855 | \func{int}{GetCaretWidth}{\void} | |
856 | ||
857 | Returns the width of the insert mode caret. | |
858 | ||
859 | ||
860 | \membersection{wxStyledTextCtrl::GetCharAt}\label{wxstyledtextctrlgetcharat} | |
861 | ||
862 | \func{int}{GetCharAt}{\param{int }{pos}} | |
863 | ||
864 | Returns the character byte at the position. | |
865 | ||
866 | ||
867 | \membersection{wxStyledTextCtrl::GetCodePage}\label{wxstyledtextctrlgetcodepage} | |
868 | ||
869 | \func{int}{GetCodePage}{\void} | |
870 | ||
871 | Get the code page used to interpret the bytes of the document as characters. | |
872 | ||
873 | ||
874 | \membersection{wxStyledTextCtrl::GetColumn}\label{wxstyledtextctrlgetcolumn} | |
875 | ||
876 | \func{int}{GetColumn}{\param{int }{pos}} | |
877 | ||
878 | Retrieve the column number of a position, taking tab width into account. | |
879 | ||
880 | ||
881 | \membersection{wxStyledTextCtrl::GetControlCharSymbol}\label{wxstyledtextctrlgetcontrolcharsymbol} | |
882 | ||
883 | \func{int}{GetControlCharSymbol}{\void} | |
884 | ||
885 | Get the way control characters are displayed. | |
886 | ||
887 | ||
888 | \membersection{wxStyledTextCtrl::GetCurLine}\label{wxstyledtextctrlgetcurline} | |
889 | ||
890 | \func{wxString}{GetCurLine}{\param{int* }{OUTPUT}} | |
891 | ||
892 | ||
893 | \membersection{wxStyledTextCtrl::GetCurLineRaw}\label{wxstyledtextctrlgetcurlineraw} | |
894 | ||
895 | \func{wxCharBuffer}{GetCurLineRaw}{\param{int* }{OUTPUT}} | |
896 | ||
897 | ||
898 | \membersection{wxStyledTextCtrl::GetCurrentLine}\label{wxstyledtextctrlgetcurrentline} | |
899 | ||
900 | \func{int}{GetCurrentLine}{\void} | |
901 | ||
902 | END of generated section | |
903 | ||
904 | Others... | |
905 | Returns the line number of the line with the caret. | |
906 | ||
907 | ||
908 | \membersection{wxStyledTextCtrl::GetCurrentPos}\label{wxstyledtextctrlgetcurrentpos} | |
909 | ||
910 | \func{int}{GetCurrentPos}{\void} | |
911 | ||
912 | Returns the position of the caret. | |
913 | ||
914 | ||
915 | \membersection{wxStyledTextCtrl::GetDocPointer}\label{wxstyledtextctrlgetdocpointer} | |
916 | ||
917 | \func{void*}{GetDocPointer}{\void} | |
918 | ||
919 | Retrieve a pointer to the document object. | |
920 | ||
921 | ||
922 | \membersection{wxStyledTextCtrl::GetEOLMode}\label{wxstyledtextctrlgeteolmode} | |
923 | ||
924 | \func{int}{GetEOLMode}{\void} | |
925 | ||
926 | Retrieve the current end of line mode - one of CRLF, CR, or LF. | |
927 | ||
928 | ||
929 | \membersection{wxStyledTextCtrl::GetEdgeColour}\label{wxstyledtextctrlgetedgecolour} | |
930 | ||
931 | \func{wxColour}{GetEdgeColour}{\void} | |
932 | ||
933 | Retrieve the colour used in edge indication. | |
934 | ||
935 | ||
936 | \membersection{wxStyledTextCtrl::GetEdgeColumn}\label{wxstyledtextctrlgetedgecolumn} | |
937 | ||
938 | \func{int}{GetEdgeColumn}{\void} | |
939 | ||
940 | Retrieve the column number which text should be kept within. | |
941 | ||
942 | ||
943 | \membersection{wxStyledTextCtrl::GetEdgeMode}\label{wxstyledtextctrlgetedgemode} | |
944 | ||
945 | \func{int}{GetEdgeMode}{\void} | |
946 | ||
947 | Retrieve the edge highlight mode. | |
948 | ||
949 | ||
950 | \membersection{wxStyledTextCtrl::GetEndAtLastLine}\label{wxstyledtextctrlgetendatlastline} | |
951 | ||
952 | \func{bool}{GetEndAtLastLine}{\void} | |
953 | ||
954 | Retrieve whether the maximum scroll position has the last | |
955 | line at the bottom of the view. | |
956 | ||
957 | ||
958 | \membersection{wxStyledTextCtrl::GetEndStyled}\label{wxstyledtextctrlgetendstyled} | |
959 | ||
960 | \func{int}{GetEndStyled}{\void} | |
961 | ||
962 | Retrieve the position of the last correctly styled character. | |
963 | ||
964 | ||
965 | \membersection{wxStyledTextCtrl::GetFirstVisibleLine}\label{wxstyledtextctrlgetfirstvisibleline} | |
966 | ||
967 | \func{int}{GetFirstVisibleLine}{\void} | |
968 | ||
969 | Retrieve the display line at the top of the display. | |
970 | ||
971 | ||
972 | \membersection{wxStyledTextCtrl::GetFoldExpanded}\label{wxstyledtextctrlgetfoldexpanded} | |
973 | ||
974 | \func{bool}{GetFoldExpanded}{\param{int }{line}} | |
975 | ||
976 | Is a header line expanded? | |
977 | ||
978 | ||
979 | \membersection{wxStyledTextCtrl::GetFoldLevel}\label{wxstyledtextctrlgetfoldlevel} | |
980 | ||
981 | \func{int}{GetFoldLevel}{\param{int }{line}} | |
982 | ||
983 | Retrieve the fold level of a line. | |
984 | ||
985 | ||
986 | \membersection{wxStyledTextCtrl::GetFoldParent}\label{wxstyledtextctrlgetfoldparent} | |
987 | ||
988 | \func{int}{GetFoldParent}{\param{int }{line}} | |
989 | ||
990 | Find the parent line of a child line. | |
991 | ||
992 | ||
993 | \membersection{wxStyledTextCtrl::GetHighlightGuide}\label{wxstyledtextctrlgethighlightguide} | |
994 | ||
995 | \func{int}{GetHighlightGuide}{\void} | |
996 | ||
997 | Get the highlighted indentation guide column. | |
998 | ||
999 | ||
1000 | \membersection{wxStyledTextCtrl::GetIndent}\label{wxstyledtextctrlgetindent} | |
1001 | ||
1002 | \func{int}{GetIndent}{\void} | |
1003 | ||
1004 | Retrieve indentation size. | |
1005 | ||
1006 | ||
1007 | \membersection{wxStyledTextCtrl::GetIndentationGuides}\label{wxstyledtextctrlgetindentationguides} | |
1008 | ||
1009 | \func{bool}{GetIndentationGuides}{\void} | |
1010 | ||
1011 | Are the indentation guides visible? | |
1012 | ||
1013 | ||
1014 | \membersection{wxStyledTextCtrl::GetLastChild}\label{wxstyledtextctrlgetlastchild} | |
1015 | ||
1016 | \func{int}{GetLastChild}{\param{int }{line}, \param{int }{level}} | |
1017 | ||
1018 | Find the last child line of a header line. | |
1019 | ||
1020 | ||
1021 | \membersection{wxStyledTextCtrl::GetLastKeydownProcessed}\label{wxstyledtextctrlgetlastkeydownprocessed} | |
1022 | ||
1023 | \func{bool}{GetLastKeydownProcessed}{\void} | |
1024 | ||
1025 | Can be used to prevent the EVT\_CHAR handler from adding the char | |
1026 | ||
1027 | ||
1028 | \membersection{wxStyledTextCtrl::GetLayoutCache}\label{wxstyledtextctrlgetlayoutcache} | |
1029 | ||
1030 | \func{int}{GetLayoutCache}{\void} | |
1031 | ||
1032 | Retrieve the degree of caching of layout information. | |
1033 | ||
1034 | ||
1035 | \membersection{wxStyledTextCtrl::GetLength}\label{wxstyledtextctrlgetlength} | |
1036 | ||
1037 | \func{int}{GetLength}{\void} | |
1038 | ||
1039 | Returns the number of characters in the document. | |
1040 | ||
1041 | ||
1042 | \membersection{wxStyledTextCtrl::GetLexer}\label{wxstyledtextctrlgetlexer} | |
1043 | ||
1044 | \func{int}{GetLexer}{\void} | |
1045 | ||
1046 | Retrieve the lexing language of the document. | |
1047 | ||
1048 | ||
1049 | \membersection{wxStyledTextCtrl::GetLine}\label{wxstyledtextctrlgetline} | |
1050 | ||
1051 | \func{wxString}{GetLine}{\param{int }{line}} | |
1052 | ||
1053 | Retrieve the contents of a line. | |
1054 | ||
1055 | ||
1056 | \membersection{wxStyledTextCtrl::GetLineCount}\label{wxstyledtextctrlgetlinecount} | |
1057 | ||
1058 | \func{int}{GetLineCount}{\void} | |
1059 | ||
1060 | Returns the number of lines in the document. There is always at least one. | |
1061 | ||
1062 | ||
1063 | \membersection{wxStyledTextCtrl::GetLineEndPosition}\label{wxstyledtextctrlgetlineendposition} | |
1064 | ||
1065 | \func{int}{GetLineEndPosition}{\param{int }{line}} | |
1066 | ||
1067 | Get the position after the last visible characters on a line. | |
1068 | ||
1069 | ||
1070 | \membersection{wxStyledTextCtrl::GetLineIndentPosition}\label{wxstyledtextctrlgetlineindentposition} | |
1071 | ||
1072 | \func{int}{GetLineIndentPosition}{\param{int }{line}} | |
1073 | ||
1074 | Retrieve the position before the first non indentation character on a line. | |
1075 | ||
1076 | ||
1077 | \membersection{wxStyledTextCtrl::GetLineIndentation}\label{wxstyledtextctrlgetlineindentation} | |
1078 | ||
1079 | \func{int}{GetLineIndentation}{\param{int }{line}} | |
1080 | ||
1081 | Retrieve the number of columns that a line is indented. | |
1082 | ||
1083 | ||
1084 | \membersection{wxStyledTextCtrl::GetLineRaw}\label{wxstyledtextctrlgetlineraw} | |
1085 | ||
1086 | \func{wxCharBuffer}{GetLineRaw}{\param{int }{line}} | |
1087 | ||
1088 | Retrieve the contents of a line. | |
1089 | ||
1090 | ||
1091 | \membersection{wxStyledTextCtrl::GetLineSelEndPosition}\label{wxstyledtextctrlgetlineselendposition} | |
1092 | ||
1093 | \func{int}{GetLineSelEndPosition}{\param{int }{line}} | |
1094 | ||
1095 | Retrieve the position of the end of the selection at the given line (INVALID\_POSITION if no selection on this line). | |
1096 | ||
1097 | ||
1098 | \membersection{wxStyledTextCtrl::GetLineSelStartPosition}\label{wxstyledtextctrlgetlineselstartposition} | |
1099 | ||
1100 | \func{int}{GetLineSelStartPosition}{\param{int }{line}} | |
1101 | ||
1102 | Retrieve the position of the start of the selection at the given line (INVALID\_POSITION if no selection on this line). | |
1103 | ||
1104 | ||
1105 | \membersection{wxStyledTextCtrl::GetLineState}\label{wxstyledtextctrlgetlinestate} | |
1106 | ||
1107 | \func{int}{GetLineState}{\param{int }{line}} | |
1108 | ||
1109 | Retrieve the extra styling information for a line. | |
1110 | ||
1111 | ||
1112 | \membersection{wxStyledTextCtrl::GetLineVisible}\label{wxstyledtextctrlgetlinevisible} | |
1113 | ||
1114 | \func{bool}{GetLineVisible}{\param{int }{line}} | |
1115 | ||
1116 | Is a line visible? | |
1117 | ||
1118 | ||
1119 | \membersection{wxStyledTextCtrl::GetMarginLeft}\label{wxstyledtextctrlgetmarginleft} | |
1120 | ||
1121 | \func{int}{GetMarginLeft}{\void} | |
1122 | ||
1123 | Returns the size in pixels of the left margin. | |
1124 | ||
1125 | ||
1126 | \membersection{wxStyledTextCtrl::GetMarginMask}\label{wxstyledtextctrlgetmarginmask} | |
1127 | ||
1128 | \func{int}{GetMarginMask}{\param{int }{margin}} | |
1129 | ||
1130 | Retrieve the marker mask of a margin. | |
1131 | ||
1132 | ||
1133 | \membersection{wxStyledTextCtrl::GetMarginRight}\label{wxstyledtextctrlgetmarginright} | |
1134 | ||
1135 | \func{int}{GetMarginRight}{\void} | |
1136 | ||
1137 | Returns the size in pixels of the right margin. | |
1138 | ||
1139 | ||
1140 | \membersection{wxStyledTextCtrl::GetMarginSensitive}\label{wxstyledtextctrlgetmarginsensitive} | |
1141 | ||
1142 | \func{bool}{GetMarginSensitive}{\param{int }{margin}} | |
1143 | ||
1144 | Retrieve the mouse click sensitivity of a margin. | |
1145 | ||
1146 | ||
1147 | \membersection{wxStyledTextCtrl::GetMarginType}\label{wxstyledtextctrlgetmargintype} | |
1148 | ||
1149 | \func{int}{GetMarginType}{\param{int }{margin}} | |
1150 | ||
1151 | Retrieve the type of a margin. | |
1152 | ||
1153 | ||
1154 | \membersection{wxStyledTextCtrl::GetMarginWidth}\label{wxstyledtextctrlgetmarginwidth} | |
1155 | ||
1156 | \func{int}{GetMarginWidth}{\param{int }{margin}} | |
1157 | ||
1158 | Retrieve the width of a margin in pixels. | |
1159 | ||
1160 | ||
1161 | \membersection{wxStyledTextCtrl::GetMaxLineState}\label{wxstyledtextctrlgetmaxlinestate} | |
1162 | ||
1163 | \func{int}{GetMaxLineState}{\void} | |
1164 | ||
1165 | Retrieve the last line number that has line state. | |
1166 | ||
1167 | ||
1168 | \membersection{wxStyledTextCtrl::GetModEventMask}\label{wxstyledtextctrlgetmodeventmask} | |
1169 | ||
1170 | \func{int}{GetModEventMask}{\void} | |
1171 | ||
1172 | Get which document modification events are sent to the container. | |
1173 | ||
1174 | ||
1175 | \membersection{wxStyledTextCtrl::GetModify}\label{wxstyledtextctrlgetmodify} | |
1176 | ||
1177 | \func{bool}{GetModify}{\void} | |
1178 | ||
1179 | Is the document different from when it was last saved? | |
1180 | ||
1181 | ||
1182 | \membersection{wxStyledTextCtrl::GetMouseDownCaptures}\label{wxstyledtextctrlgetmousedowncaptures} | |
1183 | ||
1184 | \func{bool}{GetMouseDownCaptures}{\void} | |
1185 | ||
1186 | Get whether mouse gets captured. | |
1187 | ||
1188 | ||
1189 | \membersection{wxStyledTextCtrl::GetMouseDwellTime}\label{wxstyledtextctrlgetmousedwelltime} | |
1190 | ||
1191 | \func{int}{GetMouseDwellTime}{\void} | |
1192 | ||
1193 | Retrieve the time the mouse must sit still to generate a mouse dwell event. | |
1194 | ||
1195 | ||
1196 | \membersection{wxStyledTextCtrl::GetOvertype}\label{wxstyledtextctrlgetovertype} | |
1197 | ||
1198 | \func{bool}{GetOvertype}{\void} | |
1199 | ||
1200 | Returns true if overtype mode is active otherwise false is returned. | |
1201 | ||
1202 | ||
1203 | \membersection{wxStyledTextCtrl::GetPasteConvertEndings}\label{wxstyledtextctrlgetpasteconvertendings} | |
1204 | ||
1205 | \func{bool}{GetPasteConvertEndings}{\void} | |
1206 | ||
1207 | Get convert-on-paste setting | |
1208 | ||
1209 | ||
1210 | \membersection{wxStyledTextCtrl::GetPrintColourMode}\label{wxstyledtextctrlgetprintcolourmode} | |
1211 | ||
1212 | \func{int}{GetPrintColourMode}{\void} | |
1213 | ||
1214 | Returns the print colour mode. | |
1215 | ||
1216 | ||
1217 | \membersection{wxStyledTextCtrl::GetPrintMagnification}\label{wxstyledtextctrlgetprintmagnification} | |
1218 | ||
1219 | \func{int}{GetPrintMagnification}{\void} | |
1220 | ||
1221 | Returns the print magnification. | |
1222 | ||
1223 | ||
1224 | \membersection{wxStyledTextCtrl::GetPrintWrapMode}\label{wxstyledtextctrlgetprintwrapmode} | |
1225 | ||
1226 | \func{int}{GetPrintWrapMode}{\void} | |
1227 | ||
1228 | Is printing line wrapped? | |
1229 | ||
1230 | ||
1231 | \membersection{wxStyledTextCtrl::GetProperty}\label{wxstyledtextctrlgetproperty} | |
1232 | ||
1233 | \func{wxString}{GetProperty}{\param{const wxString\& }{key}} | |
1234 | ||
1235 | Retrieve a 'property' value previously set with SetProperty. | |
1236 | ||
1237 | ||
1238 | \membersection{wxStyledTextCtrl::GetPropertyExpanded}\label{wxstyledtextctrlgetpropertyexpanded} | |
1239 | ||
1240 | \func{wxString}{GetPropertyExpanded}{\param{const wxString\& }{key}} | |
1241 | ||
1242 | Retrieve a 'property' value previously set with SetProperty, | |
1243 | with '\$()' variable replacement on returned buffer. | |
1244 | ||
1245 | ||
1246 | \membersection{wxStyledTextCtrl::GetPropertyInt}\label{wxstyledtextctrlgetpropertyint} | |
1247 | ||
1248 | \func{int}{GetPropertyInt}{\param{const wxString\& }{key}} | |
1249 | ||
1250 | Retrieve a 'property' value previously set with SetProperty, | |
1251 | interpreted as an int AFTER any '\$()' variable replacement. | |
1252 | ||
1253 | ||
1254 | \membersection{wxStyledTextCtrl::GetReadOnly}\label{wxstyledtextctrlgetreadonly} | |
1255 | ||
1256 | \func{bool}{GetReadOnly}{\void} | |
1257 | ||
1258 | In read-only mode? | |
1259 | ||
1260 | ||
1261 | \membersection{wxStyledTextCtrl::GetSTCCursor}\label{wxstyledtextctrlgetstccursor} | |
1262 | ||
1263 | \func{int}{GetSTCCursor}{\void} | |
1264 | ||
1265 | Get cursor type. | |
1266 | ||
1267 | ||
1268 | \membersection{wxStyledTextCtrl::GetSTCFocus}\label{wxstyledtextctrlgetstcfocus} | |
1269 | ||
1270 | \func{bool}{GetSTCFocus}{\void} | |
1271 | ||
1272 | Get internal focus flag. | |
1273 | ||
1274 | ||
1275 | \membersection{wxStyledTextCtrl::GetScrollWidth}\label{wxstyledtextctrlgetscrollwidth} | |
1276 | ||
1277 | \func{int}{GetScrollWidth}{\void} | |
1278 | ||
1279 | Retrieve the document width assumed for scrolling. | |
1280 | ||
1281 | ||
1282 | \membersection{wxStyledTextCtrl::GetSearchFlags}\label{wxstyledtextctrlgetsearchflags} | |
1283 | ||
1284 | \func{int}{GetSearchFlags}{\void} | |
1285 | ||
1286 | Get the search flags used by SearchInTarget. | |
1287 | ||
1288 | ||
1289 | \membersection{wxStyledTextCtrl::GetSelAlpha}\label{wxstyledtextctrlgetselalpha} | |
1290 | ||
1291 | \func{int}{GetSelAlpha}{\void} | |
1292 | ||
1293 | Get the alpha of the selection. | |
1294 | ||
1295 | ||
1296 | \membersection{wxStyledTextCtrl::GetSelectedText}\label{wxstyledtextctrlgetselectedtext} | |
1297 | ||
1298 | \func{wxString}{GetSelectedText}{\void} | |
1299 | ||
1300 | Retrieve the selected text. | |
1301 | ||
1302 | ||
1303 | \membersection{wxStyledTextCtrl::GetSelectedTextRaw}\label{wxstyledtextctrlgetselectedtextraw} | |
1304 | ||
1305 | \func{wxCharBuffer}{GetSelectedTextRaw}{\void} | |
1306 | ||
1307 | Retrieve the selected text. | |
1308 | ||
1309 | ||
1310 | \membersection{wxStyledTextCtrl::GetSelection}\label{wxstyledtextctrlgetselection} | |
1311 | ||
1312 | \func{void}{GetSelection}{\param{int* }{OUTPUT}, \param{int* }{OUTPUT}} | |
1313 | ||
1314 | ||
1315 | \membersection{wxStyledTextCtrl::GetSelectionEnd}\label{wxstyledtextctrlgetselectionend} | |
1316 | ||
1317 | \func{int}{GetSelectionEnd}{\void} | |
1318 | ||
1319 | Returns the position at the end of the selection. | |
1320 | ||
1321 | ||
1322 | \membersection{wxStyledTextCtrl::GetSelectionMode}\label{wxstyledtextctrlgetselectionmode} | |
1323 | ||
1324 | \func{int}{GetSelectionMode}{\void} | |
1325 | ||
1326 | Get the mode of the current selection. | |
1327 | ||
1328 | ||
1329 | \membersection{wxStyledTextCtrl::GetSelectionStart}\label{wxstyledtextctrlgetselectionstart} | |
1330 | ||
1331 | \func{int}{GetSelectionStart}{\void} | |
1332 | ||
1333 | Returns the position at the start of the selection. | |
1334 | ||
1335 | ||
1336 | \membersection{wxStyledTextCtrl::GetStatus}\label{wxstyledtextctrlgetstatus} | |
1337 | ||
1338 | \func{int}{GetStatus}{\void} | |
1339 | ||
1340 | Get error status. | |
1341 | ||
1342 | ||
1343 | \membersection{wxStyledTextCtrl::GetStyleAt}\label{wxstyledtextctrlgetstyleat} | |
1344 | ||
1345 | \func{int}{GetStyleAt}{\param{int }{pos}} | |
1346 | ||
1347 | Returns the style byte at the position. | |
1348 | ||
1349 | ||
1350 | \membersection{wxStyledTextCtrl::GetStyleBits}\label{wxstyledtextctrlgetstylebits} | |
1351 | ||
1352 | \func{int}{GetStyleBits}{\void} | |
1353 | ||
1354 | Retrieve number of bits in style bytes used to hold the lexical state. | |
1355 | ||
1356 | ||
1357 | \membersection{wxStyledTextCtrl::GetStyleBitsNeeded}\label{wxstyledtextctrlgetstylebitsneeded} | |
1358 | ||
1359 | \func{int}{GetStyleBitsNeeded}{\void} | |
1360 | ||
1361 | Retrieve the number of bits the current lexer needs for styling. | |
1362 | ||
1363 | ||
1364 | \membersection{wxStyledTextCtrl::GetStyledText}\label{wxstyledtextctrlgetstyledtext} | |
1365 | ||
1366 | \func{wxMemoryBuffer}{GetStyledText}{\param{int }{startPos}, \param{int }{endPos}} | |
1367 | ||
1368 | Retrieve a buffer of cells. | |
1369 | ||
1370 | ||
1371 | \membersection{wxStyledTextCtrl::GetTabIndents}\label{wxstyledtextctrlgettabindents} | |
1372 | ||
1373 | \func{bool}{GetTabIndents}{\void} | |
1374 | ||
1375 | Does a tab pressed when caret is within indentation indent? | |
1376 | ||
1377 | ||
1378 | \membersection{wxStyledTextCtrl::GetTabWidth}\label{wxstyledtextctrlgettabwidth} | |
1379 | ||
1380 | \func{int}{GetTabWidth}{\void} | |
1381 | ||
1382 | Retrieve the visible size of a tab. | |
1383 | ||
1384 | ||
1385 | \membersection{wxStyledTextCtrl::GetTargetEnd}\label{wxstyledtextctrlgettargetend} | |
1386 | ||
1387 | \func{int}{GetTargetEnd}{\void} | |
1388 | ||
1389 | Get the position that ends the target. | |
1390 | ||
1391 | ||
1392 | \membersection{wxStyledTextCtrl::GetTargetStart}\label{wxstyledtextctrlgettargetstart} | |
1393 | ||
1394 | \func{int}{GetTargetStart}{\void} | |
1395 | ||
1396 | Get the position that starts the target. | |
1397 | ||
1398 | ||
1399 | \membersection{wxStyledTextCtrl::GetText}\label{wxstyledtextctrlgettext} | |
1400 | ||
1401 | \func{wxString}{GetText}{\void} | |
1402 | ||
1403 | Retrieve all the text in the document. | |
1404 | ||
1405 | ||
1406 | \membersection{wxStyledTextCtrl::GetTextLength}\label{wxstyledtextctrlgettextlength} | |
1407 | ||
1408 | \func{int}{GetTextLength}{\void} | |
1409 | ||
1410 | Retrieve the number of characters in the document. | |
1411 | ||
1412 | ||
1413 | \membersection{wxStyledTextCtrl::GetTextRange}\label{wxstyledtextctrlgettextrange} | |
1414 | ||
1415 | \func{wxString}{GetTextRange}{\param{int }{startPos}, \param{int }{endPos}} | |
1416 | ||
1417 | Retrieve a range of text. | |
1418 | ||
1419 | ||
1420 | \membersection{wxStyledTextCtrl::GetTextRangeRaw}\label{wxstyledtextctrlgettextrangeraw} | |
1421 | ||
1422 | \func{wxCharBuffer}{GetTextRangeRaw}{\param{int }{startPos}, \param{int }{endPos}} | |
1423 | ||
1424 | Retrieve a range of text. | |
1425 | ||
1426 | ||
1427 | \membersection{wxStyledTextCtrl::GetTextRaw}\label{wxstyledtextctrlgettextraw} | |
1428 | ||
1429 | \func{wxCharBuffer}{GetTextRaw}{\void} | |
1430 | ||
1431 | Retrieve all the text in the document. | |
1432 | ||
1433 | ||
1434 | \membersection{wxStyledTextCtrl::GetTwoPhaseDraw}\label{wxstyledtextctrlgettwophasedraw} | |
1435 | ||
1436 | \func{bool}{GetTwoPhaseDraw}{\void} | |
1437 | ||
1438 | Is drawing done in two phases with backgrounds drawn before foregrounds? | |
1439 | ||
1440 | ||
1441 | \membersection{wxStyledTextCtrl::GetUndoCollection}\label{wxstyledtextctrlgetundocollection} | |
1442 | ||
1443 | \func{bool}{GetUndoCollection}{\void} | |
1444 | ||
1445 | Is undo history being collected? | |
1446 | ||
1447 | ||
1448 | \membersection{wxStyledTextCtrl::GetUseAntiAliasing}\label{wxstyledtextctrlgetuseantialiasing} | |
1449 | ||
1450 | \func{bool}{GetUseAntiAliasing}{\void} | |
1451 | ||
1452 | Returns the current UseAntiAliasing setting. | |
1453 | ||
1454 | ||
1455 | \membersection{wxStyledTextCtrl::GetUseHorizontalScrollBar}\label{wxstyledtextctrlgetusehorizontalscrollbar} | |
1456 | ||
1457 | \func{bool}{GetUseHorizontalScrollBar}{\void} | |
1458 | ||
1459 | Is the horizontal scroll bar visible? | |
1460 | ||
1461 | ||
1462 | \membersection{wxStyledTextCtrl::GetUseTabs}\label{wxstyledtextctrlgetusetabs} | |
1463 | ||
1464 | \func{bool}{GetUseTabs}{\void} | |
1465 | ||
1466 | Retrieve whether tabs will be used in indentation. | |
1467 | ||
1468 | ||
1469 | \membersection{wxStyledTextCtrl::GetUseVerticalScrollBar}\label{wxstyledtextctrlgetuseverticalscrollbar} | |
1470 | ||
1471 | \func{bool}{GetUseVerticalScrollBar}{\void} | |
1472 | ||
1473 | Is the vertical scroll bar visible? | |
1474 | ||
1475 | ||
1476 | \membersection{wxStyledTextCtrl::GetViewEOL}\label{wxstyledtextctrlgetvieweol} | |
1477 | ||
1478 | \func{bool}{GetViewEOL}{\void} | |
1479 | ||
1480 | Are the end of line characters visible? | |
1481 | ||
1482 | ||
1483 | \membersection{wxStyledTextCtrl::GetViewWhiteSpace}\label{wxstyledtextctrlgetviewwhitespace} | |
1484 | ||
1485 | \func{int}{GetViewWhiteSpace}{\void} | |
1486 | ||
1487 | Are white space characters currently visible? | |
1488 | Returns one of SCWS\_* constants. | |
1489 | ||
1490 | ||
1491 | \membersection{wxStyledTextCtrl::GetWrapMode}\label{wxstyledtextctrlgetwrapmode} | |
1492 | ||
1493 | \func{int}{GetWrapMode}{\void} | |
1494 | ||
1495 | Retrieve whether text is word wrapped. | |
1496 | ||
1497 | ||
1498 | \membersection{wxStyledTextCtrl::GetWrapStartIndent}\label{wxstyledtextctrlgetwrapstartindent} | |
1499 | ||
1500 | \func{int}{GetWrapStartIndent}{\void} | |
1501 | ||
1502 | Retrive the start indent for wrapped lines. | |
1503 | ||
1504 | ||
1505 | \membersection{wxStyledTextCtrl::GetWrapVisualFlags}\label{wxstyledtextctrlgetwrapvisualflags} | |
1506 | ||
1507 | \func{int}{GetWrapVisualFlags}{\void} | |
1508 | ||
1509 | Retrive the display mode of visual flags for wrapped lines. | |
1510 | ||
1511 | ||
1512 | \membersection{wxStyledTextCtrl::GetWrapVisualFlagsLocation}\label{wxstyledtextctrlgetwrapvisualflagslocation} | |
1513 | ||
1514 | \func{int}{GetWrapVisualFlagsLocation}{\void} | |
1515 | ||
1516 | Retrive the location of visual flags for wrapped lines. | |
1517 | ||
1518 | ||
1519 | \membersection{wxStyledTextCtrl::GetXOffset}\label{wxstyledtextctrlgetxoffset} | |
1520 | ||
1521 | \func{int}{GetXOffset}{\void} | |
1522 | ||
1523 | ||
1524 | \membersection{wxStyledTextCtrl::GetZoom}\label{wxstyledtextctrlgetzoom} | |
1525 | ||
1526 | \func{int}{GetZoom}{\void} | |
1527 | ||
1528 | Retrieve the zoom level. | |
1529 | ||
1530 | ||
1531 | \membersection{wxStyledTextCtrl::GotoLine}\label{wxstyledtextctrlgotoline} | |
1532 | ||
1533 | \func{void}{GotoLine}{\param{int }{line}} | |
1534 | ||
1535 | Set caret to start of a line and ensure it is visible. | |
1536 | ||
1537 | ||
1538 | \membersection{wxStyledTextCtrl::GotoPos}\label{wxstyledtextctrlgotopos} | |
1539 | ||
1540 | \func{void}{GotoPos}{\param{int }{pos}} | |
1541 | ||
1542 | Set caret to a position and ensure it is visible. | |
1543 | ||
1544 | ||
1545 | \membersection{wxStyledTextCtrl::HideLines}\label{wxstyledtextctrlhidelines} | |
1546 | ||
1547 | \func{void}{HideLines}{\param{int }{lineStart}, \param{int }{lineEnd}} | |
1548 | ||
1549 | Make a range of lines invisible. | |
1550 | ||
1551 | ||
1552 | \membersection{wxStyledTextCtrl::HideSelection}\label{wxstyledtextctrlhideselection} | |
1553 | ||
1554 | \func{void}{HideSelection}{\param{bool }{normal}} | |
1555 | ||
1556 | Draw the selection in normal style or with selection highlighted. | |
1557 | ||
1558 | ||
1559 | \membersection{wxStyledTextCtrl::Home}\label{wxstyledtextctrlhome} | |
1560 | ||
1561 | \func{void}{Home}{\void} | |
1562 | ||
1563 | Move caret to first position on line. | |
1564 | ||
1565 | ||
1566 | \membersection{wxStyledTextCtrl::HomeDisplay}\label{wxstyledtextctrlhomedisplay} | |
1567 | ||
1568 | \func{void}{HomeDisplay}{\void} | |
1569 | ||
1570 | Move caret to first position on display line. | |
1571 | ||
1572 | ||
1573 | \membersection{wxStyledTextCtrl::HomeDisplayExtend}\label{wxstyledtextctrlhomedisplayextend} | |
1574 | ||
1575 | \func{void}{HomeDisplayExtend}{\void} | |
1576 | ||
1577 | Move caret to first position on display line extending selection to | |
1578 | new caret position. | |
1579 | ||
1580 | ||
1581 | \membersection{wxStyledTextCtrl::HomeExtend}\label{wxstyledtextctrlhomeextend} | |
1582 | ||
1583 | \func{void}{HomeExtend}{\void} | |
1584 | ||
1585 | Move caret to first position on line extending selection to new caret position. | |
1586 | ||
1587 | ||
1588 | \membersection{wxStyledTextCtrl::HomeRectExtend}\label{wxstyledtextctrlhomerectextend} | |
1589 | ||
1590 | \func{void}{HomeRectExtend}{\void} | |
1591 | ||
1592 | Move caret to first position on line, extending rectangular selection to new caret position. | |
1593 | ||
1594 | ||
1595 | \membersection{wxStyledTextCtrl::HomeWrap}\label{wxstyledtextctrlhomewrap} | |
1596 | ||
1597 | \func{void}{HomeWrap}{\void} | |
1598 | ||
1599 | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? | |
1600 | except they behave differently when word-wrap is enabled: | |
1601 | They go first to the start / end of the display line, like (Home|LineEnd)Display | |
1602 | The difference is that, the cursor is already at the point, it goes on to the start | |
1603 | or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
1604 | ||
1605 | ||
1606 | \membersection{wxStyledTextCtrl::HomeWrapExtend}\label{wxstyledtextctrlhomewrapextend} | |
1607 | ||
1608 | \func{void}{HomeWrapExtend}{\void} | |
1609 | ||
1610 | ||
1611 | \membersection{wxStyledTextCtrl::IndicatorGetForeground}\label{wxstyledtextctrlindicatorgetforeground} | |
1612 | ||
1613 | \func{wxColour}{IndicatorGetForeground}{\param{int }{indic}} | |
1614 | ||
1615 | Retrieve the foreground colour of an indicator. | |
1616 | ||
1617 | ||
1618 | \membersection{wxStyledTextCtrl::IndicatorGetStyle}\label{wxstyledtextctrlindicatorgetstyle} | |
1619 | ||
1620 | \func{int}{IndicatorGetStyle}{\param{int }{indic}} | |
1621 | ||
1622 | Retrieve the style of an indicator. | |
1623 | ||
1624 | ||
1625 | \membersection{wxStyledTextCtrl::IndicatorSetForeground}\label{wxstyledtextctrlindicatorsetforeground} | |
1626 | ||
1627 | \func{void}{IndicatorSetForeground}{\param{int }{indic}, \param{const wxColour\& }{fore}} | |
1628 | ||
1629 | Set the foreground colour of an indicator. | |
1630 | ||
1631 | ||
1632 | \membersection{wxStyledTextCtrl::IndicatorSetStyle}\label{wxstyledtextctrlindicatorsetstyle} | |
1633 | ||
1634 | \func{void}{IndicatorSetStyle}{\param{int }{indic}, \param{int }{style}} | |
1635 | ||
1636 | Set an indicator to plain, squiggle or TT. | |
1637 | ||
1638 | ||
1639 | \membersection{wxStyledTextCtrl::InsertText}\label{wxstyledtextctrlinserttext} | |
1640 | ||
1641 | \func{void}{InsertText}{\param{int }{pos}, \param{const wxString\& }{text}} | |
1642 | ||
1643 | Insert string at a position. | |
1644 | ||
1645 | ||
1646 | \membersection{wxStyledTextCtrl::InsertTextRaw}\label{wxstyledtextctrlinserttextraw} | |
1647 | ||
1648 | \func{void}{InsertTextRaw}{\param{int }{pos}, \param{const char* }{text}} | |
1649 | ||
1650 | Insert string at a position. | |
1651 | ||
1652 | ||
1653 | \membersection{wxStyledTextCtrl::LineCopy}\label{wxstyledtextctrllinecopy} | |
1654 | ||
1655 | \func{void}{LineCopy}{\void} | |
1656 | ||
1657 | Copy the line containing the caret. | |
1658 | ||
1659 | ||
1660 | \membersection{wxStyledTextCtrl::LineCut}\label{wxstyledtextctrllinecut} | |
1661 | ||
1662 | \func{void}{LineCut}{\void} | |
1663 | ||
1664 | Cut the line containing the caret. | |
1665 | ||
1666 | ||
1667 | \membersection{wxStyledTextCtrl::LineDelete}\label{wxstyledtextctrllinedelete} | |
1668 | ||
1669 | \func{void}{LineDelete}{\void} | |
1670 | ||
1671 | Delete the line containing the caret. | |
1672 | ||
1673 | ||
1674 | \membersection{wxStyledTextCtrl::LineDown}\label{wxstyledtextctrllinedown} | |
1675 | ||
1676 | \func{void}{LineDown}{\void} | |
1677 | ||
1678 | Move caret down one line. | |
1679 | ||
1680 | ||
1681 | \membersection{wxStyledTextCtrl::LineDownExtend}\label{wxstyledtextctrllinedownextend} | |
1682 | ||
1683 | \func{void}{LineDownExtend}{\void} | |
1684 | ||
1685 | Move caret down one line extending selection to new caret position. | |
1686 | ||
1687 | ||
1688 | \membersection{wxStyledTextCtrl::LineDownRectExtend}\label{wxstyledtextctrllinedownrectextend} | |
1689 | ||
1690 | \func{void}{LineDownRectExtend}{\void} | |
1691 | ||
1692 | Move caret down one line, extending rectangular selection to new caret position. | |
1693 | ||
1694 | ||
1695 | \membersection{wxStyledTextCtrl::LineDuplicate}\label{wxstyledtextctrllineduplicate} | |
1696 | ||
1697 | \func{void}{LineDuplicate}{\void} | |
1698 | ||
1699 | Duplicate the current line. | |
1700 | ||
1701 | ||
1702 | \membersection{wxStyledTextCtrl::LineEnd}\label{wxstyledtextctrllineend} | |
1703 | ||
1704 | \func{void}{LineEnd}{\void} | |
1705 | ||
1706 | Move caret to last position on line. | |
1707 | ||
1708 | ||
1709 | \membersection{wxStyledTextCtrl::LineEndDisplay}\label{wxstyledtextctrllineenddisplay} | |
1710 | ||
1711 | \func{void}{LineEndDisplay}{\void} | |
1712 | ||
1713 | Move caret to last position on display line. | |
1714 | ||
1715 | ||
1716 | \membersection{wxStyledTextCtrl::LineEndDisplayExtend}\label{wxstyledtextctrllineenddisplayextend} | |
1717 | ||
1718 | \func{void}{LineEndDisplayExtend}{\void} | |
1719 | ||
1720 | Move caret to last position on display line extending selection to new | |
1721 | caret position. | |
1722 | ||
1723 | ||
1724 | \membersection{wxStyledTextCtrl::LineEndExtend}\label{wxstyledtextctrllineendextend} | |
1725 | ||
1726 | \func{void}{LineEndExtend}{\void} | |
1727 | ||
1728 | Move caret to last position on line extending selection to new caret position. | |
1729 | ||
1730 | ||
1731 | \membersection{wxStyledTextCtrl::LineEndRectExtend}\label{wxstyledtextctrllineendrectextend} | |
1732 | ||
1733 | \func{void}{LineEndRectExtend}{\void} | |
1734 | ||
1735 | Move caret to last position on line, extending rectangular selection to new caret position. | |
1736 | ||
1737 | ||
1738 | \membersection{wxStyledTextCtrl::LineEndWrap}\label{wxstyledtextctrllineendwrap} | |
1739 | ||
1740 | \func{void}{LineEndWrap}{\void} | |
1741 | ||
1742 | ||
1743 | \membersection{wxStyledTextCtrl::LineEndWrapExtend}\label{wxstyledtextctrllineendwrapextend} | |
1744 | ||
1745 | \func{void}{LineEndWrapExtend}{\void} | |
1746 | ||
1747 | ||
1748 | \membersection{wxStyledTextCtrl::LineFromPosition}\label{wxstyledtextctrllinefromposition} | |
1749 | ||
1750 | \func{int}{LineFromPosition}{\param{int }{pos}} | |
1751 | ||
1752 | Retrieve the line containing a position. | |
1753 | ||
1754 | ||
1755 | \membersection{wxStyledTextCtrl::LineLength}\label{wxstyledtextctrllinelength} | |
1756 | ||
1757 | \func{int}{LineLength}{\param{int }{line}} | |
1758 | ||
1759 | How many characters are on a line, not including end of line characters? | |
1760 | ||
1761 | ||
1762 | \membersection{wxStyledTextCtrl::LineScroll}\label{wxstyledtextctrllinescroll} | |
1763 | ||
1764 | \func{void}{LineScroll}{\param{int }{columns}, \param{int }{lines}} | |
1765 | ||
1766 | Scroll horizontally and vertically. | |
1767 | ||
1768 | ||
1769 | \membersection{wxStyledTextCtrl::LineScrollDown}\label{wxstyledtextctrllinescrolldown} | |
1770 | ||
1771 | \func{void}{LineScrollDown}{\void} | |
1772 | ||
1773 | Scroll the document down, keeping the caret visible. | |
1774 | ||
1775 | ||
1776 | \membersection{wxStyledTextCtrl::LineScrollUp}\label{wxstyledtextctrllinescrollup} | |
1777 | ||
1778 | \func{void}{LineScrollUp}{\void} | |
1779 | ||
1780 | Scroll the document up, keeping the caret visible. | |
1781 | ||
1782 | ||
1783 | \membersection{wxStyledTextCtrl::LineTranspose}\label{wxstyledtextctrllinetranspose} | |
1784 | ||
1785 | \func{void}{LineTranspose}{\void} | |
1786 | ||
1787 | Switch the current line with the previous. | |
1788 | ||
1789 | ||
1790 | \membersection{wxStyledTextCtrl::LineUp}\label{wxstyledtextctrllineup} | |
1791 | ||
1792 | \func{void}{LineUp}{\void} | |
1793 | ||
1794 | Move caret up one line. | |
1795 | ||
1796 | ||
1797 | \membersection{wxStyledTextCtrl::LineUpExtend}\label{wxstyledtextctrllineupextend} | |
1798 | ||
1799 | \func{void}{LineUpExtend}{\void} | |
1800 | ||
1801 | Move caret up one line extending selection to new caret position. | |
1802 | ||
1803 | ||
1804 | \membersection{wxStyledTextCtrl::LineUpRectExtend}\label{wxstyledtextctrllineuprectextend} | |
1805 | ||
1806 | \func{void}{LineUpRectExtend}{\void} | |
1807 | ||
1808 | Move caret up one line, extending rectangular selection to new caret position. | |
1809 | ||
1810 | ||
1811 | \membersection{wxStyledTextCtrl::LinesJoin}\label{wxstyledtextctrllinesjoin} | |
1812 | ||
1813 | \func{void}{LinesJoin}{\void} | |
1814 | ||
1815 | Join the lines in the target. | |
1816 | ||
1817 | ||
1818 | \membersection{wxStyledTextCtrl::LinesOnScreen}\label{wxstyledtextctrllinesonscreen} | |
1819 | ||
1820 | \func{int}{LinesOnScreen}{\void} | |
1821 | ||
1822 | Retrieves the number of lines completely visible. | |
1823 | ||
1824 | ||
1825 | \membersection{wxStyledTextCtrl::LinesSplit}\label{wxstyledtextctrllinessplit} | |
1826 | ||
1827 | \func{void}{LinesSplit}{\param{int }{pixelWidth}} | |
1828 | ||
1829 | Split the lines in the target into lines that are less wide than pixelWidth | |
1830 | where possible. | |
1831 | ||
1832 | ||
1833 | \membersection{wxStyledTextCtrl::LoadFile}\label{wxstyledtextctrlloadfile} | |
1834 | ||
1835 | \func{bool}{LoadFile}{\param{const wxString\& }{filename}} | |
1836 | ||
1837 | Load the contents of filename into the editor | |
1838 | ||
1839 | ||
1840 | \membersection{wxStyledTextCtrl::LowerCase}\label{wxstyledtextctrllowercase} | |
1841 | ||
1842 | \func{void}{LowerCase}{\void} | |
1843 | ||
1844 | Transform the selection to lower case. | |
1845 | ||
1846 | ||
1847 | \membersection{wxStyledTextCtrl::MarkerAdd}\label{wxstyledtextctrlmarkeradd} | |
1848 | ||
1849 | \func{int}{MarkerAdd}{\param{int }{line}, \param{int }{markerNumber}} | |
1850 | ||
1851 | Add a marker to a line, returning an ID which can be used to find or delete the marker. | |
1852 | ||
1853 | ||
1854 | \membersection{wxStyledTextCtrl::MarkerAddSet}\label{wxstyledtextctrlmarkeraddset} | |
1855 | ||
1856 | \func{void}{MarkerAddSet}{\param{int }{line}, \param{int }{set}} | |
1857 | ||
1858 | Add a set of markers to a line. | |
1859 | ||
1860 | ||
1861 | \membersection{wxStyledTextCtrl::MarkerDefine}\label{wxstyledtextctrlmarkerdefine} | |
1862 | ||
1863 | \func{void}{MarkerDefine}{\param{int }{markerNumber}, \param{int }{markerSymbol}, \param{const wxColour\& }{foreground = wxNullColour}, \param{const wxColour\& }{background = wxNullColour}} | |
1864 | ||
1865 | Set the symbol used for a particular marker number, | |
1866 | and optionally the fore and background colours. | |
1867 | ||
1868 | ||
1869 | \membersection{wxStyledTextCtrl::MarkerDefineBitmap}\label{wxstyledtextctrlmarkerdefinebitmap} | |
1870 | ||
1871 | \func{void}{MarkerDefineBitmap}{\param{int }{markerNumber}, \param{const wxBitmap\& }{bmp}} | |
1872 | ||
1873 | Define a marker from a bitmap | |
1874 | ||
1875 | ||
1876 | \membersection{wxStyledTextCtrl::MarkerDelete}\label{wxstyledtextctrlmarkerdelete} | |
1877 | ||
1878 | \func{void}{MarkerDelete}{\param{int }{line}, \param{int }{markerNumber}} | |
1879 | ||
1880 | Delete a marker from a line. | |
1881 | ||
1882 | ||
1883 | \membersection{wxStyledTextCtrl::MarkerDeleteAll}\label{wxstyledtextctrlmarkerdeleteall} | |
1884 | ||
1885 | \func{void}{MarkerDeleteAll}{\param{int }{markerNumber}} | |
1886 | ||
1887 | Delete all markers with a particular number from all lines. | |
1888 | ||
1889 | ||
1890 | \membersection{wxStyledTextCtrl::MarkerDeleteHandle}\label{wxstyledtextctrlmarkerdeletehandle} | |
1891 | ||
1892 | \func{void}{MarkerDeleteHandle}{\param{int }{handle}} | |
1893 | ||
1894 | Delete a marker. | |
1895 | ||
1896 | ||
1897 | \membersection{wxStyledTextCtrl::MarkerGet}\label{wxstyledtextctrlmarkerget} | |
1898 | ||
1899 | \func{int}{MarkerGet}{\param{int }{line}} | |
1900 | ||
1901 | Get a bit mask of all the markers set on a line. | |
1902 | ||
1903 | ||
1904 | \membersection{wxStyledTextCtrl::MarkerLineFromHandle}\label{wxstyledtextctrlmarkerlinefromhandle} | |
1905 | ||
1906 | \func{int}{MarkerLineFromHandle}{\param{int }{handle}} | |
1907 | ||
1908 | Retrieve the line number at which a particular marker is located. | |
1909 | ||
1910 | ||
1911 | \membersection{wxStyledTextCtrl::MarkerNext}\label{wxstyledtextctrlmarkernext} | |
1912 | ||
1913 | \func{int}{MarkerNext}{\param{int }{lineStart}, \param{int }{markerMask}} | |
1914 | ||
1915 | Find the next line after lineStart that includes a marker in mask. | |
1916 | ||
1917 | ||
1918 | \membersection{wxStyledTextCtrl::MarkerPrevious}\label{wxstyledtextctrlmarkerprevious} | |
1919 | ||
1920 | \func{int}{MarkerPrevious}{\param{int }{lineStart}, \param{int }{markerMask}} | |
1921 | ||
1922 | Find the previous line before lineStart that includes a marker in mask. | |
1923 | ||
1924 | ||
1925 | \membersection{wxStyledTextCtrl::MarkerSetAlpha}\label{wxstyledtextctrlmarkersetalpha} | |
1926 | ||
1927 | \func{void}{MarkerSetAlpha}{\param{int }{markerNumber}, \param{int }{alpha}} | |
1928 | ||
1929 | Set the alpha used for a marker that is drawn in the text area, not the margin. | |
1930 | ||
1931 | ||
1932 | \membersection{wxStyledTextCtrl::MarkerSetBackground}\label{wxstyledtextctrlmarkersetbackground} | |
1933 | ||
1934 | \func{void}{MarkerSetBackground}{\param{int }{markerNumber}, \param{const wxColour\& }{back}} | |
1935 | ||
1936 | Set the background colour used for a particular marker number. | |
1937 | ||
1938 | ||
1939 | \membersection{wxStyledTextCtrl::MarkerSetForeground}\label{wxstyledtextctrlmarkersetforeground} | |
1940 | ||
1941 | \func{void}{MarkerSetForeground}{\param{int }{markerNumber}, \param{const wxColour\& }{fore}} | |
1942 | ||
1943 | Set the foreground colour used for a particular marker number. | |
1944 | ||
1945 | ||
1946 | \membersection{wxStyledTextCtrl::MoveCaretInsideView}\label{wxstyledtextctrlmovecaretinsideview} | |
1947 | ||
1948 | \func{void}{MoveCaretInsideView}{\void} | |
1949 | ||
1950 | Move the caret inside current view if it's not there already. | |
1951 | ||
1952 | ||
1953 | \membersection{wxStyledTextCtrl::NewLine}\label{wxstyledtextctrlnewline} | |
1954 | ||
1955 | \func{void}{NewLine}{\void} | |
1956 | ||
1957 | Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
1958 | ||
1959 | ||
1960 | \membersection{wxStyledTextCtrl::PageDown}\label{wxstyledtextctrlpagedown} | |
1961 | ||
1962 | \func{void}{PageDown}{\void} | |
1963 | ||
1964 | Move caret one page down. | |
1965 | ||
1966 | ||
1967 | \membersection{wxStyledTextCtrl::PageDownExtend}\label{wxstyledtextctrlpagedownextend} | |
1968 | ||
1969 | \func{void}{PageDownExtend}{\void} | |
1970 | ||
1971 | Move caret one page down extending selection to new caret position. | |
1972 | ||
1973 | ||
1974 | \membersection{wxStyledTextCtrl::PageDownRectExtend}\label{wxstyledtextctrlpagedownrectextend} | |
1975 | ||
1976 | \func{void}{PageDownRectExtend}{\void} | |
1977 | ||
1978 | Move caret one page down, extending rectangular selection to new caret position. | |
1979 | ||
1980 | ||
1981 | \membersection{wxStyledTextCtrl::PageUp}\label{wxstyledtextctrlpageup} | |
1982 | ||
1983 | \func{void}{PageUp}{\void} | |
1984 | ||
1985 | Move caret one page up. | |
1986 | ||
1987 | ||
1988 | \membersection{wxStyledTextCtrl::PageUpExtend}\label{wxstyledtextctrlpageupextend} | |
1989 | ||
1990 | \func{void}{PageUpExtend}{\void} | |
1991 | ||
1992 | Move caret one page up extending selection to new caret position. | |
1993 | ||
1994 | ||
1995 | \membersection{wxStyledTextCtrl::PageUpRectExtend}\label{wxstyledtextctrlpageuprectextend} | |
1996 | ||
1997 | \func{void}{PageUpRectExtend}{\void} | |
1998 | ||
1999 | Move caret one page up, extending rectangular selection to new caret position. | |
2000 | ||
2001 | ||
2002 | \membersection{wxStyledTextCtrl::ParaDown}\label{wxstyledtextctrlparadown} | |
2003 | ||
2004 | \func{void}{ParaDown}{\void} | |
2005 | ||
2006 | Move caret between paragraphs (delimited by empty lines). | |
2007 | ||
2008 | ||
2009 | \membersection{wxStyledTextCtrl::ParaDownExtend}\label{wxstyledtextctrlparadownextend} | |
2010 | ||
2011 | \func{void}{ParaDownExtend}{\void} | |
2012 | ||
2013 | ||
2014 | \membersection{wxStyledTextCtrl::ParaUp}\label{wxstyledtextctrlparaup} | |
2015 | ||
2016 | \func{void}{ParaUp}{\void} | |
2017 | ||
2018 | ||
2019 | \membersection{wxStyledTextCtrl::ParaUpExtend}\label{wxstyledtextctrlparaupextend} | |
2020 | ||
2021 | \func{void}{ParaUpExtend}{\void} | |
2022 | ||
2023 | ||
2024 | \membersection{wxStyledTextCtrl::Paste}\label{wxstyledtextctrlpaste} | |
2025 | ||
2026 | \func{void}{Paste}{\void} | |
2027 | ||
2028 | Paste the contents of the clipboard into the document replacing the selection. | |
2029 | ||
2030 | ||
2031 | \membersection{wxStyledTextCtrl::PointFromPosition}\label{wxstyledtextctrlpointfromposition} | |
2032 | ||
2033 | \func{wxPoint}{PointFromPosition}{\param{int }{pos}} | |
2034 | ||
2035 | Retrieve the point in the window where a position is displayed. | |
2036 | ||
2037 | ||
2038 | \membersection{wxStyledTextCtrl::PositionAfter}\label{wxstyledtextctrlpositionafter} | |
2039 | ||
2040 | \func{int}{PositionAfter}{\param{int }{pos}} | |
2041 | ||
2042 | Given a valid document position, return the next position taking code | |
2043 | page into account. Maximum value returned is the last position in the document. | |
2044 | ||
2045 | ||
2046 | \membersection{wxStyledTextCtrl::PositionBefore}\label{wxstyledtextctrlpositionbefore} | |
2047 | ||
2048 | \func{int}{PositionBefore}{\param{int }{pos}} | |
2049 | ||
2050 | Given a valid document position, return the previous position taking code | |
2051 | page into account. Returns 0 if passed 0. | |
2052 | ||
2053 | ||
2054 | \membersection{wxStyledTextCtrl::PositionFromLine}\label{wxstyledtextctrlpositionfromline} | |
2055 | ||
2056 | \func{int}{PositionFromLine}{\param{int }{line}} | |
2057 | ||
2058 | Retrieve the position at the start of a line. | |
2059 | ||
2060 | ||
2061 | \membersection{wxStyledTextCtrl::PositionFromPoint}\label{wxstyledtextctrlpositionfrompoint} | |
2062 | ||
2063 | \func{int}{PositionFromPoint}{\param{wxPoint }{pt}} | |
2064 | ||
2065 | Find the position from a point within the window. | |
2066 | ||
2067 | ||
2068 | \membersection{wxStyledTextCtrl::PositionFromPointClose}\label{wxstyledtextctrlpositionfrompointclose} | |
2069 | ||
2070 | \func{int}{PositionFromPointClose}{\param{int }{x}, \param{int }{y}} | |
2071 | ||
2072 | Find the position from a point within the window but return | |
2073 | INVALID\_POSITION if not close to text. | |
2074 | ||
2075 | ||
2076 | \membersection{wxStyledTextCtrl::Redo}\label{wxstyledtextctrlredo} | |
2077 | ||
2078 | \func{void}{Redo}{\void} | |
2079 | ||
2080 | Redoes the next action on the undo history. | |
2081 | ||
2082 | ||
2083 | \membersection{wxStyledTextCtrl::RegisterImage}\label{wxstyledtextctrlregisterimage} | |
2084 | ||
2085 | \func{void}{RegisterImage}{\param{int }{type}, \param{const wxBitmap\& }{bmp}} | |
2086 | ||
2087 | Register an image for use in autocompletion lists. | |
2088 | ||
2089 | ||
2090 | \membersection{wxStyledTextCtrl::ReleaseDocument}\label{wxstyledtextctrlreleasedocument} | |
2091 | ||
2092 | \func{void}{ReleaseDocument}{\param{void* }{docPointer}} | |
2093 | ||
2094 | Release a reference to the document, deleting document if it fades to black. | |
2095 | ||
2096 | ||
2097 | \membersection{wxStyledTextCtrl::ReplaceSelection}\label{wxstyledtextctrlreplaceselection} | |
2098 | ||
2099 | \func{void}{ReplaceSelection}{\param{const wxString\& }{text}} | |
2100 | ||
2101 | Replace the selected text with the argument text. | |
2102 | ||
2103 | ||
2104 | \membersection{wxStyledTextCtrl::ReplaceTarget}\label{wxstyledtextctrlreplacetarget} | |
2105 | ||
2106 | \func{int}{ReplaceTarget}{\param{const wxString\& }{text}} | |
2107 | ||
2108 | Replace the target text with the argument text. | |
2109 | Text is counted so it can contain NULs. | |
2110 | Returns the length of the replacement text. | |
2111 | ||
2112 | ||
2113 | \membersection{wxStyledTextCtrl::ReplaceTargetRE}\label{wxstyledtextctrlreplacetargetre} | |
2114 | ||
2115 | \func{int}{ReplaceTargetRE}{\param{const wxString\& }{text}} | |
2116 | ||
2117 | Replace the target text with the argument text after \\d processing. | |
2118 | Text is counted so it can contain NULs. | |
2119 | Looks for \\d where d is between 1 and 9 and replaces these with the strings | |
2120 | matched in the last search operation which were surrounded by \\( and \\). | |
2121 | Returns the length of the replacement text including any change | |
2122 | caused by processing the \\d patterns. | |
2123 | ||
2124 | ||
2125 | \membersection{wxStyledTextCtrl::SaveFile}\label{wxstyledtextctrlsavefile} | |
2126 | ||
2127 | \func{bool}{SaveFile}{\param{const wxString\& }{filename}} | |
2128 | ||
2129 | Write the contents of the editor to filename | |
2130 | ||
2131 | ||
2132 | \membersection{wxStyledTextCtrl::ScrollToColumn}\label{wxstyledtextctrlscrolltocolumn} | |
2133 | ||
2134 | \func{void}{ScrollToColumn}{\param{int }{column}} | |
2135 | ||
2136 | Scroll enough to make the given column visible | |
2137 | ||
2138 | ||
2139 | \membersection{wxStyledTextCtrl::ScrollToLine}\label{wxstyledtextctrlscrolltoline} | |
2140 | ||
2141 | \func{void}{ScrollToLine}{\param{int }{line}} | |
2142 | ||
2143 | Scroll enough to make the given line visible | |
2144 | ||
2145 | ||
2146 | \membersection{wxStyledTextCtrl::SearchAnchor}\label{wxstyledtextctrlsearchanchor} | |
2147 | ||
2148 | \func{void}{SearchAnchor}{\void} | |
2149 | ||
2150 | Sets the current caret position to be the search anchor. | |
2151 | ||
2152 | ||
2153 | \membersection{wxStyledTextCtrl::SearchInTarget}\label{wxstyledtextctrlsearchintarget} | |
2154 | ||
2155 | \func{int}{SearchInTarget}{\param{const wxString\& }{text}} | |
2156 | ||
2157 | Search for a counted string in the target and set the target to the found | |
2158 | range. Text is counted so it can contain NULs. | |
2159 | Returns length of range or -1 for failure in which case target is not moved. | |
2160 | ||
2161 | ||
2162 | \membersection{wxStyledTextCtrl::SearchNext}\label{wxstyledtextctrlsearchnext} | |
2163 | ||
2164 | \func{int}{SearchNext}{\param{int }{flags}, \param{const wxString\& }{text}} | |
2165 | ||
2166 | Find some text starting at the search anchor. | |
2167 | Does not ensure the selection is visible. | |
2168 | ||
2169 | ||
2170 | \membersection{wxStyledTextCtrl::SearchPrev}\label{wxstyledtextctrlsearchprev} | |
2171 | ||
2172 | \func{int}{SearchPrev}{\param{int }{flags}, \param{const wxString\& }{text}} | |
2173 | ||
2174 | Find some text starting at the search anchor and moving backwards. | |
2175 | Does not ensure the selection is visible. | |
2176 | ||
2177 | ||
2178 | \membersection{wxStyledTextCtrl::SelectAll}\label{wxstyledtextctrlselectall} | |
2179 | ||
2180 | \func{void}{SelectAll}{\void} | |
2181 | ||
2182 | Select all the text in the document. | |
2183 | ||
2184 | ||
2185 | \membersection{wxStyledTextCtrl::SelectionDuplicate}\label{wxstyledtextctrlselectionduplicate} | |
2186 | ||
2187 | \func{void}{SelectionDuplicate}{\void} | |
2188 | ||
2189 | Duplicate the selection. If selection empty duplicate the line containing the caret. | |
2190 | ||
2191 | ||
2192 | \membersection{wxStyledTextCtrl::SelectionIsRectangle}\label{wxstyledtextctrlselectionisrectangle} | |
2193 | ||
2194 | \func{bool}{SelectionIsRectangle}{\void} | |
2195 | ||
2196 | Is the selection rectangular? The alternative is the more common stream selection. | |
2197 | ||
2198 | ||
2199 | \membersection{wxStyledTextCtrl::SendMsg}\label{wxstyledtextctrlsendmsg} | |
2200 | ||
2201 | \func{long}{SendMsg}{\param{int }{msg}, \param{long }{wp = 0}, \param{long }{lp = 0}} | |
2202 | ||
2203 | Send a message to Scintilla | |
2204 | ||
2205 | ||
2206 | \membersection{wxStyledTextCtrl::SetAnchor}\label{wxstyledtextctrlsetanchor} | |
2207 | ||
2208 | \func{void}{SetAnchor}{\param{int }{posAnchor}} | |
2209 | ||
2210 | Set the selection anchor to a position. The anchor is the opposite | |
2211 | end of the selection from the caret. | |
2212 | ||
2213 | ||
2214 | \membersection{wxStyledTextCtrl::SetBackSpaceUnIndents}\label{wxstyledtextctrlsetbackspaceunindents} | |
2215 | ||
2216 | \func{void}{SetBackSpaceUnIndents}{\param{bool }{bsUnIndents}} | |
2217 | ||
2218 | Sets whether a backspace pressed when caret is within indentation unindents. | |
2219 | ||
2220 | ||
2221 | \membersection{wxStyledTextCtrl::SetBufferedDraw}\label{wxstyledtextctrlsetbuffereddraw} | |
2222 | ||
2223 | \func{void}{SetBufferedDraw}{\param{bool }{buffered}} | |
2224 | ||
2225 | If drawing is buffered then each line of text is drawn into a bitmap buffer | |
2226 | before drawing it to the screen to avoid flicker. | |
2227 | ||
2228 | ||
2229 | \membersection{wxStyledTextCtrl::SetCaretForeground}\label{wxstyledtextctrlsetcaretforeground} | |
2230 | ||
2231 | \func{void}{SetCaretForeground}{\param{const wxColour\& }{fore}} | |
2232 | ||
2233 | Set the foreground colour of the caret. | |
2234 | ||
2235 | ||
2236 | \membersection{wxStyledTextCtrl::SetCaretLineBackAlpha}\label{wxstyledtextctrlsetcaretlinebackalpha} | |
2237 | ||
2238 | \func{void}{SetCaretLineBackAlpha}{\param{int }{alpha}} | |
2239 | ||
2240 | Set background alpha of the caret line. | |
2241 | ||
2242 | ||
2243 | \membersection{wxStyledTextCtrl::SetCaretLineBackground}\label{wxstyledtextctrlsetcaretlinebackground} | |
2244 | ||
2245 | \func{void}{SetCaretLineBackground}{\param{const wxColour\& }{back}} | |
2246 | ||
2247 | Set the colour of the background of the line containing the caret. | |
2248 | ||
2249 | ||
2250 | \membersection{wxStyledTextCtrl::SetCaretLineVisible}\label{wxstyledtextctrlsetcaretlinevisible} | |
2251 | ||
2252 | \func{void}{SetCaretLineVisible}{\param{bool }{show}} | |
2253 | ||
2254 | Display the background of the line containing the caret in a different colour. | |
2255 | ||
2256 | ||
2257 | \membersection{wxStyledTextCtrl::SetCaretPeriod}\label{wxstyledtextctrlsetcaretperiod} | |
2258 | ||
2259 | \func{void}{SetCaretPeriod}{\param{int }{periodMilliseconds}} | |
2260 | ||
2261 | Get the time in milliseconds that the caret is on and off. 0 = steady on. | |
2262 | ||
2263 | ||
2264 | \membersection{wxStyledTextCtrl::SetCaretSticky}\label{wxstyledtextctrlsetcaretsticky} | |
2265 | ||
2266 | \func{void}{SetCaretSticky}{\param{bool }{useCaretStickyBehaviour}} | |
2267 | ||
2268 | Stop the caret preferred x position changing when the user types. | |
2269 | ||
2270 | ||
2271 | \membersection{wxStyledTextCtrl::SetCaretWidth}\label{wxstyledtextctrlsetcaretwidth} | |
2272 | ||
2273 | \func{void}{SetCaretWidth}{\param{int }{pixelWidth}} | |
2274 | ||
2275 | Set the width of the insert mode caret. | |
2276 | ||
2277 | ||
2278 | \membersection{wxStyledTextCtrl::SetCharsDefault}\label{wxstyledtextctrlsetcharsdefault} | |
2279 | ||
2280 | \func{void}{SetCharsDefault}{\void} | |
2281 | ||
2282 | Reset the set of characters for whitespace and word characters to the defaults. | |
2283 | ||
2284 | ||
2285 | \membersection{wxStyledTextCtrl::SetCodePage}\label{wxstyledtextctrlsetcodepage} | |
2286 | ||
2287 | \func{void}{SetCodePage}{\param{int }{codePage}} | |
2288 | ||
2289 | Set the code page used to interpret the bytes of the document as characters. | |
2290 | ||
2291 | ||
2292 | \membersection{wxStyledTextCtrl::SetControlCharSymbol}\label{wxstyledtextctrlsetcontrolcharsymbol} | |
2293 | ||
2294 | \func{void}{SetControlCharSymbol}{\param{int }{symbol}} | |
2295 | ||
2296 | Change the way control characters are displayed: | |
2297 | If symbol is < 32, keep the drawn way, else, use the given character. | |
2298 | ||
2299 | ||
2300 | \membersection{wxStyledTextCtrl::SetCurrentPos}\label{wxstyledtextctrlsetcurrentpos} | |
2301 | ||
2302 | \func{void}{SetCurrentPos}{\param{int }{pos}} | |
2303 | ||
2304 | Sets the position of the caret. | |
2305 | ||
2306 | ||
2307 | \membersection{wxStyledTextCtrl::SetDocPointer}\label{wxstyledtextctrlsetdocpointer} | |
2308 | ||
2309 | \func{void}{SetDocPointer}{\param{void* }{docPointer}} | |
2310 | ||
2311 | Change the document object used. | |
2312 | ||
2313 | ||
2314 | \membersection{wxStyledTextCtrl::SetEOLMode}\label{wxstyledtextctrlseteolmode} | |
2315 | ||
2316 | \func{void}{SetEOLMode}{\param{int }{eolMode}} | |
2317 | ||
2318 | Set the current end of line mode. | |
2319 | ||
2320 | ||
2321 | \membersection{wxStyledTextCtrl::SetEdgeColour}\label{wxstyledtextctrlsetedgecolour} | |
2322 | ||
2323 | \func{void}{SetEdgeColour}{\param{const wxColour\& }{edgeColour}} | |
2324 | ||
2325 | Change the colour used in edge indication. | |
2326 | ||
2327 | ||
2328 | \membersection{wxStyledTextCtrl::SetEdgeColumn}\label{wxstyledtextctrlsetedgecolumn} | |
2329 | ||
2330 | \func{void}{SetEdgeColumn}{\param{int }{column}} | |
2331 | ||
2332 | Set the column number of the edge. | |
2333 | If text goes past the edge then it is highlighted. | |
2334 | ||
2335 | ||
2336 | \membersection{wxStyledTextCtrl::SetEdgeMode}\label{wxstyledtextctrlsetedgemode} | |
2337 | ||
2338 | \func{void}{SetEdgeMode}{\param{int }{mode}} | |
2339 | ||
2340 | The edge may be displayed by a line (EDGE\_LINE) or by highlighting text that | |
2341 | goes beyond it (EDGE\_BACKGROUND) or not displayed at all (EDGE\_NONE). | |
2342 | ||
2343 | ||
2344 | \membersection{wxStyledTextCtrl::SetEndAtLastLine}\label{wxstyledtextctrlsetendatlastline} | |
2345 | ||
2346 | \func{void}{SetEndAtLastLine}{\param{bool }{endAtLastLine}} | |
2347 | ||
2348 | Sets the scroll range so that maximum scroll position has | |
2349 | the last line at the bottom of the view (default). | |
2350 | Setting this to false allows scrolling one page below the last line. | |
2351 | ||
2352 | ||
2353 | \membersection{wxStyledTextCtrl::SetFoldExpanded}\label{wxstyledtextctrlsetfoldexpanded} | |
2354 | ||
2355 | \func{void}{SetFoldExpanded}{\param{int }{line}, \param{bool }{expanded}} | |
2356 | ||
2357 | Show the children of a header line. | |
2358 | ||
2359 | ||
2360 | \membersection{wxStyledTextCtrl::SetFoldFlags}\label{wxstyledtextctrlsetfoldflags} | |
2361 | ||
2362 | \func{void}{SetFoldFlags}{\param{int }{flags}} | |
2363 | ||
2364 | Set some style options for folding. | |
2365 | ||
2366 | ||
2367 | \membersection{wxStyledTextCtrl::SetFoldLevel}\label{wxstyledtextctrlsetfoldlevel} | |
2368 | ||
2369 | \func{void}{SetFoldLevel}{\param{int }{line}, \param{int }{level}} | |
2370 | ||
2371 | Set the fold level of a line. | |
2372 | This encodes an integer level along with flags indicating whether the | |
2373 | line is a header and whether it is effectively white space. | |
2374 | ||
2375 | ||
2376 | \membersection{wxStyledTextCtrl::SetFoldMarginColour}\label{wxstyledtextctrlsetfoldmargincolour} | |
2377 | ||
2378 | \func{void}{SetFoldMarginColour}{\param{bool }{useSetting}, \param{const wxColour\& }{back}} | |
2379 | ||
2380 | Set the colours used as a chequerboard pattern in the fold margin | |
2381 | ||
2382 | ||
2383 | \membersection{wxStyledTextCtrl::SetFoldMarginHiColour}\label{wxstyledtextctrlsetfoldmarginhicolour} | |
2384 | ||
2385 | \func{void}{SetFoldMarginHiColour}{\param{bool }{useSetting}, \param{const wxColour\& }{fore}} | |
2386 | ||
2387 | ||
2388 | \membersection{wxStyledTextCtrl::SetHScrollBar}\label{wxstyledtextctrlsethscrollbar} | |
2389 | ||
2390 | \func{void}{SetHScrollBar}{\param{wxScrollBar* }{bar}} | |
2391 | ||
2392 | Set the horizontal scrollbar to use instead of the ont that's built-in. | |
2393 | ||
2394 | ||
2395 | \membersection{wxStyledTextCtrl::SetHighlightGuide}\label{wxstyledtextctrlsethighlightguide} | |
2396 | ||
2397 | \func{void}{SetHighlightGuide}{\param{int }{column}} | |
2398 | ||
2399 | Set the highlighted indentation guide column. | |
2400 | 0 = no highlighted guide. | |
2401 | ||
2402 | ||
2403 | \membersection{wxStyledTextCtrl::SetHotspotActiveBackground}\label{wxstyledtextctrlsethotspotactivebackground} | |
2404 | ||
2405 | \func{void}{SetHotspotActiveBackground}{\param{bool }{useSetting}, \param{const wxColour\& }{back}} | |
2406 | ||
2407 | Set a back colour for active hotspots. | |
2408 | ||
2409 | ||
2410 | \membersection{wxStyledTextCtrl::SetHotspotActiveForeground}\label{wxstyledtextctrlsethotspotactiveforeground} | |
2411 | ||
2412 | \func{void}{SetHotspotActiveForeground}{\param{bool }{useSetting}, \param{const wxColour\& }{fore}} | |
2413 | ||
2414 | Set a fore colour for active hotspots. | |
2415 | ||
2416 | ||
2417 | \membersection{wxStyledTextCtrl::SetHotspotActiveUnderline}\label{wxstyledtextctrlsethotspotactiveunderline} | |
2418 | ||
2419 | \func{void}{SetHotspotActiveUnderline}{\param{bool }{underline}} | |
2420 | ||
2421 | Enable / Disable underlining active hotspots. | |
2422 | ||
2423 | ||
2424 | \membersection{wxStyledTextCtrl::SetHotspotSingleLine}\label{wxstyledtextctrlsethotspotsingleline} | |
2425 | ||
2426 | \func{void}{SetHotspotSingleLine}{\param{bool }{singleLine}} | |
2427 | ||
2428 | Limit hotspots to single line so hotspots on two lines don't merge. | |
2429 | ||
2430 | ||
2431 | \membersection{wxStyledTextCtrl::SetIndent}\label{wxstyledtextctrlsetindent} | |
2432 | ||
2433 | \func{void}{SetIndent}{\param{int }{indentSize}} | |
2434 | ||
2435 | Set the number of spaces used for one level of indentation. | |
2436 | ||
2437 | ||
2438 | \membersection{wxStyledTextCtrl::SetIndentationGuides}\label{wxstyledtextctrlsetindentationguides} | |
2439 | ||
2440 | \func{void}{SetIndentationGuides}{\param{bool }{show}} | |
2441 | ||
2442 | Show or hide indentation guides. | |
2443 | ||
2444 | ||
2445 | \membersection{wxStyledTextCtrl::SetKeyWords}\label{wxstyledtextctrlsetkeywords} | |
2446 | ||
2447 | \func{void}{SetKeyWords}{\param{int }{keywordSet}, \param{const wxString\& }{keyWords}} | |
2448 | ||
2449 | Set up the key words used by the lexer. | |
2450 | ||
2451 | ||
2452 | \membersection{wxStyledTextCtrl::SetLastKeydownProcessed}\label{wxstyledtextctrlsetlastkeydownprocessed} | |
2453 | ||
2454 | \func{void}{SetLastKeydownProcessed}{\param{bool }{val}} | |
2455 | ||
2456 | ||
2457 | \membersection{wxStyledTextCtrl::SetLayoutCache}\label{wxstyledtextctrlsetlayoutcache} | |
2458 | ||
2459 | \func{void}{SetLayoutCache}{\param{int }{mode}} | |
2460 | ||
2461 | Sets the degree of caching of layout information. | |
2462 | ||
2463 | ||
2464 | \membersection{wxStyledTextCtrl::SetLexer}\label{wxstyledtextctrlsetlexer} | |
2465 | ||
2466 | \func{void}{SetLexer}{\param{int }{lexer}} | |
2467 | ||
2468 | Set the lexing language of the document. | |
2469 | ||
2470 | ||
2471 | \membersection{wxStyledTextCtrl::SetLexerLanguage}\label{wxstyledtextctrlsetlexerlanguage} | |
2472 | ||
2473 | \func{void}{SetLexerLanguage}{\param{const wxString\& }{language}} | |
2474 | ||
2475 | Set the lexing language of the document based on string name. | |
2476 | ||
2477 | ||
2478 | \membersection{wxStyledTextCtrl::SetLineIndentation}\label{wxstyledtextctrlsetlineindentation} | |
2479 | ||
2480 | \func{void}{SetLineIndentation}{\param{int }{line}, \param{int }{indentSize}} | |
2481 | ||
2482 | Change the indentation of a line to a number of columns. | |
2483 | ||
2484 | ||
2485 | \membersection{wxStyledTextCtrl::SetLineState}\label{wxstyledtextctrlsetlinestate} | |
2486 | ||
2487 | \func{void}{SetLineState}{\param{int }{line}, \param{int }{state}} | |
2488 | ||
2489 | Used to hold extra styling information for each line. | |
2490 | ||
2491 | ||
2492 | \membersection{wxStyledTextCtrl::SetMarginLeft}\label{wxstyledtextctrlsetmarginleft} | |
2493 | ||
2494 | \func{void}{SetMarginLeft}{\param{int }{pixelWidth}} | |
2495 | ||
2496 | Sets the size in pixels of the left margin. | |
2497 | ||
2498 | ||
2499 | \membersection{wxStyledTextCtrl::SetMarginMask}\label{wxstyledtextctrlsetmarginmask} | |
2500 | ||
2501 | \func{void}{SetMarginMask}{\param{int }{margin}, \param{int }{mask}} | |
2502 | ||
2503 | Set a mask that determines which markers are displayed in a margin. | |
2504 | ||
2505 | ||
2506 | \membersection{wxStyledTextCtrl::SetMarginRight}\label{wxstyledtextctrlsetmarginright} | |
2507 | ||
2508 | \func{void}{SetMarginRight}{\param{int }{pixelWidth}} | |
2509 | ||
2510 | Sets the size in pixels of the right margin. | |
2511 | ||
2512 | ||
2513 | \membersection{wxStyledTextCtrl::SetMarginSensitive}\label{wxstyledtextctrlsetmarginsensitive} | |
2514 | ||
2515 | \func{void}{SetMarginSensitive}{\param{int }{margin}, \param{bool }{sensitive}} | |
2516 | ||
2517 | Make a margin sensitive or insensitive to mouse clicks. | |
2518 | ||
2519 | ||
2520 | \membersection{wxStyledTextCtrl::SetMarginType}\label{wxstyledtextctrlsetmargintype} | |
2521 | ||
2522 | \func{void}{SetMarginType}{\param{int }{margin}, \param{int }{marginType}} | |
2523 | ||
2524 | Set a margin to be either numeric or symbolic. | |
2525 | ||
2526 | ||
2527 | \membersection{wxStyledTextCtrl::SetMarginWidth}\label{wxstyledtextctrlsetmarginwidth} | |
2528 | ||
2529 | \func{void}{SetMarginWidth}{\param{int }{margin}, \param{int }{pixelWidth}} | |
2530 | ||
2531 | Set the width of a margin to a width expressed in pixels. | |
2532 | ||
2533 | ||
2534 | \membersection{wxStyledTextCtrl::SetMargins}\label{wxstyledtextctrlsetmargins} | |
2535 | ||
2536 | \func{void}{SetMargins}{\param{int }{left}, \param{int }{right}} | |
2537 | ||
2538 | Set the left and right margin in the edit area, measured in pixels. | |
2539 | ||
2540 | ||
2541 | \membersection{wxStyledTextCtrl::SetModEventMask}\label{wxstyledtextctrlsetmodeventmask} | |
2542 | ||
2543 | \func{void}{SetModEventMask}{\param{int }{mask}} | |
2544 | ||
2545 | Set which document modification events are sent to the container. | |
2546 | ||
2547 | ||
2548 | \membersection{wxStyledTextCtrl::SetMouseDownCaptures}\label{wxstyledtextctrlsetmousedowncaptures} | |
2549 | ||
2550 | \func{void}{SetMouseDownCaptures}{\param{bool }{captures}} | |
2551 | ||
2552 | Set whether the mouse is captured when its button is pressed. | |
2553 | ||
2554 | ||
2555 | \membersection{wxStyledTextCtrl::SetMouseDwellTime}\label{wxstyledtextctrlsetmousedwelltime} | |
2556 | ||
2557 | \func{void}{SetMouseDwellTime}{\param{int }{periodMilliseconds}} | |
2558 | ||
2559 | Sets the time the mouse must sit still to generate a mouse dwell event. | |
2560 | ||
2561 | ||
2562 | \membersection{wxStyledTextCtrl::SetOvertype}\label{wxstyledtextctrlsetovertype} | |
2563 | ||
2564 | \func{void}{SetOvertype}{\param{bool }{overtype}} | |
2565 | ||
2566 | Set to overtype (true) or insert mode. | |
2567 | ||
2568 | ||
2569 | \membersection{wxStyledTextCtrl::SetPasteConvertEndings}\label{wxstyledtextctrlsetpasteconvertendings} | |
2570 | ||
2571 | \func{void}{SetPasteConvertEndings}{\param{bool }{convert}} | |
2572 | ||
2573 | Enable/Disable convert-on-paste for line endings | |
2574 | ||
2575 | ||
2576 | \membersection{wxStyledTextCtrl::SetPrintColourMode}\label{wxstyledtextctrlsetprintcolourmode} | |
2577 | ||
2578 | \func{void}{SetPrintColourMode}{\param{int }{mode}} | |
2579 | ||
2580 | Modify colours when printing for clearer printed text. | |
2581 | ||
2582 | ||
2583 | \membersection{wxStyledTextCtrl::SetPrintMagnification}\label{wxstyledtextctrlsetprintmagnification} | |
2584 | ||
2585 | \func{void}{SetPrintMagnification}{\param{int }{magnification}} | |
2586 | ||
2587 | Sets the print magnification added to the point size of each style for printing. | |
2588 | ||
2589 | ||
2590 | \membersection{wxStyledTextCtrl::SetPrintWrapMode}\label{wxstyledtextctrlsetprintwrapmode} | |
2591 | ||
2592 | \func{void}{SetPrintWrapMode}{\param{int }{mode}} | |
2593 | ||
2594 | Set printing to line wrapped (SC\_WRAP\_WORD) or not line wrapped (SC\_WRAP\_NONE). | |
2595 | ||
2596 | ||
2597 | \membersection{wxStyledTextCtrl::SetProperty}\label{wxstyledtextctrlsetproperty} | |
2598 | ||
2599 | \func{void}{SetProperty}{\param{const wxString\& }{key}, \param{const wxString\& }{value}} | |
2600 | ||
2601 | Set up a value that may be used by a lexer for some optional feature. | |
2602 | ||
2603 | ||
2604 | \membersection{wxStyledTextCtrl::SetReadOnly}\label{wxstyledtextctrlsetreadonly} | |
2605 | ||
2606 | \func{void}{SetReadOnly}{\param{bool }{readOnly}} | |
2607 | ||
2608 | Set to read only or read write. | |
2609 | ||
2610 | ||
2611 | \membersection{wxStyledTextCtrl::SetSTCCursor}\label{wxstyledtextctrlsetstccursor} | |
2612 | ||
2613 | \func{void}{SetSTCCursor}{\param{int }{cursorType}} | |
2614 | ||
2615 | Sets the cursor to one of the SC\_CURSOR* values. | |
2616 | ||
2617 | ||
2618 | \membersection{wxStyledTextCtrl::SetSTCFocus}\label{wxstyledtextctrlsetstcfocus} | |
2619 | ||
2620 | \func{void}{SetSTCFocus}{\param{bool }{focus}} | |
2621 | ||
2622 | Change internal focus flag. | |
2623 | ||
2624 | ||
2625 | \membersection{wxStyledTextCtrl::SetSavePoint}\label{wxstyledtextctrlsetsavepoint} | |
2626 | ||
2627 | \func{void}{SetSavePoint}{\void} | |
2628 | ||
2629 | Remember the current position in the undo history as the position | |
2630 | at which the document was saved. | |
2631 | ||
2632 | ||
2633 | \membersection{wxStyledTextCtrl::SetScrollWidth}\label{wxstyledtextctrlsetscrollwidth} | |
2634 | ||
2635 | \func{void}{SetScrollWidth}{\param{int }{pixelWidth}} | |
2636 | ||
2637 | Sets the document width assumed for scrolling. | |
2638 | ||
2639 | ||
2640 | \membersection{wxStyledTextCtrl::SetSearchFlags}\label{wxstyledtextctrlsetsearchflags} | |
2641 | ||
2642 | \func{void}{SetSearchFlags}{\param{int }{flags}} | |
2643 | ||
2644 | Set the search flags used by SearchInTarget. | |
2645 | ||
2646 | ||
2647 | \membersection{wxStyledTextCtrl::SetSelAlpha}\label{wxstyledtextctrlsetselalpha} | |
2648 | ||
2649 | \func{void}{SetSelAlpha}{\param{int }{alpha}} | |
2650 | ||
2651 | Set the alpha of the selection. | |
2652 | ||
2653 | ||
2654 | \membersection{wxStyledTextCtrl::SetSelBackground}\label{wxstyledtextctrlsetselbackground} | |
2655 | ||
2656 | \func{void}{SetSelBackground}{\param{bool }{useSetting}, \param{const wxColour\& }{back}} | |
2657 | ||
2658 | Set the background colour of the selection and whether to use this setting. | |
2659 | ||
2660 | ||
2661 | \membersection{wxStyledTextCtrl::SetSelForeground}\label{wxstyledtextctrlsetselforeground} | |
2662 | ||
2663 | \func{void}{SetSelForeground}{\param{bool }{useSetting}, \param{const wxColour\& }{fore}} | |
2664 | ||
2665 | Set the foreground colour of the selection and whether to use this setting. | |
2666 | ||
2667 | ||
2668 | \membersection{wxStyledTextCtrl::SetSelection}\label{wxstyledtextctrlsetselection} | |
2669 | ||
2670 | \func{void}{SetSelection}{\param{int }{start}, \param{int }{end}} | |
2671 | ||
2672 | Select a range of text. | |
2673 | ||
2674 | ||
2675 | \membersection{wxStyledTextCtrl::SetSelectionEnd}\label{wxstyledtextctrlsetselectionend} | |
2676 | ||
2677 | \func{void}{SetSelectionEnd}{\param{int }{pos}} | |
2678 | ||
2679 | Sets the position that ends the selection - this becomes the currentPosition. | |
2680 | ||
2681 | ||
2682 | \membersection{wxStyledTextCtrl::SetSelectionMode}\label{wxstyledtextctrlsetselectionmode} | |
2683 | ||
2684 | \func{void}{SetSelectionMode}{\param{int }{mode}} | |
2685 | ||
2686 | Set the selection mode to stream (SC\_SEL\_STREAM) or rectangular (SC\_SEL\_RECTANGLE) or | |
2687 | by lines (SC\_SEL\_LINES). | |
2688 | ||
2689 | ||
2690 | \membersection{wxStyledTextCtrl::SetSelectionStart}\label{wxstyledtextctrlsetselectionstart} | |
2691 | ||
2692 | \func{void}{SetSelectionStart}{\param{int }{pos}} | |
2693 | ||
2694 | Sets the position that starts the selection - this becomes the anchor. | |
2695 | ||
2696 | ||
2697 | \membersection{wxStyledTextCtrl::SetStatus}\label{wxstyledtextctrlsetstatus} | |
2698 | ||
2699 | \func{void}{SetStatus}{\param{int }{statusCode}} | |
2700 | ||
2701 | Change error status - 0 = OK. | |
2702 | ||
2703 | ||
2704 | \membersection{wxStyledTextCtrl::SetStyleBits}\label{wxstyledtextctrlsetstylebits} | |
2705 | ||
2706 | \func{void}{SetStyleBits}{\param{int }{bits}} | |
2707 | ||
2708 | Divide each styling byte into lexical class bits (default: 5) and indicator | |
2709 | bits (default: 3). If a lexer requires more than 32 lexical states, then this | |
2710 | is used to expand the possible states. | |
2711 | ||
2712 | ||
2713 | \membersection{wxStyledTextCtrl::SetStyleBytes}\label{wxstyledtextctrlsetstylebytes} | |
2714 | ||
2715 | \func{void}{SetStyleBytes}{\param{int }{length}, \param{char* }{styleBytes}} | |
2716 | ||
2717 | Set the styles for a segment of the document. | |
2718 | ||
2719 | ||
2720 | \membersection{wxStyledTextCtrl::SetStyling}\label{wxstyledtextctrlsetstyling} | |
2721 | ||
2722 | \func{void}{SetStyling}{\param{int }{length}, \param{int }{style}} | |
2723 | ||
2724 | Change style from current styling position for length characters to a style | |
2725 | and move the current styling position to after this newly styled segment. | |
2726 | ||
2727 | ||
2728 | \membersection{wxStyledTextCtrl::SetTabIndents}\label{wxstyledtextctrlsettabindents} | |
2729 | ||
2730 | \func{void}{SetTabIndents}{\param{bool }{tabIndents}} | |
2731 | ||
2732 | Sets whether a tab pressed when caret is within indentation indents. | |
2733 | ||
2734 | ||
2735 | \membersection{wxStyledTextCtrl::SetTabWidth}\label{wxstyledtextctrlsettabwidth} | |
2736 | ||
2737 | \func{void}{SetTabWidth}{\param{int }{tabWidth}} | |
2738 | ||
2739 | Change the visible size of a tab to be a multiple of the width of a space character. | |
2740 | ||
2741 | ||
2742 | \membersection{wxStyledTextCtrl::SetTargetEnd}\label{wxstyledtextctrlsettargetend} | |
2743 | ||
2744 | \func{void}{SetTargetEnd}{\param{int }{pos}} | |
2745 | ||
2746 | Sets the position that ends the target which is used for updating the | |
2747 | document without affecting the scroll position. | |
2748 | ||
2749 | ||
2750 | \membersection{wxStyledTextCtrl::SetTargetStart}\label{wxstyledtextctrlsettargetstart} | |
2751 | ||
2752 | \func{void}{SetTargetStart}{\param{int }{pos}} | |
2753 | ||
2754 | Sets the position that starts the target which is used for updating the | |
2755 | document without affecting the scroll position. | |
2756 | ||
2757 | ||
2758 | \membersection{wxStyledTextCtrl::SetText}\label{wxstyledtextctrlsettext} | |
2759 | ||
2760 | \func{void}{SetText}{\param{const wxString\& }{text}} | |
2761 | ||
2762 | Replace the contents of the document with the argument text. | |
2763 | ||
2764 | ||
2765 | \membersection{wxStyledTextCtrl::SetTextRaw}\label{wxstyledtextctrlsettextraw} | |
2766 | ||
2767 | \func{void}{SetTextRaw}{\param{const char* }{text}} | |
2768 | ||
2769 | Replace the contents of the document with the argument text. | |
2770 | ||
2771 | ||
2772 | \membersection{wxStyledTextCtrl::SetTwoPhaseDraw}\label{wxstyledtextctrlsettwophasedraw} | |
2773 | ||
2774 | \func{void}{SetTwoPhaseDraw}{\param{bool }{twoPhase}} | |
2775 | ||
2776 | In twoPhaseDraw mode, drawing is performed in two phases, first the background | |
2777 | and then the foreground. This avoids chopping off characters that overlap the next run. | |
2778 | ||
2779 | ||
2780 | \membersection{wxStyledTextCtrl::SetUndoCollection}\label{wxstyledtextctrlsetundocollection} | |
2781 | ||
2782 | \func{void}{SetUndoCollection}{\param{bool }{collectUndo}} | |
2783 | ||
2784 | Choose between collecting actions into the undo | |
2785 | history and discarding them. | |
2786 | ||
2787 | ||
2788 | \membersection{wxStyledTextCtrl::SetUseAntiAliasing}\label{wxstyledtextctrlsetuseantialiasing} | |
2789 | ||
2790 | \func{void}{SetUseAntiAliasing}{\param{bool }{useAA}} | |
2791 | ||
2792 | Specify whether anti-aliased fonts should be used. Will have no effect | |
2793 | on some platforms, but on some (wxMac for example) can greatly improve | |
2794 | performance. | |
2795 | ||
2796 | ||
2797 | \membersection{wxStyledTextCtrl::SetUseHorizontalScrollBar}\label{wxstyledtextctrlsetusehorizontalscrollbar} | |
2798 | ||
2799 | \func{void}{SetUseHorizontalScrollBar}{\param{bool }{show}} | |
2800 | ||
2801 | Show or hide the horizontal scroll bar. | |
2802 | ||
2803 | ||
2804 | \membersection{wxStyledTextCtrl::SetUseTabs}\label{wxstyledtextctrlsetusetabs} | |
2805 | ||
2806 | \func{void}{SetUseTabs}{\param{bool }{useTabs}} | |
2807 | ||
2808 | Indentation will only use space characters if useTabs is false, otherwise | |
2809 | it will use a combination of tabs and spaces. | |
2810 | ||
2811 | ||
2812 | \membersection{wxStyledTextCtrl::SetUseVerticalScrollBar}\label{wxstyledtextctrlsetuseverticalscrollbar} | |
2813 | ||
2814 | \func{void}{SetUseVerticalScrollBar}{\param{bool }{show}} | |
2815 | ||
2816 | Show or hide the vertical scroll bar. | |
2817 | ||
2818 | ||
2819 | \membersection{wxStyledTextCtrl::SetVScrollBar}\label{wxstyledtextctrlsetvscrollbar} | |
2820 | ||
2821 | \func{void}{SetVScrollBar}{\param{wxScrollBar* }{bar}} | |
2822 | ||
2823 | Set the vertical scrollbar to use instead of the ont that's built-in. | |
2824 | ||
2825 | ||
2826 | \membersection{wxStyledTextCtrl::SetViewEOL}\label{wxstyledtextctrlsetvieweol} | |
2827 | ||
2828 | \func{void}{SetViewEOL}{\param{bool }{visible}} | |
2829 | ||
2830 | Make the end of line characters visible or invisible. | |
2831 | ||
2832 | ||
2833 | \membersection{wxStyledTextCtrl::SetViewWhiteSpace}\label{wxstyledtextctrlsetviewwhitespace} | |
2834 | ||
2835 | \func{void}{SetViewWhiteSpace}{\param{int }{viewWS}} | |
2836 | ||
2837 | Make white space characters invisible, always visible or visible outside indentation. | |
2838 | ||
2839 | ||
2840 | \membersection{wxStyledTextCtrl::SetVisiblePolicy}\label{wxstyledtextctrlsetvisiblepolicy} | |
2841 | ||
2842 | \func{void}{SetVisiblePolicy}{\param{int }{visiblePolicy}, \param{int }{visibleSlop}} | |
2843 | ||
2844 | Set the way the display area is determined when a particular line | |
2845 | is to be moved to by Find, FindNext, GotoLine, etc. | |
2846 | ||
2847 | ||
2848 | \membersection{wxStyledTextCtrl::SetWhitespaceBackground}\label{wxstyledtextctrlsetwhitespacebackground} | |
2849 | ||
2850 | \func{void}{SetWhitespaceBackground}{\param{bool }{useSetting}, \param{const wxColour\& }{back}} | |
2851 | ||
2852 | Set the background colour of all whitespace and whether to use this setting. | |
2853 | ||
2854 | ||
2855 | \membersection{wxStyledTextCtrl::SetWhitespaceChars}\label{wxstyledtextctrlsetwhitespacechars} | |
2856 | ||
2857 | \func{void}{SetWhitespaceChars}{\param{const wxString\& }{characters}} | |
2858 | ||
2859 | Set the set of characters making up whitespace for when moving or selecting by word. | |
2860 | Should be called after SetWordChars. | |
2861 | ||
2862 | ||
2863 | \membersection{wxStyledTextCtrl::SetWhitespaceForeground}\label{wxstyledtextctrlsetwhitespaceforeground} | |
2864 | ||
2865 | \func{void}{SetWhitespaceForeground}{\param{bool }{useSetting}, \param{const wxColour\& }{fore}} | |
2866 | ||
2867 | Set the foreground colour of all whitespace and whether to use this setting. | |
2868 | ||
2869 | ||
2870 | \membersection{wxStyledTextCtrl::SetWordChars}\label{wxstyledtextctrlsetwordchars} | |
2871 | ||
2872 | \func{void}{SetWordChars}{\param{const wxString\& }{characters}} | |
2873 | ||
2874 | Set the set of characters making up words for when moving or selecting by word. | |
2875 | First sets deaults like SetCharsDefault. | |
2876 | ||
2877 | ||
2878 | \membersection{wxStyledTextCtrl::SetWrapMode}\label{wxstyledtextctrlsetwrapmode} | |
2879 | ||
2880 | \func{void}{SetWrapMode}{\param{int }{mode}} | |
2881 | ||
2882 | Sets whether text is word wrapped. | |
2883 | ||
2884 | ||
2885 | \membersection{wxStyledTextCtrl::SetWrapStartIndent}\label{wxstyledtextctrlsetwrapstartindent} | |
2886 | ||
2887 | \func{void}{SetWrapStartIndent}{\param{int }{indent}} | |
2888 | ||
2889 | Set the start indent for wrapped lines. | |
2890 | ||
2891 | ||
2892 | \membersection{wxStyledTextCtrl::SetWrapVisualFlags}\label{wxstyledtextctrlsetwrapvisualflags} | |
2893 | ||
2894 | \func{void}{SetWrapVisualFlags}{\param{int }{wrapVisualFlags}} | |
2895 | ||
2896 | Set the display mode of visual flags for wrapped lines. | |
2897 | ||
2898 | ||
2899 | \membersection{wxStyledTextCtrl::SetWrapVisualFlagsLocation}\label{wxstyledtextctrlsetwrapvisualflagslocation} | |
2900 | ||
2901 | \func{void}{SetWrapVisualFlagsLocation}{\param{int }{wrapVisualFlagsLocation}} | |
2902 | ||
2903 | Set the location of visual flags for wrapped lines. | |
2904 | ||
2905 | ||
2906 | \membersection{wxStyledTextCtrl::SetXCaretPolicy}\label{wxstyledtextctrlsetxcaretpolicy} | |
2907 | ||
2908 | \func{void}{SetXCaretPolicy}{\param{int }{caretPolicy}, \param{int }{caretSlop}} | |
2909 | ||
2910 | Set the way the caret is kept visible when going sideway. | |
2911 | The exclusion zone is given in pixels. | |
2912 | ||
2913 | ||
2914 | \membersection{wxStyledTextCtrl::SetXOffset}\label{wxstyledtextctrlsetxoffset} | |
2915 | ||
2916 | \func{void}{SetXOffset}{\param{int }{newOffset}} | |
2917 | ||
2918 | Get and Set the xOffset (ie, horizonal scroll position). | |
2919 | ||
2920 | ||
2921 | \membersection{wxStyledTextCtrl::SetYCaretPolicy}\label{wxstyledtextctrlsetycaretpolicy} | |
2922 | ||
2923 | \func{void}{SetYCaretPolicy}{\param{int }{caretPolicy}, \param{int }{caretSlop}} | |
2924 | ||
2925 | Set the way the line the caret is on is kept visible. | |
2926 | The exclusion zone is given in lines. | |
2927 | ||
2928 | ||
2929 | \membersection{wxStyledTextCtrl::SetZoom}\label{wxstyledtextctrlsetzoom} | |
2930 | ||
2931 | \func{void}{SetZoom}{\param{int }{zoom}} | |
2932 | ||
2933 | Set the zoom level. This number of points is added to the size of all fonts. | |
2934 | It may be positive to magnify or negative to reduce. | |
2935 | ||
2936 | ||
2937 | \membersection{wxStyledTextCtrl::ShowLines}\label{wxstyledtextctrlshowlines} | |
2938 | ||
2939 | \func{void}{ShowLines}{\param{int }{lineStart}, \param{int }{lineEnd}} | |
2940 | ||
2941 | Make a range of lines visible. | |
2942 | ||
2943 | ||
2944 | \membersection{wxStyledTextCtrl::StartRecord}\label{wxstyledtextctrlstartrecord} | |
2945 | ||
2946 | \func{void}{StartRecord}{\void} | |
2947 | ||
2948 | Start notifying the container of all key presses and commands. | |
2949 | ||
2950 | ||
2951 | \membersection{wxStyledTextCtrl::StartStyling}\label{wxstyledtextctrlstartstyling} | |
2952 | ||
2953 | \func{void}{StartStyling}{\param{int }{pos}, \param{int }{mask}} | |
2954 | ||
2955 | Set the current styling position to pos and the styling mask to mask. | |
2956 | The styling mask can be used to protect some bits in each styling byte from modification. | |
2957 | ||
2958 | ||
2959 | \membersection{wxStyledTextCtrl::StopRecord}\label{wxstyledtextctrlstoprecord} | |
2960 | ||
2961 | \func{void}{StopRecord}{\void} | |
2962 | ||
2963 | Stop notifying the container of all key presses and commands. | |
2964 | ||
2965 | ||
2966 | \membersection{wxStyledTextCtrl::StutteredPageDown}\label{wxstyledtextctrlstutteredpagedown} | |
2967 | ||
2968 | \func{void}{StutteredPageDown}{\void} | |
2969 | ||
2970 | Move caret to bottom of page, or one page down if already at bottom of page. | |
2971 | ||
2972 | ||
2973 | \membersection{wxStyledTextCtrl::StutteredPageDownExtend}\label{wxstyledtextctrlstutteredpagedownextend} | |
2974 | ||
2975 | \func{void}{StutteredPageDownExtend}{\void} | |
2976 | ||
2977 | Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
2978 | ||
2979 | ||
2980 | \membersection{wxStyledTextCtrl::StutteredPageUp}\label{wxstyledtextctrlstutteredpageup} | |
2981 | ||
2982 | \func{void}{StutteredPageUp}{\void} | |
2983 | ||
2984 | Move caret to top of page, or one page up if already at top of page. | |
2985 | ||
2986 | ||
2987 | \membersection{wxStyledTextCtrl::StutteredPageUpExtend}\label{wxstyledtextctrlstutteredpageupextend} | |
2988 | ||
2989 | \func{void}{StutteredPageUpExtend}{\void} | |
2990 | ||
2991 | Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
2992 | ||
2993 | ||
2994 | \membersection{wxStyledTextCtrl::StyleClearAll}\label{wxstyledtextctrlstyleclearall} | |
2995 | ||
2996 | \func{void}{StyleClearAll}{\void} | |
2997 | ||
2998 | Clear all the styles and make equivalent to the global default style. | |
2999 | ||
3000 | ||
3001 | \membersection{wxStyledTextCtrl::StyleResetDefault}\label{wxstyledtextctrlstyleresetdefault} | |
3002 | ||
3003 | \func{void}{StyleResetDefault}{\void} | |
3004 | ||
3005 | Reset the default style to its state at startup | |
3006 | ||
3007 | ||
3008 | \membersection{wxStyledTextCtrl::StyleSetBackground}\label{wxstyledtextctrlstylesetbackground} | |
3009 | ||
3010 | \func{void}{StyleSetBackground}{\param{int }{style}, \param{const wxColour\& }{back}} | |
3011 | ||
3012 | Set the background colour of a style. | |
3013 | ||
3014 | ||
3015 | \membersection{wxStyledTextCtrl::StyleSetBold}\label{wxstyledtextctrlstylesetbold} | |
3016 | ||
3017 | \func{void}{StyleSetBold}{\param{int }{style}, \param{bool }{bold}} | |
3018 | ||
3019 | Set a style to be bold or not. | |
3020 | ||
3021 | ||
3022 | \membersection{wxStyledTextCtrl::StyleSetCase}\label{wxstyledtextctrlstylesetcase} | |
3023 | ||
3024 | \func{void}{StyleSetCase}{\param{int }{style}, \param{int }{caseForce}} | |
3025 | ||
3026 | Set a style to be mixed case, or to force upper or lower case. | |
3027 | ||
3028 | ||
3029 | \membersection{wxStyledTextCtrl::StyleSetChangeable}\label{wxstyledtextctrlstylesetchangeable} | |
3030 | ||
3031 | \func{void}{StyleSetChangeable}{\param{int }{style}, \param{bool }{changeable}} | |
3032 | ||
3033 | Set a style to be changeable or not (read only). | |
3034 | Experimental feature, currently buggy. | |
3035 | ||
3036 | ||
3037 | \membersection{wxStyledTextCtrl::StyleSetCharacterSet}\label{wxstyledtextctrlstylesetcharacterset} | |
3038 | ||
3039 | \func{void}{StyleSetCharacterSet}{\param{int }{style}, \param{int }{characterSet}} | |
3040 | ||
3041 | Set the character set of the font in a style. Converts the Scintilla | |
3042 | character set values to a wxFontEncoding. | |
3043 | ||
3044 | ||
3045 | \membersection{wxStyledTextCtrl::StyleSetEOLFilled}\label{wxstyledtextctrlstyleseteolfilled} | |
3046 | ||
3047 | \func{void}{StyleSetEOLFilled}{\param{int }{style}, \param{bool }{filled}} | |
3048 | ||
3049 | Set a style to have its end of line filled or not. | |
3050 | ||
3051 | ||
3052 | \membersection{wxStyledTextCtrl::StyleSetFaceName}\label{wxstyledtextctrlstylesetfacename} | |
3053 | ||
3054 | \func{void}{StyleSetFaceName}{\param{int }{style}, \param{const wxString\& }{fontName}} | |
3055 | ||
3056 | Set the font of a style. | |
3057 | ||
3058 | ||
3059 | \membersection{wxStyledTextCtrl::StyleSetFont}\label{wxstyledtextctrlstylesetfont} | |
3060 | ||
3061 | \func{void}{StyleSetFont}{\param{int }{styleNum}, \param{wxFont\& }{font}} | |
3062 | ||
3063 | Set style size, face, bold, italic, and underline attributes from | |
3064 | a wxFont's attributes. | |
3065 | ||
3066 | ||
3067 | \membersection{wxStyledTextCtrl::StyleSetFontAttr}\label{wxstyledtextctrlstylesetfontattr} | |
3068 | ||
3069 | \func{void}{StyleSetFontAttr}{\param{int }{styleNum}, \param{int }{size}, \param{const wxString\& }{faceName}, \param{bool }{bold}, \param{bool }{italic}, \param{bool }{underline}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}} | |
3070 | ||
3071 | Set all font style attributes at once. | |
3072 | ||
3073 | ||
3074 | \membersection{wxStyledTextCtrl::StyleSetFontEncoding}\label{wxstyledtextctrlstylesetfontencoding} | |
3075 | ||
3076 | \func{void}{StyleSetFontEncoding}{\param{int }{style}, \param{wxFontEncoding }{encoding}} | |
3077 | ||
3078 | Set the font encoding to be used by a style. | |
3079 | ||
3080 | ||
3081 | \membersection{wxStyledTextCtrl::StyleSetForeground}\label{wxstyledtextctrlstylesetforeground} | |
3082 | ||
3083 | \func{void}{StyleSetForeground}{\param{int }{style}, \param{const wxColour\& }{fore}} | |
3084 | ||
3085 | Set the foreground colour of a style. | |
3086 | ||
3087 | ||
3088 | \membersection{wxStyledTextCtrl::StyleSetHotSpot}\label{wxstyledtextctrlstylesethotspot} | |
3089 | ||
3090 | \func{void}{StyleSetHotSpot}{\param{int }{style}, \param{bool }{hotspot}} | |
3091 | ||
3092 | Set a style to be a hotspot or not. | |
3093 | ||
3094 | ||
3095 | \membersection{wxStyledTextCtrl::StyleSetItalic}\label{wxstyledtextctrlstylesetitalic} | |
3096 | ||
3097 | \func{void}{StyleSetItalic}{\param{int }{style}, \param{bool }{italic}} | |
3098 | ||
3099 | Set a style to be italic or not. | |
3100 | ||
3101 | ||
3102 | \membersection{wxStyledTextCtrl::StyleSetSize}\label{wxstyledtextctrlstylesetsize} | |
3103 | ||
3104 | \func{void}{StyleSetSize}{\param{int }{style}, \param{int }{sizePoints}} | |
3105 | ||
3106 | Set the size of characters of a style. | |
3107 | ||
3108 | ||
3109 | \membersection{wxStyledTextCtrl::StyleSetSpec}\label{wxstyledtextctrlstylesetspec} | |
3110 | ||
3111 | \func{void}{StyleSetSpec}{\param{int }{styleNum}, \param{const wxString\& }{spec}} | |
3112 | ||
3113 | Extract style settings from a spec-string which is composed of one or | |
3114 | more of the following comma separated elements: | |
3115 | bold turns on bold | |
3116 | italic turns on italics | |
3117 | fore:[name or \#RRGGBB] sets the foreground colour | |
3118 | back:[name or \#RRGGBB] sets the background colour | |
3119 | face:[facename] sets the font face name to use | |
3120 | size:[num] sets the font size in points | |
3121 | eol turns on eol filling | |
3122 | underline turns on underlining | |
3123 | ||
3124 | ||
3125 | \membersection{wxStyledTextCtrl::StyleSetUnderline}\label{wxstyledtextctrlstylesetunderline} | |
3126 | ||
3127 | \func{void}{StyleSetUnderline}{\param{int }{style}, \param{bool }{underline}} | |
3128 | ||
3129 | Set a style to be underlined or not. | |
3130 | ||
3131 | ||
3132 | \membersection{wxStyledTextCtrl::StyleSetVisible}\label{wxstyledtextctrlstylesetvisible} | |
3133 | ||
3134 | \func{void}{StyleSetVisible}{\param{int }{style}, \param{bool }{visible}} | |
3135 | ||
3136 | Set a style to be visible or not. | |
3137 | ||
3138 | ||
3139 | \membersection{wxStyledTextCtrl::Tab}\label{wxstyledtextctrltab} | |
3140 | ||
3141 | \func{void}{Tab}{\void} | |
3142 | ||
3143 | If selection is empty or all on one line replace the selection with a tab character. | |
3144 | If more than one line selected, indent the lines. | |
3145 | ||
3146 | ||
3147 | \membersection{wxStyledTextCtrl::TargetFromSelection}\label{wxstyledtextctrltargetfromselection} | |
3148 | ||
3149 | \func{void}{TargetFromSelection}{\void} | |
3150 | ||
3151 | Make the target range start and end be the same as the selection range start and end. | |
3152 | ||
3153 | ||
3154 | \membersection{wxStyledTextCtrl::TextHeight}\label{wxstyledtextctrltextheight} | |
3155 | ||
3156 | \func{int}{TextHeight}{\param{int }{line}} | |
3157 | ||
3158 | Retrieve the height of a particular line of text in pixels. | |
3159 | ||
3160 | ||
3161 | \membersection{wxStyledTextCtrl::TextWidth}\label{wxstyledtextctrltextwidth} | |
3162 | ||
3163 | \func{int}{TextWidth}{\param{int }{style}, \param{const wxString\& }{text}} | |
3164 | ||
3165 | Measure the pixel width of some text in a particular style. | |
3166 | NUL terminated text argument. | |
3167 | Does not handle tab or control characters. | |
3168 | ||
3169 | ||
3170 | \membersection{wxStyledTextCtrl::ToggleCaretSticky}\label{wxstyledtextctrltogglecaretsticky} | |
3171 | ||
3172 | \func{void}{ToggleCaretSticky}{\void} | |
3173 | ||
3174 | Switch between sticky and non-sticky: meant to be bound to a key. | |
3175 | ||
3176 | ||
3177 | \membersection{wxStyledTextCtrl::ToggleFold}\label{wxstyledtextctrltogglefold} | |
3178 | ||
3179 | \func{void}{ToggleFold}{\param{int }{line}} | |
3180 | ||
3181 | Switch a header line between expanded and contracted. | |
3182 | ||
3183 | ||
3184 | \membersection{wxStyledTextCtrl::Undo}\label{wxstyledtextctrlundo} | |
3185 | ||
3186 | \func{void}{Undo}{\void} | |
3187 | ||
3188 | Undo one action in the undo history. | |
3189 | ||
3190 | ||
3191 | \membersection{wxStyledTextCtrl::UpperCase}\label{wxstyledtextctrluppercase} | |
3192 | ||
3193 | \func{void}{UpperCase}{\void} | |
3194 | ||
3195 | Transform the selection to upper case. | |
3196 | ||
3197 | ||
3198 | \membersection{wxStyledTextCtrl::UsePopUp}\label{wxstyledtextctrlusepopup} | |
3199 | ||
3200 | \func{void}{UsePopUp}{\param{bool }{allowPopUp}} | |
3201 | ||
3202 | Set whether a pop up menu is displayed automatically when the user presses | |
3203 | the wrong mouse button. | |
3204 | ||
3205 | ||
3206 | \membersection{wxStyledTextCtrl::UserListShow}\label{wxstyledtextctrluserlistshow} | |
3207 | ||
3208 | \func{void}{UserListShow}{\param{int }{listType}, \param{const wxString\& }{itemList}} | |
3209 | ||
3210 | Display a list of strings and send notification when user chooses one. | |
3211 | ||
3212 | ||
3213 | \membersection{wxStyledTextCtrl::VCHome}\label{wxstyledtextctrlvchome} | |
3214 | ||
3215 | \func{void}{VCHome}{\void} | |
3216 | ||
3217 | Move caret to before first visible character on line. | |
3218 | If already there move to first character on line. | |
3219 | ||
3220 | ||
3221 | \membersection{wxStyledTextCtrl::VCHomeExtend}\label{wxstyledtextctrlvchomeextend} | |
3222 | ||
3223 | \func{void}{VCHomeExtend}{\void} | |
3224 | ||
3225 | Like VCHome but extending selection to new caret position. | |
3226 | ||
3227 | ||
3228 | \membersection{wxStyledTextCtrl::VCHomeRectExtend}\label{wxstyledtextctrlvchomerectextend} | |
3229 | ||
3230 | \func{void}{VCHomeRectExtend}{\void} | |
3231 | ||
3232 | Move caret to before first visible character on line. | |
3233 | If already there move to first character on line. | |
3234 | In either case, extend rectangular selection to new caret position. | |
3235 | ||
3236 | ||
3237 | \membersection{wxStyledTextCtrl::VCHomeWrap}\label{wxstyledtextctrlvchomewrap} | |
3238 | ||
3239 | \func{void}{VCHomeWrap}{\void} | |
3240 | ||
3241 | ||
3242 | \membersection{wxStyledTextCtrl::VCHomeWrapExtend}\label{wxstyledtextctrlvchomewrapextend} | |
3243 | ||
3244 | \func{void}{VCHomeWrapExtend}{\void} | |
3245 | ||
3246 | ||
3247 | \membersection{wxStyledTextCtrl::VisibleFromDocLine}\label{wxstyledtextctrlvisiblefromdocline} | |
3248 | ||
3249 | \func{int}{VisibleFromDocLine}{\param{int }{line}} | |
3250 | ||
3251 | Find the display line of a document line taking hidden lines into account. | |
3252 | ||
3253 | ||
3254 | \membersection{wxStyledTextCtrl::WordEndPosition}\label{wxstyledtextctrlwordendposition} | |
3255 | ||
3256 | \func{int}{WordEndPosition}{\param{int }{pos}, \param{bool }{onlyWordCharacters}} | |
3257 | ||
3258 | Get position of end of word. | |
3259 | ||
3260 | ||
3261 | \membersection{wxStyledTextCtrl::WordLeft}\label{wxstyledtextctrlwordleft} | |
3262 | ||
3263 | \func{void}{WordLeft}{\void} | |
3264 | ||
3265 | Move caret left one word. | |
3266 | ||
3267 | ||
3268 | \membersection{wxStyledTextCtrl::WordLeftEnd}\label{wxstyledtextctrlwordleftend} | |
3269 | ||
3270 | \func{void}{WordLeftEnd}{\void} | |
3271 | ||
3272 | Move caret left one word, position cursor at end of word. | |
3273 | ||
3274 | ||
3275 | \membersection{wxStyledTextCtrl::WordLeftEndExtend}\label{wxstyledtextctrlwordleftendextend} | |
3276 | ||
3277 | \func{void}{WordLeftEndExtend}{\void} | |
3278 | ||
3279 | Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
3280 | ||
3281 | ||
3282 | \membersection{wxStyledTextCtrl::WordLeftExtend}\label{wxstyledtextctrlwordleftextend} | |
3283 | ||
3284 | \func{void}{WordLeftExtend}{\void} | |
3285 | ||
3286 | Move caret left one word extending selection to new caret position. | |
3287 | ||
3288 | ||
3289 | \membersection{wxStyledTextCtrl::WordPartLeft}\label{wxstyledtextctrlwordpartleft} | |
3290 | ||
3291 | \func{void}{WordPartLeft}{\void} | |
3292 | ||
3293 | Move to the previous change in capitalisation. | |
3294 | ||
3295 | ||
3296 | \membersection{wxStyledTextCtrl::WordPartLeftExtend}\label{wxstyledtextctrlwordpartleftextend} | |
3297 | ||
3298 | \func{void}{WordPartLeftExtend}{\void} | |
3299 | ||
3300 | Move to the previous change in capitalisation extending selection | |
3301 | to new caret position. | |
3302 | ||
3303 | ||
3304 | \membersection{wxStyledTextCtrl::WordPartRight}\label{wxstyledtextctrlwordpartright} | |
3305 | ||
3306 | \func{void}{WordPartRight}{\void} | |
3307 | ||
3308 | Move to the change next in capitalisation. | |
3309 | ||
3310 | ||
3311 | \membersection{wxStyledTextCtrl::WordPartRightExtend}\label{wxstyledtextctrlwordpartrightextend} | |
3312 | ||
3313 | \func{void}{WordPartRightExtend}{\void} | |
3314 | ||
3315 | Move to the next change in capitalisation extending selection | |
3316 | to new caret position. | |
3317 | ||
3318 | ||
3319 | \membersection{wxStyledTextCtrl::WordRight}\label{wxstyledtextctrlwordright} | |
3320 | ||
3321 | \func{void}{WordRight}{\void} | |
3322 | ||
3323 | Move caret right one word. | |
3324 | ||
3325 | ||
3326 | \membersection{wxStyledTextCtrl::WordRightEnd}\label{wxstyledtextctrlwordrightend} | |
3327 | ||
3328 | \func{void}{WordRightEnd}{\void} | |
3329 | ||
3330 | Move caret right one word, position cursor at end of word. | |
3331 | ||
3332 | ||
3333 | \membersection{wxStyledTextCtrl::WordRightEndExtend}\label{wxstyledtextctrlwordrightendextend} | |
3334 | ||
3335 | \func{void}{WordRightEndExtend}{\void} | |
3336 | ||
3337 | Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
3338 | ||
3339 | ||
3340 | \membersection{wxStyledTextCtrl::WordRightExtend}\label{wxstyledtextctrlwordrightextend} | |
3341 | ||
3342 | \func{void}{WordRightExtend}{\void} | |
3343 | ||
3344 | Move caret right one word extending selection to new caret position. | |
3345 | ||
3346 | ||
3347 | \membersection{wxStyledTextCtrl::WordStartPosition}\label{wxstyledtextctrlwordstartposition} | |
3348 | ||
3349 | \func{int}{WordStartPosition}{\param{int }{pos}, \param{bool }{onlyWordCharacters}} | |
3350 | ||
3351 | Get position of start of word. | |
3352 | ||
3353 | ||
3354 | \membersection{wxStyledTextCtrl::WrapCount}\label{wxstyledtextctrlwrapcount} | |
3355 | ||
3356 | \func{int}{WrapCount}{\param{int }{line}} | |
3357 | ||
3358 | The number of display lines needed to wrap a document line | |
3359 | ||
3360 | ||
3361 | \membersection{wxStyledTextCtrl::ZoomIn}\label{wxstyledtextctrlzoomin} | |
3362 | ||
3363 | \func{void}{ZoomIn}{\void} | |
3364 | ||
3365 | Magnify the displayed text by increasing the sizes by 1 point. | |
3366 | ||
3367 | ||
3368 | \membersection{wxStyledTextCtrl::ZoomOut}\label{wxstyledtextctrlzoomout} | |
3369 | ||
3370 | \func{void}{ZoomOut}{\void} | |
3371 | ||
3372 | Make the displayed text smaller by decreasing the sizes by 1 point. | |
3373 |