Search found 738 matches

Search

by mkoller
Thu Dec 13, 2018 7:47 am
Forum: HowTos
Topic: DB Open Connection and Close Connection
Replies: 1
Views: 744

Re: DB Open Connection and Close Connection

<r>I'd say you don't need to close the connection explicitely since it will be done automatically when the CTRL manager stops the script.<br/> <br/> However if you like to do any other task when the CTRL manager shuts down, then - with 3.16 - you can register a callback<br/> with sysConnect("callbac...
by mkoller
Tue Dec 11, 2018 7:47 am
Forum: HowTos
Topic: Trend Line type for stale values
Replies: 1
Views: 714

Re: Trend Line type for stale values

<r>The TrendCurve reflects the invalid bit being set on the DPEs value, therefore you'll see a changing line type.<br/> First I would make sure that this does not happen, e.g. this DPE always receives value changes with increasing timestamps.<br/> Since this seems not the case here, I have the feeli...
by mkoller
Fri Dec 07, 2018 1:41 pm
Forum: HowTos
Topic: Delete Table Widget
Replies: 2
Views: 772

Re: Delete Table Widget

Use cellWidgetRC and pass an empty string instead of "PushButton"
by mkoller
Tue Dec 04, 2018 6:02 pm
Forum: HowTos
Topic: ctrl++ object transfer via dollar parameter
Replies: 3
Views: 862

Re: ctrl++ object transfer via dollar parameter

You can not pass an object via $-parameter.
However you can call a public function in that Panel Reference, which has any datatype as argument.
So do it in 2 steps:
1) addSymbol()
2) call the public function in the newly added symbol
by mkoller
Fri Nov 30, 2018 4:09 pm
Forum: Bugs / Problems
Topic: UI refresh, not frozen
Replies: 2
Views: 926

Re: UI refresh, not frozen

<r>You are right. When the clock widget (or any other widget) changes, it means the UI is still running the main loop correctly and is not "frozen".<br/> Would the UI for whatever reason not being able to come back to the main loop, e.g. you are using any code which could block doing an operating sy...
by mkoller
Wed Nov 28, 2018 12:45 pm
Forum: Features / Solutions
Topic: GEDI - Panel Selection Drag Box
Replies: 1
Views: 1743

Re: GEDI - Panel Selection Drag Box

<r>no, there isn't.<br/> What you could do as a workaround:<br/> set your background object to invisible and make sure to uncheck the gedi option "Show Invisible Shapes".<br/> Or draw the background object on layer 1 and all others on layers > 1 and hide layer 1.<br/> Or dont' use a background objec...
by mkoller
Wed Nov 28, 2018 7:23 am
Forum: HowTos
Topic: Read data from SQL Database
Replies: 2
Views: 804

Re: Read data from SQL Database

use the CtrlADO CTRL extension, which provides commands to directly read from an external database, e.g. dbOpenConnection(), dbOpenRecordset(), etc.
by mkoller
Wed Nov 21, 2018 7:11 am
Forum: Bugs / Problems
Topic: Embedded Module panel accessibility
Replies: 5
Views: 1389

Re: Embedded Module panel accessibility

<r>it is possible. You can call any public function from any panel, regardless if it's loaded in a Module either embedded or not, even opened in a child panel.<br/> Do it like this:<br/> invokeMethod("embeddedModuleName.PanelNameInside:", "publicFunctionName", argument1, argument2);<br/> <br/> The k...
by mkoller
Wed Nov 14, 2018 5:30 am
Forum: Features / Solutions
Topic: Copying and pasting shapes in scripts in GEDI
Replies: 11
Views: 4828

Re: Copying and pasting shapes in scripts in GEDI

<r>I think it's now time to find out what you really want to achieve.<br/> If you want to just automate some steps within Gedi and do other editing manually, then the gedi extension scripts are the way to go, however currently you can not automate all actions gedi can do (working on that for 3.17).<...
by mkoller
Tue Nov 13, 2018 7:42 pm
Forum: Features / Solutions
Topic: Copying and pasting shapes in scripts in GEDI
Replies: 11
Views: 4828

Re: Copying and pasting shapes in scripts in GEDI

<r>In fact you can also use 3.15 and a gedi extension script, which uses addSymbol() in the callback, e.g.<br/> in scripts/gedi/addRef_ext.ctl<br/> <CODE><s>[code]</s><br/> main()<br/> {<br/> int id = moduleAddMenu("Test");<br/> moduleAddAction("addRef", "", "", id, -1, "work");<br/> }<br/> <br/> wo...