GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
wxBitmapButton(3) Erlang Module Definition wxBitmapButton(3)

wxBitmapButton - Functions for wxBitmapButton class

A bitmap button is a control that contains a bitmap.

Notice that since wxWidgets 2.9.1 bitmap display is supported by the base wxButton class itself and the only tiny advantage of using this class is that it allows specifying the bitmap in its constructor, unlike wxButton. Please see the base class documentation for more information about images support in wxButton.

Styles

This class supports the following styles:

See: wxButton

This class is derived (and can use functions) from: wxButton wxControl wxWindow wxEvtHandler

wxWidgets docs: wxBitmapButton

Event types emitted from this class: command_button_clicked

wxBitmapButton() = wx:wx_object()

new() -> wxBitmapButton()


Default ctor.

new(Parent, Id, Bitmap) -> wxBitmapButton()


Types:

Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()

new(Parent, Id, Bitmap, Options :: [Option]) -> wxBitmapButton()


Types:

Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
Option = {pos, {X :: integer(), Y :: integer()}} | {size, {W :: integer(), H :: integer()}} | {style, integer()} | {validator, wx:wx_object()}

Constructor, creating and showing a button.

Remark: The bitmap parameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functions SetBitmapPressed() (not implemented in wx), wxButton:setBitmapFocus/2, wxButton:setBitmapDisabled/2.

See: create/5, wxValidator (not implemented in wx)

create(This, Parent, Id, Bitmap) -> boolean()


Types:

This = wxBitmapButton()
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()

create(This, Parent, Id, Bitmap, Options :: [Option]) -> boolean()


Types:

This = wxBitmapButton()
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
Option = {pos, {X :: integer(), Y :: integer()}} | {size, {W :: integer(), H :: integer()}} | {style, integer()} | {validator, wx:wx_object()}

Button creation function for two-step creation.

For more details, see new/4.

newCloseButton(Parent, Winid) -> wxBitmapButton()


Types:

Parent = wxWindow:wxWindow()
Winid = integer()

Helper function creating a standard-looking "Close" button.

To get the best results, platform-specific code may need to be used to create a small, title bar-like "Close" button. This function is provided to avoid the need to test for the current platform and creates the button with as native look as possible.

Return: The new button.

Since: 2.9.5

destroy(This :: wxBitmapButton()) -> ok


Destroys the object.

wx 2.1.1 wxWidgets team.

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.