1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>wxPropertyGrid: wxPropertyGrid Miscellanous</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.6 -->
7
<div class="qindex"> <form class="search" action="search.php" method="get">
8
<a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="hierarchy.htm">Class Hierarchy</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Class List</a> | <a class="qindex" href="functions.htm">Class Members</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
9
<h1>wxPropertyGrid Miscellanous</h1>This section describes some miscellanous values, types and macros.
10
<a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0>
12
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
13
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga13">WX_PG_CLASSINFO</a>(NAME) NAME##ClassInfo</td></tr>
15
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga8">wxPG_COLOUR</a>(R, G, B) ((wxUint32)(R+(G<<8)+(B<<16)))</td></tr>
17
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga6" doxytag="miscellaneous::wxPG_COLOUR_BLACK" ></a>
18
#define </td><td class="memItemRight" valign=bottom><b>wxPG_COLOUR_BLACK</b> (*wxBLACK)</td></tr>
20
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga2" doxytag="miscellaneous::wxPG_EMPTY_ARRAYINT" ></a>
21
#define </td><td class="memItemRight" valign=bottom><b>wxPG_EMPTY_ARRAYINT</b> (*((wxArrayInt*)NULL))</td></tr>
23
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga3" doxytag="miscellaneous::wxPG_EMPTY_ARRAYSTRING" ></a>
24
#define </td><td class="memItemRight" valign=bottom><b>wxPG_EMPTY_ARRAYSTRING</b> (*((wxArrayString*)NULL))</td></tr>
26
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga9">wxPG_FLEXIBLE_SIZE</a>(PREFWID, PREFHEI) wxSize(-(PREFWID),-(PREFHEI))</td></tr>
28
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga12">wxPG_FULL_CUSTOM_PAINT_FLEXIBLE_SIZE</a>(PREFHEI) wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,-(PREFHEI))</td></tr>
30
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga11">wxPG_FULL_CUSTOM_PAINT_SIZE</a>(HEI) wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,HEI)</td></tr>
32
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga10" doxytag="miscellaneous::wxPG_FULL_CUSTOM_PAINT_WIDTH" ></a>
33
#define </td><td class="memItemRight" valign=bottom><b>wxPG_FULL_CUSTOM_PAINT_WIDTH</b> -99999</td></tr>
35
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga7" doxytag="miscellaneous::wxPG_INVALID_VALUE" ></a>
36
#define </td><td class="memItemRight" valign=bottom><b>wxPG_INVALID_VALUE</b> INT_MAX</td></tr>
38
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga4" doxytag="miscellaneous::wxPG_LABEL" ></a>
39
#define </td><td class="memItemRight" valign=bottom><b>wxPG_LABEL</b> (*((wxString*)NULL))</td></tr>
41
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga5" doxytag="miscellaneous::wxPG_NULL_BITMAP" ></a>
42
#define </td><td class="memItemRight" valign=bottom><b>wxPG_NULL_BITMAP</b> wxNullBitmap</td></tr>
44
<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
45
<tr><td class="memItemLeft" nowrap align=right valign=top>typedef void(* </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga1">wxPGPaintCallback</a> )(<a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *property, wxDC &dc, const wxRect &rect, <a class="el" href="structwxPGPaintData.htm">wxPGPaintData</a> &paintdata)</td></tr>
47
<tr><td class="memItemLeft" nowrap align=right valign=top>typedef bool(* </td><td class="memItemRight" valign=bottom><a class="el" href="group__miscellaneous.htm#ga0">wxPropertyGridCallback</a> )(<a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a> *propGrid, <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *property, wxWindow *ctrl, int data)</td></tr>
50
<hr><a name="_details"></a><h2>Detailed Description</h2>
51
This section describes some miscellanous values, types and macros.
53
<hr><h2>Define Documentation</h2>
54
<a class="anchor" name="ga13" doxytag="propgrid.h::WX_PG_CLASSINFO" ></a><p>
55
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
58
<table cellpadding="0" cellspacing="0" border="0">
60
<td class="md" nowrap valign="top"> #define WX_PG_CLASSINFO</td>
61
<td class="md" valign="top">( </td>
62
<td class="md" nowrap valign="top">NAME </td>
63
<td class="mdname1" valign="top" nowrap> </td>
64
<td class="md" valign="top"> ) </td>
65
<td class="md" nowrap> NAME##ClassInfo
70
<table cellspacing=5 cellpadding=0 border=0>
78
Use this with <a class="el" href="classwxPropertyContainerMethods.htm#wxPropertyGridPagee24">wxPropertyGrid::IsPropertyKindOf</a>.
80
For example, as in <pre class="fragment"><div> pg-><a class="code" href="classwxPropertyContainerMethods.htm#wxPropertyGridPagee24">IsPropertyKindOf</a>(<a class="code" href="group__miscellaneous.htm#ga13">WX_PG_CLASSINFO</a>(wxStringProperty))
84
<a class="anchor" name="ga8" doxytag="propgrid.h::wxPG_COLOUR" ></a><p>
85
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
88
<table cellpadding="0" cellspacing="0" border="0">
90
<td class="md" nowrap valign="top"> #define wxPG_COLOUR</td>
91
<td class="md" valign="top">( </td>
92
<td class="md" nowrap valign="top">R, <tr>
93
<td class="md" nowrap align="right"></td>
95
<td class="md" nowrap>G, <tr>
96
<td class="md" nowrap align="right"></td>
98
<td class="md" nowrap>B </td>
99
<td class="mdname1" valign="top" nowrap> </td>
100
<td class="md" valign="top"> ) </td>
101
<td class="md" nowrap> ((wxUint32)(R+(G<<8)+(B<<16)))
106
<table cellspacing=5 cellpadding=0 border=0>
114
Convert Red, Green and Blue to a single 32-bit value.
119
<a class="anchor" name="ga9" doxytag="propgrid.h::wxPG_FLEXIBLE_SIZE" ></a><p>
120
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
123
<table cellpadding="0" cellspacing="0" border="0">
125
<td class="md" nowrap valign="top"> #define wxPG_FLEXIBLE_SIZE</td>
126
<td class="md" valign="top">( </td>
127
<td class="md" nowrap valign="top">PREFWID, <tr>
128
<td class="md" nowrap align="right"></td>
130
<td class="md" nowrap>PREFHEI </td>
131
<td class="mdname1" valign="top" nowrap> </td>
132
<td class="md" valign="top"> ) </td>
133
<td class="md" nowrap> wxSize(-(PREFWID),-(PREFHEI))
138
<table cellspacing=5 cellpadding=0 border=0>
146
Return this in GetImageSize() to indicate that the custom painted property image is flexible.
148
That is, it will paint (dropdown) list item images with PREFWID,PREFHEI size. </td>
151
<a class="anchor" name="ga12" doxytag="propgrid.h::wxPG_FULL_CUSTOM_PAINT_FLEXIBLE_SIZE" ></a><p>
152
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
155
<table cellpadding="0" cellspacing="0" border="0">
157
<td class="md" nowrap valign="top"> #define wxPG_FULL_CUSTOM_PAINT_FLEXIBLE_SIZE</td>
158
<td class="md" valign="top">( </td>
159
<td class="md" nowrap valign="top">PREFHEI </td>
160
<td class="mdname1" valign="top" nowrap> </td>
161
<td class="md" valign="top"> ) </td>
162
<td class="md" nowrap> wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,-(PREFHEI))
167
<table cellspacing=5 cellpadding=0 border=0>
175
Return this in GetImageSize() to indicate that the property is custom painted completely (ie.
177
the text as well), and with flexible height. </td>
180
<a class="anchor" name="ga11" doxytag="propgrid.h::wxPG_FULL_CUSTOM_PAINT_SIZE" ></a><p>
181
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
184
<table cellpadding="0" cellspacing="0" border="0">
186
<td class="md" nowrap valign="top"> #define wxPG_FULL_CUSTOM_PAINT_SIZE</td>
187
<td class="md" valign="top">( </td>
188
<td class="md" nowrap valign="top">HEI </td>
189
<td class="mdname1" valign="top" nowrap> </td>
190
<td class="md" valign="top"> ) </td>
191
<td class="md" nowrap> wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,HEI)
196
<table cellspacing=5 cellpadding=0 border=0>
204
Return this in GetImageSize() to indicate that the property is custom painted completely (ie.
206
the text as well). </td>
209
<hr><h2>Typedef Documentation</h2>
210
<a class="anchor" name="ga1" doxytag="propgrid.h::wxPGPaintCallback" ></a><p>
211
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
214
<table cellpadding="0" cellspacing="0" border="0">
216
<td class="md" nowrap valign="top"> typedef void(* <a class="el" href="group__miscellaneous.htm#ga1">wxPGPaintCallback</a>)(<a class="el" href="classwxPGProperty.htm">wxPGProperty</a>* property, wxDC& dc, const wxRect& rect, <a class="el" href="structwxPGPaintData.htm">wxPGPaintData</a>& paintdata)
221
<table cellspacing=5 cellpadding=0 border=0>
229
This callback function is used by atleast wxCustomProperty to facilitiate drawing items in drop down list.
231
Works very much like <a class="el" href="classwxPGProperty.htm#wxStringPropertyClassa54">wxPGProperty::OnCustomPaint</a>. </td>
234
<a class="anchor" name="ga0" doxytag="propgrid.h::wxPropertyGridCallback" ></a><p>
235
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
238
<table cellpadding="0" cellspacing="0" border="0">
240
<td class="md" nowrap valign="top"> typedef bool(* <a class="el" href="group__miscellaneous.htm#ga0">wxPropertyGridCallback</a>)(<a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a>* propGrid, <a class="el" href="classwxPGProperty.htm">wxPGProperty</a>* property, wxWindow* ctrl, int data)
245
<table cellspacing=5 cellpadding=0 border=0>
253
This callback function is used by atleast wxCustomProperty to facilitiate easy custom action on button press.
255
<dl compact><dt><b>Parameters:</b></dt><dd>
256
<table border="0" cellspacing="2" cellpadding="0">
257
<tr><td valign=top><em>propGrid</em> </td><td>related <a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a> </td></tr>
258
<tr><td valign=top><em>property</em> </td><td>related <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> </td></tr>
259
<tr><td valign=top><em>ctrl</em> </td><td>If not NULL (for example, not selected), a wxWindow* or equivalent </td></tr>
260
<tr><td valign=top><em>data</em> </td><td>Value depends on the context. </td></tr>
263
<dl compact><dt><b>Return values:</b></dt><dd>
264
<table border="0" cellspacing="2" cellpadding="0">
265
<tr><td valign=top><em>True</em> </td><td>if changed value of the property. </td></tr>
271
<hr size="1"><address style="align: right;"><small>Generated on Mon Oct 29 16:56:25 2007 for wxPropertyGrid by
272
<a href="http://www.doxygen.org/index.html">
273
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
274
</a>1.3.6 </small></address>