1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
<HTML>
<head><title>wxCalculateLayoutEvent</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxcalculatelayoutevent"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx37.htm#wxbrushlist"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx39.htm#wxcheckbox"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxCalculateLayoutEvent</H2>
<P>
This event is sent by <A HREF="wx125.htm#wxlayoutalgorithm">wxLayoutAlgorithm</A> to
calculate the amount of the remaining client area that the window should
occupy.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx84.htm#wxevent">wxEvent</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/laywin.h><P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
<TABLE>
<TR><TD VALIGN=TOP>
<B>EVT_CALCULATE_LAYOUT(func)</B>
</TD>
<TD VALIGN=TOP>
Process a wxEVT_CALCULATE_LAYOUT event,
which asks the window to take a 'bite' out of a rectangle provided by the algorithm.
</TD></TR>
</TABLE>
<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx189.htm#wxquerylayoutinfoevent">wxQueryLayoutInfoEvent</A>,
<A HREF="wx198.htm#wxsashlayoutwindow">wxSashLayoutWindow</A>,
<A HREF="wx125.htm#wxlayoutalgorithm">wxLayoutAlgorithm</A>.<P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic74">wxCalculateLayoutEvent::wxCalculateLayoutEvent</A><BR>
<A HREF="#wxcalculatelayouteventgetflags">wxCalculateLayoutEvent::GetFlags</A><BR>
<A HREF="#wxcalculatelayouteventgetrect">wxCalculateLayoutEvent::GetRect</A><BR>
<A HREF="#wxcalculatelayouteventsetflags">wxCalculateLayoutEvent::SetFlags</A><BR>
<A HREF="#wxcalculatelayouteventsetrect">wxCalculateLayoutEvent::SetRect</A><BR>
<P>
<HR>
<A NAME="topic74"></A>
<H3>wxCalculateLayoutEvent::wxCalculateLayoutEvent</H3>
<P>
<B></B> <B>wxCalculateLayoutEvent</B>(<B>wxWindowID </B><I>id = 0</I>)<P>
Constructor.<P>
<HR>
<A NAME="wxcalculatelayouteventgetflags"></A>
<H3>wxCalculateLayoutEvent::GetFlags</H3>
<P>
<B>int</B> <B>GetFlags</B>() <B>const</B><P>
Returns the flags associated with this event. Not currently used.<P>
<HR>
<A NAME="wxcalculatelayouteventgetrect"></A>
<H3>wxCalculateLayoutEvent::GetRect</H3>
<P>
<B>wxRect</B> <B>GetRect</B>() <B>const</B><P>
Before the event handler is entered, returns the remaining parent client area that the window
could occupy. When the event handler returns, this should contain the remaining parent client rectangle,
after the event handler has subtracted the area that its window occupies.<P>
<HR>
<A NAME="wxcalculatelayouteventsetflags"></A>
<H3>wxCalculateLayoutEvent::SetFlags</H3>
<P>
<B>void</B> <B>SetFlags</B>(<B>int </B><I>flags</I>)<P>
Sets the flags associated with this event. Not currently used.<P>
<HR>
<A NAME="wxcalculatelayouteventsetrect"></A>
<H3>wxCalculateLayoutEvent::SetRect</H3>
<P>
<B>void</B> <B>SetRect</B>(<B>const wxRect& </B><I>rect</I>)<P>
Call this to specify the new remaining parent client area, after the space occupied by the
window has been subtracted.<P>
</BODY></HTML>
|