Skip to content

Latest commit

 

History

History
102 lines (47 loc) · 1.96 KB

PyCCmdUI.md

File metadata and controls

102 lines (47 loc) · 1.96 KB

PyCCmdUI

PyCCmdUI Object

A class for manipulating user-interface elements. Encapsulates an MFC CCmdUI

class

Methods

  • Enable

    Enables or disables the user-interface item for this command. 

  • SetCheck

    Sets the check state of the user-interface item for this command. 

  • SetRadio

    Like the SetCheck member function, but operates on radio groups. 

  • SetText

    Sets the text for the user-interface item for this command. 

  • ContinueRouting

    Tells the command-routing mechanism to continue routing the current message down the chain of handlers. 

Properties

PyCCmdUI.ContinueRouting

ContinueRouting() Tells the command-routing mechanism to continue routing the current message down the chain of handlers.

PyCCmdUI.Enable

Enable(bEnable) Enables or disables the user-interface item for this command.

Parameters

  • bEnable=1 : int

    TRUE if the item should be enabled, false otherwise.

PyCCmdUI.SetCheck

SetCheck(state) Sets the check state of the user-interface item for this command.

Parameters

  • state=1 : int

    0 for unchecked, 1 for checked, or 2 for indeterminate.

PyCCmdUI.SetRadio

SetRadio(bOn) Like the SetCheck member function, but operates on radio groups.

Parameters

  • bOn=1 : int

    TRUE if the item should be enabled, false otherwise.

PyCCmdUI.SetText

SetText(text) Sets the text for the user-interface item for this command.

Parameters

  • text : string

    The text for the interface element.