PictureButton REALbasic Plugin

PictureButton Control

PictureButton control for REALbasic

  • 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 REALbasic 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.
    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.
    DoubleBufferDoubleBuffers the drawing of the control on Windows systems. (MacOS X and Linux systems are always double buffered by the OS it self)
    HasMenuThis property is to let the button have a menu.
    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.
    MenuThe root menu item of the control. To add menu items then you manipulate this menu item.
    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.

    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 PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • MacOS X Cocoa Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86

    Unsupported Platforms: