1. wxEuphoria handholding please

Hi

I'm just playing around with some wxeuphoria things, and I was wondering if
there was any way to create a container for a bitmap, so I could put the
container ont a window.

The example bitmap_background paints the background directly onto window, like
this
wxframe
   +- bitmap

what I would like to do is this
wxframe
   +-wxpanel
        +-bitmap

Or is there a bitmap container, that I have missed.

Also is there any way of giving the panel an attributue - sunken, raised, border
etc? Or am I using the wrong component?

Also (sorry) when you load a bitmap (of whatever type) into memory, is what is
in memory compatible with other graphics libraries bitmaps-in-memory (GDI,
Freeimage etc)

Chris



http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/
http://members.aol.com/chriscrylex/EUSQLite/eusql.html

new topic     » topic index » view message » categorize

2. Re: wxEuphoria handholding please

Chris Burch wrote:
> 
> Hi
> 
> I'm just playing around with some wxeuphoria things, and I was wondering if
> there was any way to create a container for a bitmap, so I could put the
> container
> ont a window.
> 
> The example bitmap_background paints the background directly onto window, like
> this
> wxframe
>    +- bitmap
> 
> what I would like to do is this
> wxframe
>    +-wxpanel
>         +-bitmap
> 
> Or is there a bitmap container, that I have missed.
>
> Also is there any way of giving the panel an attributue - sunken, raised,
> border
> etc? Or am I using the wrong component?

You can paint directly to a wxPanel, and yes, you can give a panel styles
using the wxSUNKEN_BORDER, wxRAISED_BORDER window styles.
 
> Also (sorry) when you load a bitmap (of whatever type) into memory, is what
> is in memory compatible with other graphics libraries bitmaps-in-memory (GDI,
> Freeimage etc)

There's an undocumented function in the windows version called 
wxBitmap_GetHBITMAP, which probably does what you want.  Under linux, there's
one called wxBitmap_GetPixmap, which I suspect does something similar.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria handholding please

Matt Lewis wrote:
> 
> Chris Burch wrote:
> > 
> > Hi
> > 
> > I'm just playing around with some wxeuphoria things, and I was wondering if
> > there was any way to create a container for a bitmap, so I could put the
> > container
> > ont a window.
> > 
> > The example bitmap_background paints the background directly onto window,
> > like
> > this
> > wxframe
> >    +- bitmap
> > 
> > what I would like to do is this
> > wxframe
> >    +-wxpanel
> >         +-bitmap
> > 
> > Or is there a bitmap container, that I have missed.
> >
> > Also is there any way of giving the panel an attributue - sunken, raised,
> > border
> > etc? Or am I using the wrong component?
> 
> You can paint directly to a wxPanel, and yes, you can give a panel styles
> using the wxSUNKEN_BORDER, wxRAISED_BORDER window styles.

Ah, not documented. How do you vary the size of a panel within a frame - it
seems the panel defaults to filling the frame at the moment, and how do you alter
the size of the border.

Cheers Matt

Chris


>  
> > Also (sorry) when you load a bitmap (of whatever type) into memory, is what
> > is in memory compatible with other graphics libraries bitmaps-in-memory
> > (GDI,
> > Freeimage etc)
> 
> There's an undocumented function in the windows version called 
> wxBitmap_GetHBITMAP, which probably does what you want.  Under linux, there's
> one called wxBitmap_GetPixmap, which I suspect does something similar.
> 
> Matt Lewis


http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/
http://members.aol.com/chriscrylex/EUSQLite/eusql.html

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria handholding please

Hi

wxStaticBox and wxStaticLine also do not seem to be documented.

Chris

http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/
http://members.aol.com/chriscrylex/EUSQLite/eusql.html

new topic     » goto parent     » topic index » view message » categorize

5. Re: wxEuphoria handholding please

Chris Burch wrote:
> 
> > 
> > You can paint directly to a wxPanel, and yes, you can give a panel styles
> > using the wxSUNKEN_BORDER, wxRAISED_BORDER window styles.
> 
> Ah, not documented. How do you vary the size of a panel within a frame - it
> seems the panel defaults to filling the frame at the moment, and how do you
> alter the size of the border.
> 

If there is only one child of a wxFrame, it will automatically resize itself 
to fill the frame.  I recommend creating a wxPanel to do this, and then you
can use additional wxPanels or wxWindows for things like what you're doing.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu