Re: wxEuphoria wxBitmapButton Question
Matt Lewis wrote:
>
> 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:
> }}}
<eucode>
> 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
> </eucode>
{{{
>
> Matt lewis
>
That seems to be the trick I need. :) Thank you, once again.
So... When do you think the next release will be? ;)
By the way, do you think that it would be better to include the procedure in the
program until the next version of wxEuphoria is released?
Thanks again,
-Mannequin.
|
Not Categorized, Please Help
|
|