Re: wxEuphoria wxBitmapButton Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:
> 
> Alternatively, you may add the following code to the end of wxButton.e,
> as it will be appearing in the next release of wxEuphoria:

Sorry, hit send too soon.  The new code will be:
include wxGraphics.e
--/topic wxBitmapButton
--/proc set_bmpbutton( atom button, atom bitmap )
--
--Sets the displayed bitmap of the bitmap button.
global procedure set_bmpbutton( atom button, atom bitmap )
	atom ptr
	ptr = button + sizeof_wxBitmapButton - 8 - 4 * sizeof_wxBitmap
	poke( ptr, peek( bitmap & sizeof_wxBitmap ) )
	refresh_window( button )
end procedure


Matt lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu