Search found 738 matches
- Thu Dec 13, 2018 8:47 am
- Forum: HowTos
- Topic: DB Open Connection and Close Connection
- Replies: 1
- Views: 3227
Re: DB Open Connection and Close Connection
<t>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...
- Tue Dec 11, 2018 8:47 am
- Forum: HowTos
- Topic: Trend Line type for stale values
- Replies: 1
- Views: 3580
Re: Trend Line type for stale values
<t>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...
- Fri Dec 07, 2018 2:41 pm
- Forum: HowTos
- Topic: Delete Table Widget
- Replies: 2
- Views: 4109
Re: Delete Table Widget
Use cellWidgetRC and pass an empty string instead of "PushButton"
- Tue Dec 04, 2018 7:02 pm
- Forum: HowTos
- Topic: ctrl++ object transfer via dollar parameter
- Replies: 3
- Views: 4065
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
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
- Fri Nov 30, 2018 5:09 pm
- Forum: Bugs / Problems
- Topic: UI refresh, not frozen
- Replies: 2
- Views: 3694
Re: UI refresh, not frozen
<t>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...
- Wed Nov 28, 2018 1:45 pm
- Forum: Features / Solutions
- Topic: GEDI - Panel Selection Drag Box
- Replies: 1
- Views: 4491
Re: GEDI - Panel Selection Drag Box
<t>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...
- Wed Nov 28, 2018 8:23 am
- Forum: HowTos
- Topic: Read data from SQL Database
- Replies: 2
- Views: 3745
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.
- Wed Nov 21, 2018 8:11 am
- Forum: Bugs / Problems
- Topic: Embedded Module panel accessibility
- Replies: 5
- Views: 6424
Re: Embedded Module panel accessibility
<t>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...
- Wed Nov 14, 2018 6:30 am
- Forum: Features / Solutions
- Topic: Copying and pasting shapes in scripts in GEDI
- Replies: 11
- Views: 14071
Re: Copying and pasting shapes in scripts in GEDI
<t>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).<...
- Tue Nov 13, 2018 8:42 pm
- Forum: Features / Solutions
- Topic: Copying and pasting shapes in scripts in GEDI
- Replies: 11
- Views: 14071
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 <CODE><s>[code]</s><i> </i>main() { int id = moduleAddMenu("Test"); moduleAddAction("addRef", "", "", id, -1, "work"); } work() { addSymbol(myModuleName(), r...