how to set ActiveX invisible
Ältere Kommentare anzeigen
Hello all,
how to set the ActiveX invisible on figure.
the code :
LEDHandle = actxcontrol( 'MWNUMLED.NumLEDCtrl.1', LEDPos );
6 Kommentare
Walter Roberson
am 18 Dez. 2012
Guessing here: possibly
set(LEDHandle, 'Visible', 'off')
Fan Sudi
am 18 Dez. 2012
Walter Roberson
am 18 Dez. 2012
What are displayed for the following:
set(LEDHandle)
methods(LEDHandle)
Fan Sudi
am 18 Dez. 2012
Walter Roberson
am 18 Dez. 2012
possibly
set(LEDHandle, 'Enabled', {'off'})
Fan Sudi
am 18 Dez. 2012
Antworten (2)
Mark Whirdy
am 18 Dez. 2012
Bearbeitet: Mark Whirdy
am 18 Dez. 2012
type
get(LEDHandle)
The link below alludes to an "offcolor" property - does this do anything?
Otherwise if the writer of the object didn't create a visible property/method there's not much can be done, I'd suggest a hokey workaround of creating a gui-panel on top of the object and making it visible/invisible to reveal the object underneath.
1 Kommentar
Walter Roberson
am 18 Dez. 2012
I suspect offcolor refers to it being a LED indicator emulator, with one color for "on" and another color for "off". If there is any kind of frame around the indicator, setting offcolor to the surrounding color would leave the frame visible.
Walter Roberson
am 18 Dez. 2012
0 Stimmen
Perhaps a MATLAB uicontrol('Style', 'radio') or 'checkbox' would meet your needs? You can set the CData property to draw any rectangular shape where the object would go, and that CData will not change with the Value of the control, so when it was time to change the color of the "LED" you would change its CData.
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!