Hi all,
I am using the aaTrendControl to access data from our Historian and I need to disable \ restrict access to the file load, file save and server config icons, see below. Anyone done this before or know how to ?
Thanks in advance
Hi all,
I am using the aaTrendControl to access data from our Historian and I need to disable \ restrict access to the file load, file save and server config icons, see below. Anyone done this before or know how to ?
Thanks in advance
I did manage to find the exact solution for you as well!
As mentioned, the trend control includes a lot of trial and error since it contains a VAST number of properties and functions. Most of them undocumented.
And to be honest when I personally need to do something with it, I use autocomplete or the property list, adding some patience and luck ;)
Using the above mentioned method this morning i stumbled upon an interesting function!
.SetToolbarButtonEnabled
Using this you can individually enable or disable buttons in the toolbar!
'This will disable the Open button
aaTrendControl1.SetToolbarButtonEnabled(0,0);
'This will disable the Save button
aaTrendControl1.SetToolbarButtonEnabled(1,0);
'This will disable the Print button
aaTrendControl1.SetToolbarButtonEnabled(2,0);
'This will disable the Copy button
aaTrendControl1.SetToolbarButtonEnabled(3,0);
'This will disable the Servers button
aaTrendControl1.SetToolbarButtonEnabled(4,0);
'.... And so on
So obvious now that we know about it.
So thanks David for asking, now we know it IS possible. And of course we want to do this is in some scenarios!
rickard.norin Heroes HQ, making the impossible, possible!
I did manage to find the exact solution for you as well!
As mentioned, the trend control includes a lot of trial and error since it contains a VAST number of properties and functions. Most of them undocumented.
And to be honest when I personally need to do something with it, I use autocomplete or the property list, adding some patience and luck ;)
Using the above mentioned method this morning i stumbled upon an interesting function!
.SetToolbarButtonEnabled
Using this you can individually enable or disable buttons in the toolbar!
'This will disable the Open button
aaTrendControl1.SetToolbarButtonEnabled(0,0);
'This will disable the Save button
aaTrendControl1.SetToolbarButtonEnabled(1,0);
'This will disable the Print button
aaTrendControl1.SetToolbarButtonEnabled(2,0);
'This will disable the Copy button
aaTrendControl1.SetToolbarButtonEnabled(3,0);
'This will disable the Servers button
aaTrendControl1.SetToolbarButtonEnabled(4,0);
'.... And so on
So obvious now that we know about it.
So thanks David for asking, now we know it IS possible. And of course we want to do this is in some scenarios!
rickard.norin Heroes HQ, making the impossible, possible!
Thanks Richard,
I just couldn't find the anything in the bindings that made sense to me. I thought it would be possible to hide the whole tool bar which would have been ok but not perfect. As you say now I see it it is rather obvious.
Thanks again Richard Köhlerstrand you're a star. I will be able to finish migration of the system now. Will let you know if I have anything else I can't figure out.
Davie