This object implements the use of the Scintilla Code Editor
Functions and properties
Property |
read |
write |
description |
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appendtext=text |
|
x |
|
|||||||||||||||||||||
appendnewline |
|
x |
|
|||||||||||||||||||||
autocomplete=<true/false> |
|
x |
when set to false the autocompletion system will be deactivated. Standard is true silex.autocomplete=true |
|||||||||||||||||||||
autocompletelength |
|
x |
sets the number of characteres that have to be entered before the autocomplete list will be shown. Standard is 1 silex.autocompletelength=2 |
|||||||||||||||||||||
button=type<tab>property |
|
x |
|
|||||||||||||||||||||
bind=<datawindow column> |
|
x |
Binds a column to the object. ( the Editor takes position,size and value from the given Column
silex.bind=dw_1.item.description
silex.bind("dw_1.item.description"); |
|||||||||||||||||||||
clear |
|
x |
deletes all the text in the editor silex.clear |
|||||||||||||||||||||
convert_hana |
|
x |
convert marked sql statement to hana syntax |
|||||||||||||||||||||
dwedit |
|
x |
|
|||||||||||||||||||||
filename |
x |
|
filename, which current editing |
|||||||||||||||||||||
gettext |
x |
|
|
|||||||||||||||||||||
getselectedtext |
x |
|
return the selected text. If no text selected, the object return the complete text |
|||||||||||||||||||||
gettextfromline |
x |
|
return text from current line |
|||||||||||||||||||||
getlinecount |
x |
|
return count of lines in the text |
|||||||||||||||||||||
getcurrentpos |
x |
|
return current cursor position |
|||||||||||||||||||||
getlinelength |
x |
|
return length of current line |
|||||||||||||||||||||
getcurrentlinenumber |
x |
|
return the current line number. First line ) 1 |
|||||||||||||||||||||
gotofunction=<function> |
|
x |
search for the global function. If not existing, insert this at end of source code |
|||||||||||||||||||||
hscrollbar=<true/false> |
|
x |
if set to false the horizontal scrollbar will be hidden. Standard is true |
|||||||||||||||||||||
idw |
|
x |
define bind datawindow silex.idw=dw_1 |
|||||||||||||||||||||
inserttext=<text> |
|
x |
|
|||||||||||||||||||||
insertnewline |
|
x |
|
|||||||||||||||||||||
intellisense=<off,level 1-3> |
|
x |
deactivate the intellisense or set to an other level |
|||||||||||||||||||||
ismodified |
x |
|
|
|||||||||||||||||||||
language |
|
x |
|
|||||||||||||||||||||
ownsettings=<yes/no>=<settingdefinition> or allowusersetting |
|
x |
activate to enable changing font and other settings. Changed settings will be saved
|
|||||||||||||||||||||
replaceall=text replaceall=fromvariable=<variable> replaceall=fromcolumn=<dw_x.item.columnname> |
|
x |
Replaces the whole text in the editor |
|||||||||||||||||||||
resize |
|
x |
resizes the object silex.resize |
|||||||||||||||||||||
scrollbars=<true/false> |
|
x |
both scrollbars can be set to visible/invisible |
|||||||||||||||||||||
set2notmodified |
|
x |
set property "text is not modified". property ismodified return failure |
|||||||||||||||||||||
setfocus |
|
x |
sets the focus to the object |
|||||||||||||||||||||
setpos_eol |
|
x |
set cursor to end of line |
|||||||||||||||||||||
setpos=x |
|
x |
set cursor to this position |
|||||||||||||||||||||
setline=x |
|
x |
set cursor to this line (first line = 1) |
|||||||||||||||||||||
start or open |
|
x |
Generates an Scilexer Object in w_beas_edit silex.start |
|||||||||||||||||||||
stop or close |
|
x |
writes back data if necessary and closes the object |
|||||||||||||||||||||
visible=<true/false> |
|
x |
shows or hides the editor |
|||||||||||||||||||||
vscrollbar=<true/false> |
|
x |
if set to false the horizontal scrollbar will be hidden. Standard is true |
|||||||||||||||||||||
x,y,width,max |
x |
x |
coordinate of editor. You must set this only, if you don't bind it to an field. You can set width=max, height=max |
Silex Development System - Info
With the "info" methode you become all information about the linked window (for develope)
silex.info.[methode].property
methode / property |
read |
write |
description |
---|---|---|---|
width |
|
x |
define the width of structure view (all properties from edit window) in percent silex.info.width=50 |
widthtoggle |
|
x |
toggle structure view between 0,30 and 50 % silex.info.widthtoggle |
init |
|
x |
initialice the information system for a edit window. This need a datawindow. You can define this with the parameter silex.init=dw_7 |
doubleclick |
|
x |
execute the doubleclick event on a line from structure view (internal) |
sql |
|
x |
|
hana |
|
x |
convert current marked line to hana style |
retrieve |
|
x |
retrieve all methodes, objects and properties from current window |