disabling hotkeys and hiding display controls

Nov 6, 2010 at 1:27 AM


using IUIPlugin i added some controls to player, one of the controls is a TextBox, however when i add text to the TextBox and hit space the player toggles between play and pause, how to disable this ?

another issue is adding controls just under the display controls ( at the bottom of the player) , is there any way to get a reference to the player object from a plugin ?

also how to hide the display controls from code ?


Thanks !

Nov 9, 2010 at 9:09 PM

que0x, you can disable the play/pause toggle by setting SMFPlayer.AllowSpaceBarToggle = False.  To hide the controls, set SMFPlayer.IsControlStripVisible =  False.  If you'd like to be able to get a reference to the SMFPlayer from a plugin you'll need to implement a Generic Plugin, it has a SetPlayer(...) method that gets called passing in the reference.  However, you cannot currently implement a UIPlugin and Generic Plugin on the same class.