User32Addition
Adds extended image and color handling features to Xojo controls. Currently PushButton, RadioButton, PopupMenu, Window, MenuItem and SegmentedControl.
Last updated
Adds extended image and color handling features to Xojo controls. Currently PushButton, RadioButton, PopupMenu, Window, MenuItem and SegmentedControl.
Last updated
Overview
[mac + win]
Brings the window to the front of the z oder.
Returns the ideal height of a pushbutton, or -1 if it cannot be calculated.
Returns the ideal width of a pushbutton, or -1 if it cannot be calculated.
[mac + win]
Sets the image that appears on the button when it’s in an off state, or nil if there is no such image.
This currently crashes the project under Windows silently when an image or template is assigned second time to a button – because of getting its handle, not because of the declare.
[mac + win]
Sets the offstate and onstate images for a menuitem.
Example: If you have a menuitem mi with a child miChild and want to set off- and onstateimage for miChild:
mi.Images(miChild) = Array(onStateImage, offStateImage)
Makes the window or control a composited (buffered) window to avoid flicker in a non-transparent environment.
You should make a window either compositied or layered, not both.
Makes a window a layered window, redrawing it optionally. Use Layered Windows to avoid flicker in situations where transparencies are rendered.
Makes a rectcontrol or a window transparent by turning every appearance of transparencyColor into transparency with an alpha value between 0 (fully) and 255 (opaque). Sets the window to PopupStyle to allow a fully transparent window without title bar. Makes the Window or control layered too.
Resizes a button to the optimum space to show all content if possible.
[mac + win]
This currently crashes the project under Windows silently when an image or template is assigned second time to a button – because of getting its handle, not because of the declare.
Works for windows on macOS too. Use for controls under macOS.
Identical to , only that here the template representation of the image is being used.