PictureButton Xojo Plugin

PictureButton Control

PictureButton control for Xojo

  • Native look and feel on all platforms
  • Works properly with masked images on all platforms.
  • Full Keyboard access works properly
  • Supports menus and submenus.
  • Menus can have images on the menu items.


    Einhugur Picture button shown on MacOS X, Windows XP and
    Ubuntu Linux system. Full Keyboard access is turned on on the
    MacOS system.


    REALbasic bevel button shown on MacOS X, Windows XP and
    Ubuntu Linux system. Full Keyboard access is turned on on
    the MacOS system but not working on the Xojo bevel button.

    RectControl
       PictureButton

    control PictureButton

    Properties

    AcceptFocusThis property is for Mac only where focus is normally not active unless Full Keyboard access is on. Setting this to true activates focus support even if full keyboard access is not turned on in the system.
    AutoWidthThis property is to support components such as the FlowLayout. If set to true then the FlowLayout may resize the button.
    BoldSets the text font to bold.
    ButtonTypeConfigures how the button should behave, normal, sticky, toggle.
    CaptionSets or gets the text on the button.
    CaptionAlignSets the alignment of the text.
    CaptionDeltaXTweaks the position of the text in x direction.
    CaptionDeltaYTweaks the position of the text in y direction.
    CaptionPlacementThis property is to configure how the caption is placed.
    DBBackColorFills background with custom color when in double buffering mode. (MacOS X and Linux systems are always double buffered by the OS it self)
    DebugDataSizeUsed for internal quality control of the plugin.
    DoubleBufferDoubleBuffers the drawing of the control on Windows systems. (MacOS X and Linux systems are always double buffered by the OS it self)
    HasDBBackColorIf set to true then the color defined in the DBBackColor property will be used as background color when in double buffer mode. (MacOS X and Linux systems are always double buffered by the OS it self)
    HasMenuThis property is to let the button have a menu.
    HighResIconSets high resolution icon for Retina mode on Retina displays running on Cocoa
    IconSets icon for the button.
    IconAlignSets the alignment of the icon on the button.
    IconDeltaXTweaks the position of the icon in x direction.
    IconDeltaYTweaks the position of the icon in y direction.
    ItalicSets the text font to italic.
    MacButtonTypeSets style of the button for MacOS X to other MacOS styles. Note the style on Windows and Linux will remain fixed since those systems don't have as many native button styles.
    MaxWidthThis property is to support components such as the FlowLayout. The property defines the maximum width the button may scale to.
    MenuThe root menu item of the control. To add menu items then you manipulate this menu item.
    MinWidthThis property is to support components such as the FlowLayout. The property defines the minimum width the button may scale to.
    TextFontSets the text font
    TextSizeSets the text font size.
    TextUnitSets the unit of the FontSize.
    ToolButtonIf set to true then the button will not get focus on click on platforms where it normally would have gotten the focus when clicked.
    UnderlineSets the text font to underlined.
    ValueIf the button is in Toggle or Sticky mode then this property can read and write the state.

    Methods

    GetOptimalWidthReturns optimal width of the control for the text and settings that have been assigned to it.

    Events

    ActionThe PictureButton has been clicked.
    GotFocusThe button has gotten focus.
    LostFocusThe button has lost the focus.
    MenuActionThis event is fired when a menu item on the button has been clicked.
    MouseDownThe mouse button was pressed inside the PictureButtons region.
    MouseDragThis event is fired when the mouse is dragged with the mouse button down on the control.
    MouseEnterThis event is fired when the mouse enters the controls region.
    MouseExitThis event is fired when the mouse exits the controls region.
    MouseMoveThis event is fired when the mouse is moved over the controls region.
    MouseUpThis event is fired when the mouse button goes up.

    Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM