~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to docs/html/wx/wx_wxwindow.html

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<head><link rel=stylesheet type="text/css" href="wx.css"><title>wxWindow</title></head>
3
3
 
4
4
<BODY BGCOLOR=#FFFFFF>
5
 
<FONT FACE="Arial, Lucida, Helvetica">
6
5
<A NAME="wxwindow"></A><CENTER>
7
6
<A HREF="wx_contents.html"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx_classref.html#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx_wxvscrolledwindow.html#wxvscrolledwindow"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx_wxwindowupdatelocker.html#wxwindowupdatelocker"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
8
7
 
40
39
 
41
40
 
42
41
<TR><TD VALIGN=TOP WIDTH=198>
43
 
<FONT FACE="Arial, Lucida, Helvetica">
44
 
<B>wxSIMPLE_BORDER</B>
 
42
<B>wxBORDER_SIMPLE</B>
45
43
</FONT></TD>
46
44
 
47
45
<TD VALIGN=TOP>
48
 
<FONT FACE="Arial, Lucida, Helvetica">
49
 
Displays a thin border around the window. wxBORDER is the old name
 
46
Displays a thin border around the window. wxSIMPLE_BORDER is the old name
50
47
for this style. 
51
48
</FONT></TD></TR>
52
49
 
53
50
 
54
51
<TR><TD VALIGN=TOP WIDTH=198>
55
 
<FONT FACE="Arial, Lucida, Helvetica">
56
 
<B>wxDOUBLE_BORDER</B>
57
 
</FONT></TD>
58
 
 
59
 
<TD VALIGN=TOP>
60
 
<FONT FACE="Arial, Lucida, Helvetica">
61
 
Displays a double border. Windows and Mac only.
62
 
</FONT></TD></TR>
63
 
 
64
 
 
65
 
<TR><TD VALIGN=TOP WIDTH=198>
66
 
<FONT FACE="Arial, Lucida, Helvetica">
67
 
<B>wxSUNKEN_BORDER</B>
68
 
</FONT></TD>
69
 
 
70
 
<TD VALIGN=TOP>
71
 
<FONT FACE="Arial, Lucida, Helvetica">
72
 
Displays a sunken border.
73
 
</FONT></TD></TR>
74
 
 
75
 
 
76
 
<TR><TD VALIGN=TOP WIDTH=198>
77
 
<FONT FACE="Arial, Lucida, Helvetica">
78
 
<B>wxRAISED_BORDER</B>
79
 
</FONT></TD>
80
 
 
81
 
<TD VALIGN=TOP>
82
 
<FONT FACE="Arial, Lucida, Helvetica">
83
 
Displays a raised border.
84
 
</FONT></TD></TR>
85
 
 
86
 
 
87
 
<TR><TD VALIGN=TOP WIDTH=198>
88
 
<FONT FACE="Arial, Lucida, Helvetica">
89
 
<B>wxSTATIC_BORDER</B>
90
 
</FONT></TD>
91
 
 
92
 
<TD VALIGN=TOP>
93
 
<FONT FACE="Arial, Lucida, Helvetica">
94
 
Displays a border suitable for a static control. Windows only. 
95
 
</FONT></TD></TR>
96
 
 
97
 
 
98
 
<TR><TD VALIGN=TOP WIDTH=198>
99
 
<FONT FACE="Arial, Lucida, Helvetica">
100
 
<B>wxNO_BORDER</B>
101
 
</FONT></TD>
102
 
 
103
 
<TD VALIGN=TOP>
104
 
<FONT FACE="Arial, Lucida, Helvetica">
105
 
Displays no border, overriding the default border style for the window.
106
 
</FONT></TD></TR>
107
 
 
108
 
 
109
 
<TR><TD VALIGN=TOP WIDTH=198>
110
 
<FONT FACE="Arial, Lucida, Helvetica">
 
52
<B>wxBORDER_DOUBLE</B>
 
53
</FONT></TD>
 
54
 
 
55
<TD VALIGN=TOP>
 
56
Displays a double border. wxDOUBLE_BORDER is the old name for this style. Windows and Mac only.
 
57
</FONT></TD></TR>
 
58
 
 
59
 
 
60
<TR><TD VALIGN=TOP WIDTH=198>
 
61
<B>wxBORDER_SUNKEN</B>
 
62
</FONT></TD>
 
63
 
 
64
<TD VALIGN=TOP>
 
65
Displays a sunken border. wxSUNKEN_BORDER is the old name for this style.
 
66
</FONT></TD></TR>
 
67
 
 
68
 
 
69
<TR><TD VALIGN=TOP WIDTH=198>
 
70
<B>wxBORDER_RAISED</B>
 
71
</FONT></TD>
 
72
 
 
73
<TD VALIGN=TOP>
 
74
Displays a raised border. wxRAISED_BORDER is the old name for this style. 
 
75
</FONT></TD></TR>
 
76
 
 
77
 
 
78
<TR><TD VALIGN=TOP WIDTH=198>
 
79
<B>wxBORDER_STATIC</B>
 
80
</FONT></TD>
 
81
 
 
82
<TD VALIGN=TOP>
 
83
Displays a border suitable for a static control.  wxSTATIC_BORDER is the old name for this style. Windows only. 
 
84
</FONT></TD></TR>
 
85
 
 
86
 
 
87
<TR><TD VALIGN=TOP WIDTH=198>
 
88
<B>wxBORDER_THEME</B>
 
89
</FONT></TD>
 
90
 
 
91
<TD VALIGN=TOP>
 
92
Displays a themed border where possible. Currently this has an effect on Windows XP and above only.
 
93
For more information on themed borders, please see <A HREF="wx_wxmswport.html#wxmswthemedborders">Themed borders on Windows</A>.
 
94
</FONT></TD></TR>
 
95
 
 
96
 
 
97
<TR><TD VALIGN=TOP WIDTH=198>
 
98
<B>wxBORDER_NONE</B>
 
99
</FONT></TD>
 
100
 
 
101
<TD VALIGN=TOP>
 
102
Displays no border, overriding the default border style for the window. wxNO_BORDER is the old name for this style.
 
103
</FONT></TD></TR>
 
104
 
 
105
 
 
106
<TR><TD VALIGN=TOP WIDTH=198>
111
107
<B>wxTRANSPARENT_WINDOW</B>
112
108
</FONT></TD>
113
109
 
114
110
<TD VALIGN=TOP>
115
 
<FONT FACE="Arial, Lucida, Helvetica">
116
111
The window is transparent, that is, it will not receive paint
117
112
events. Windows only.
118
113
</FONT></TD></TR>
119
114
 
120
115
 
121
116
<TR><TD VALIGN=TOP WIDTH=198>
122
 
<FONT FACE="Arial, Lucida, Helvetica">
123
117
<B>wxTAB_TRAVERSAL</B>
124
118
</FONT></TD>
125
119
 
126
120
<TD VALIGN=TOP>
127
 
<FONT FACE="Arial, Lucida, Helvetica">
128
121
Use this to enable tab traversal for non-dialog windows.
129
122
</FONT></TD></TR>
130
123
 
131
124
 
132
125
<TR><TD VALIGN=TOP WIDTH=198>
133
 
<FONT FACE="Arial, Lucida, Helvetica">
134
126
<B>wxWANTS_CHARS</B>
135
127
</FONT></TD>
136
128
 
137
129
<TD VALIGN=TOP>
138
 
<FONT FACE="Arial, Lucida, Helvetica">
139
130
Use this to indicate that
140
131
the window wants to get all char/key events for all keys - even for
141
132
keys like TAB or ENTER which are usually used for dialog navigation
148
139
 
149
140
 
150
141
<TR><TD VALIGN=TOP WIDTH=198>
151
 
<FONT FACE="Arial, Lucida, Helvetica">
152
142
<B>wxNO_FULL_REPAINT_ON_RESIZE</B>
153
143
</FONT></TD>
154
144
 
155
145
<TD VALIGN=TOP>
156
 
<FONT FACE="Arial, Lucida, Helvetica">
157
146
On Windows, this style used to disable repainting
158
147
the window completely when its size is changed. Since this behaviour is now the default, the style is now obsolete
159
148
and no longer has an effect.
161
150
 
162
151
 
163
152
<TR><TD VALIGN=TOP WIDTH=198>
164
 
<FONT FACE="Arial, Lucida, Helvetica">
165
153
<B>wxVSCROLL</B>
166
154
</FONT></TD>
167
155
 
168
156
<TD VALIGN=TOP>
169
 
<FONT FACE="Arial, Lucida, Helvetica">
170
157
Use this style to enable a vertical scrollbar.
171
158
</FONT></TD></TR>
172
159
 
173
160
 
174
161
<TR><TD VALIGN=TOP WIDTH=198>
175
 
<FONT FACE="Arial, Lucida, Helvetica">
176
162
<B>wxHSCROLL</B>
177
163
</FONT></TD>
178
164
 
179
165
<TD VALIGN=TOP>
180
 
<FONT FACE="Arial, Lucida, Helvetica">
181
166
Use this style to enable a horizontal scrollbar.
182
167
</FONT></TD></TR>
183
168
 
184
169
 
185
170
<TR><TD VALIGN=TOP WIDTH=198>
186
 
<FONT FACE="Arial, Lucida, Helvetica">
187
171
<B>wxALWAYS_SHOW_SB</B>
188
172
</FONT></TD>
189
173
 
190
174
<TD VALIGN=TOP>
191
 
<FONT FACE="Arial, Lucida, Helvetica">
192
175
If a window has scrollbars,
193
176
disable them instead of hiding them when they are not needed (i.e. when the
194
177
size of the window is big enough to not require the scrollbars to navigate it).
198
181
 
199
182
 
200
183
<TR><TD VALIGN=TOP WIDTH=198>
201
 
<FONT FACE="Arial, Lucida, Helvetica">
202
184
<B>wxCLIP_CHILDREN</B>
203
185
</FONT></TD>
204
186
 
205
187
<TD VALIGN=TOP>
206
 
<FONT FACE="Arial, Lucida, Helvetica">
207
188
Use this style to eliminate flicker caused by the background being
208
189
repainted, then children being painted over them. Windows only.
209
190
</FONT></TD></TR>
210
191
 
211
192
 
212
193
<TR><TD VALIGN=TOP WIDTH=198>
213
 
<FONT FACE="Arial, Lucida, Helvetica">
214
194
<B>wxFULL_REPAINT_ON_RESIZE</B>
215
195
</FONT></TD>
216
196
 
217
197
<TD VALIGN=TOP>
218
 
<FONT FACE="Arial, Lucida, Helvetica">
219
198
Use this style to force
220
199
a complete redraw of the window whenever it is resized instead of redrawing
221
200
just the part of the window affected by resizing. Note that this was the
236
215
 
237
216
 
238
217
<TR><TD VALIGN=TOP WIDTH=198>
239
 
<FONT FACE="Arial, Lucida, Helvetica">
240
218
<B>wxWS_EX_VALIDATE_RECURSIVELY</B>
241
219
</FONT></TD>
242
220
 
243
221
<TD VALIGN=TOP>
244
 
<FONT FACE="Arial, Lucida, Helvetica">
245
222
By default, Validate/TransferDataTo/FromWindow()
246
223
only work on direct children of the window (compatible behaviour). Set this flag to make them recursively
247
224
descend into all subwindows.
249
226
 
250
227
 
251
228
<TR><TD VALIGN=TOP WIDTH=198>
252
 
<FONT FACE="Arial, Lucida, Helvetica">
253
229
<B>wxWS_EX_BLOCK_EVENTS</B>
254
230
</FONT></TD>
255
231
 
256
232
<TD VALIGN=TOP>
257
 
<FONT FACE="Arial, Lucida, Helvetica">
258
233
wxCommandEvents and the objects of the derived classes are forwarded to the
259
234
parent window and so on recursively by default. Using this flag for the
260
235
given window allows to block this propagation at this window, i.e. prevent
264
239
 
265
240
 
266
241
<TR><TD VALIGN=TOP WIDTH=198>
267
 
<FONT FACE="Arial, Lucida, Helvetica">
268
242
<B>wxWS_EX_TRANSIENT</B>
269
243
</FONT></TD>
270
244
 
271
245
<TD VALIGN=TOP>
272
 
<FONT FACE="Arial, Lucida, Helvetica">
273
246
Don't use this window as an implicit parent for the other windows: this must
274
247
be used with transient windows as otherwise there is the risk of creating a
275
248
dialog/frame with this window as a parent which would lead to a crash if the
278
251
 
279
252
 
280
253
<TR><TD VALIGN=TOP WIDTH=198>
281
 
<FONT FACE="Arial, Lucida, Helvetica">
282
254
<B>wxWS_EX_PROCESS_IDLE</B>
283
255
</FONT></TD>
284
256
 
285
257
<TD VALIGN=TOP>
286
 
<FONT FACE="Arial, Lucida, Helvetica">
287
258
This window should always process idle events, even
288
259
if the mode set by <A HREF="wx_wxidleevent.html#wxidleeventsetmode">wxIdleEvent::SetMode</A> is wxIDLE_PROCESS_SPECIFIED.
289
260
</FONT></TD></TR>
290
261
 
291
262
 
292
263
<TR><TD VALIGN=TOP WIDTH=198>
293
 
<FONT FACE="Arial, Lucida, Helvetica">
294
264
<B>wxWS_EX_PROCESS_UI_UPDATES</B>
295
265
</FONT></TD>
296
266
 
297
267
<TD VALIGN=TOP>
298
 
<FONT FACE="Arial, Lucida, Helvetica">
299
268
This window should always process UI update events,
300
269
even if the mode set by <A HREF="wx_wxupdateuievent.html#wxupdateuieventsetmode">wxUpdateUIEvent::SetMode</A> is wxUPDATE_UI_PROCESS_SPECIFIED.
301
270
</FONT></TD></TR>
685
654
<H3>wxWindow::ClientToScreen</H3>
686
655
<P>
687
656
<B>virtual void</B> <B>ClientToScreen</B>(<B>int* </B><I>x</I>, <B>int* </B><I>y</I>) <B>const</B><P>
688
 
<P>
 
657
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> In wxPerl this method returns a 2-element list instead of
 
658
modifying its parameters.<P>
689
659
<B>virtual <A HREF="wx_wxpoint.html#wxpoint">wxPoint</A></B> </B> <B>ClientToScreen</B>(<B>const <A HREF="wx_wxpoint.html#wxpoint">wxPoint</A>&</B></B><I> pt</I>) <B>const</B><P>
690
660
Converts to screen coordinates from coordinates relative to this window.<P>
691
661
<I>x</I><UL><UL>
708
678
 
709
679
 
710
680
<TR><TD VALIGN=TOP>
711
 
<FONT FACE="Arial, Lucida, Helvetica">
712
681
<B>ClientToScreen(point)</B>
713
682
</FONT></TD>
714
683
 
715
684
<TD VALIGN=TOP>
716
 
<FONT FACE="Arial, Lucida, Helvetica">
717
685
Accepts and returns a wxPoint
718
686
</FONT></TD></TR>
719
687
 
720
688
 
721
689
<TR><TD VALIGN=TOP>
722
 
<FONT FACE="Arial, Lucida, Helvetica">
723
690
<B>ClientToScreenXY(x, y)</B>
724
691
</FONT></TD>
725
692
 
726
693
<TD VALIGN=TOP>
727
 
<FONT FACE="Arial, Lucida, Helvetica">
728
694
Returns a 2-tuple, (x, y)
729
695
</FONT></TD></TR>
730
696
 
800
766
 
801
767
 
802
768
<TR><TD VALIGN=TOP>
803
 
<FONT FACE="Arial, Lucida, Helvetica">
804
769
<B>ConvertDialogPointToPixels(point)</B>
805
770
</FONT></TD>
806
771
 
807
772
<TD VALIGN=TOP>
808
 
<FONT FACE="Arial, Lucida, Helvetica">
809
773
Accepts and returns a wxPoint
810
774
</FONT></TD></TR>
811
775
 
812
776
 
813
777
<TR><TD VALIGN=TOP>
814
 
<FONT FACE="Arial, Lucida, Helvetica">
815
778
<B>ConvertDialogSizeToPixels(size)</B>
816
779
</FONT></TD>
817
780
 
818
781
<TD VALIGN=TOP>
819
 
<FONT FACE="Arial, Lucida, Helvetica">
820
782
Accepts and returns a wxSize
821
783
</FONT></TD></TR>
822
784
 
832
794
 
833
795
 
834
796
<TR><TD VALIGN=TOP>
835
 
<FONT FACE="Arial, Lucida, Helvetica">
836
797
<B>wxDLG_PNT(win, point)</B>
837
798
</FONT></TD>
838
799
 
839
800
<TD VALIGN=TOP>
840
 
<FONT FACE="Arial, Lucida, Helvetica">
841
801
Converts a wxPoint from dialog
842
802
units to pixels
843
803
</FONT></TD></TR>
844
804
 
845
805
 
846
806
<TR><TD VALIGN=TOP>
847
 
<FONT FACE="Arial, Lucida, Helvetica">
848
807
<B>wxDLG_SZE(win, size)</B>
849
808
</FONT></TD>
850
809
 
851
810
<TD VALIGN=TOP>
852
 
<FONT FACE="Arial, Lucida, Helvetica">
853
811
Converts a wxSize from dialog
854
812
units to pixels
855
813
</FONT></TD></TR>
884
842
 
885
843
 
886
844
<TR><TD VALIGN=TOP>
887
 
<FONT FACE="Arial, Lucida, Helvetica">
888
845
<B>ConvertDialogPointToPixels(point)</B>
889
846
</FONT></TD>
890
847
 
891
848
<TD VALIGN=TOP>
892
 
<FONT FACE="Arial, Lucida, Helvetica">
893
849
Accepts and returns a wxPoint
894
850
</FONT></TD></TR>
895
851
 
896
852
 
897
853
<TR><TD VALIGN=TOP>
898
 
<FONT FACE="Arial, Lucida, Helvetica">
899
854
<B>ConvertDialogSizeToPixels(size)</B>
900
855
</FONT></TD>
901
856
 
902
857
<TD VALIGN=TOP>
903
 
<FONT FACE="Arial, Lucida, Helvetica">
904
858
Accepts and returns a wxSize
905
859
</FONT></TD></TR>
906
860
 
1047
1001
 
1048
1002
 
1049
1003
<TR><TD VALIGN=TOP>
1050
 
<FONT FACE="Arial, Lucida, Helvetica">
1051
1004
<B>FindWindowById(id)</B>
1052
1005
</FONT></TD>
1053
1006
 
1054
1007
<TD VALIGN=TOP>
1055
 
<FONT FACE="Arial, Lucida, Helvetica">
1056
1008
Accepts an integer
1057
1009
</FONT></TD></TR>
1058
1010
 
1059
1011
 
1060
1012
<TR><TD VALIGN=TOP>
1061
 
<FONT FACE="Arial, Lucida, Helvetica">
1062
1013
<B>FindWindowByName(name)</B>
1063
1014
</FONT></TD>
1064
1015
 
1065
1016
<TD VALIGN=TOP>
1066
 
<FONT FACE="Arial, Lucida, Helvetica">
1067
1017
Accepts a string
1068
1018
</FONT></TD></TR>
1069
1019
 
1321
1271
<H3>wxWindow::GetClientSize</H3>
1322
1272
<P>
1323
1273
<B>void</B> <B>GetClientSize</B>(<B>int* </B><I>width</I>, <B>int* </B><I>height</I>) <B>const</B><P>
1324
 
<P>
 
1274
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> In wxPerl this method takes no parameter and returns
 
1275
a 2-element list <TT>(width, height)</TT>.<P>
1325
1276
<B><A HREF="wx_wxsize.html#wxsize">wxSize</A></B> </B> <B>GetClientSize</B>() <B>const</B><P>
1326
1277
This gets the size of the window 'client area' in pixels.
1327
1278
The client area is the area which may be drawn on by the programmer,
1342
1293
 
1343
1294
 
1344
1295
<TR><TD VALIGN=TOP>
1345
 
<FONT FACE="Arial, Lucida, Helvetica">
1346
1296
<B>GetClientSizeTuple()</B>
1347
1297
</FONT></TD>
1348
1298
 
1349
1299
<TD VALIGN=TOP>
1350
 
<FONT FACE="Arial, Lucida, Helvetica">
1351
1300
Returns a 2-tuple of (width, height)
1352
1301
</FONT></TD></TR>
1353
1302
 
1354
1303
 
1355
1304
<TR><TD VALIGN=TOP>
1356
 
<FONT FACE="Arial, Lucida, Helvetica">
1357
1305
<B>GetClientSize()</B>
1358
1306
</FONT></TD>
1359
1307
 
1360
1308
<TD VALIGN=TOP>
1361
 
<FONT FACE="Arial, Lucida, Helvetica">
1362
1309
Returns a wxSize object
1363
1310
</FONT></TD></TR>
1364
1311
 
1493
1440
Returns the platform-specific handle of the physical window. Cast it to an appropriate
1494
1441
handle, such as <B>HWND</B> for Windows, <B>Widget</B> for Motif, <B>GtkWidget</B> for GTK or <B>WinHandle</B> for PalmOS.<P>
1495
1442
<B><FONT COLOR="#0000C8">wxPython note:</FONT></B> This method will return an integer in wxPython.<P>
1496
 
<P>
 
1443
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> This method will return an integer in wxPerl.<P>
1497
1444
 
1498
1445
 
1499
1446
<HR>
1618
1565
 
1619
1566
 
1620
1567
<TR><TD VALIGN=TOP>
1621
 
<FONT FACE="Arial, Lucida, Helvetica">
1622
1568
<B>GetPosition()</B>
1623
1569
</FONT></TD>
1624
1570
 
1625
1571
<TD VALIGN=TOP>
1626
 
<FONT FACE="Arial, Lucida, Helvetica">
1627
1572
Returns a wxPoint
1628
1573
</FONT></TD></TR>
1629
1574
 
1630
1575
 
1631
1576
<TR><TD VALIGN=TOP>
1632
 
<FONT FACE="Arial, Lucida, Helvetica">
1633
1577
<B>GetPositionTuple()</B>
1634
1578
</FONT></TD>
1635
1579
 
1636
1580
<TD VALIGN=TOP>
1637
 
<FONT FACE="Arial, Lucida, Helvetica">
1638
1581
Returns a tuple (x, y)
1639
1582
</FONT></TD></TR>
1640
1583
 
1643
1586
</UL></UL>
1644
1587
 
1645
1588
<P>
 
1589
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> In wxPerl there are two methods instead of a single overloaded
 
1590
method:<P>
 
1591
 
 
1592
<UL><UL>
 
1593
 
 
1594
<TABLE>
 
1595
 
 
1596
 
 
1597
<TR><TD VALIGN=TOP>
 
1598
<B>GetPosition()</B>
 
1599
</FONT></TD>
 
1600
 
 
1601
<TD VALIGN=TOP>
 
1602
Returns a Wx::Point
 
1603
</FONT></TD></TR>
 
1604
 
 
1605
 
 
1606
<TR><TD VALIGN=TOP>
 
1607
<B>GetPositionXY()</B>
 
1608
</FONT></TD>
 
1609
 
 
1610
<TD VALIGN=TOP>
 
1611
Returns a 2-element list
 
1612
 <TT>( x, y )</TT>
 
1613
</FONT></TD></TR>
 
1614
 
 
1615
 
 
1616
</TABLE>
 
1617
 
 
1618
</UL></UL>
1646
1619
<P>
1647
1620
 
1648
1621
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
1743
1716
 
1744
1717
 
1745
1718
<TR><TD VALIGN=TOP>
1746
 
<FONT FACE="Arial, Lucida, Helvetica">
1747
1719
<B>GetSize()</B>
1748
1720
</FONT></TD>
1749
1721
 
1750
1722
<TD VALIGN=TOP>
1751
 
<FONT FACE="Arial, Lucida, Helvetica">
1752
1723
Returns a wxSize
1753
1724
</FONT></TD></TR>
1754
1725
 
1755
1726
 
1756
1727
<TR><TD VALIGN=TOP>
1757
 
<FONT FACE="Arial, Lucida, Helvetica">
1758
1728
<B>GetSizeTuple()</B>
1759
1729
</FONT></TD>
1760
1730
 
1761
1731
<TD VALIGN=TOP>
1762
 
<FONT FACE="Arial, Lucida, Helvetica">
1763
1732
Returns a 2-tuple (width, height)
1764
1733
</FONT></TD></TR>
1765
1734
 
1768
1737
</UL></UL>
1769
1738
 
1770
1739
<P>
 
1740
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> In wxPerl there are two methods instead of a single overloaded
 
1741
method:<P>
 
1742
 
 
1743
<UL><UL>
 
1744
 
 
1745
<TABLE>
 
1746
 
 
1747
 
 
1748
<TR><TD VALIGN=TOP>
 
1749
<B>GetSize()</B>
 
1750
</FONT></TD>
 
1751
 
 
1752
<TD VALIGN=TOP>
 
1753
Returns a Wx::Size
 
1754
</FONT></TD></TR>
 
1755
 
 
1756
 
 
1757
<TR><TD VALIGN=TOP>
 
1758
<B>GetSizeWH()</B>
 
1759
</FONT></TD>
 
1760
 
 
1761
<TD VALIGN=TOP>
 
1762
Returns a 2-element list
 
1763
 <TT>( width, height )</TT>
 
1764
</FONT></TD></TR>
 
1765
 
 
1766
 
 
1767
</TABLE>
 
1768
 
 
1769
</UL></UL>
1771
1770
<P>
1772
1771
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
1773
1772
<A HREF="wx_wxwindow.html#wxwindowgetclientsize">GetClientSize</A>,
1823
1822
 
1824
1823
 
1825
1824
<TR><TD VALIGN=TOP>
1826
 
<FONT FACE="Arial, Lucida, Helvetica">
1827
1825
<B>GetTextExtent(string)</B>
1828
1826
</FONT></TD>
1829
1827
 
1830
1828
<TD VALIGN=TOP>
1831
 
<FONT FACE="Arial, Lucida, Helvetica">
1832
1829
Returns a 2-tuple,  (width, height)
1833
1830
</FONT></TD></TR>
1834
1831
 
1835
1832
 
1836
1833
<TR><TD VALIGN=TOP>
1837
 
<FONT FACE="Arial, Lucida, Helvetica">
1838
1834
<B>GetFullTextExtent(string, font=NULL)</B>
1839
1835
</FONT></TD>
1840
1836
 
1841
1837
<TD VALIGN=TOP>
1842
 
<FONT FACE="Arial, Lucida, Helvetica">
1843
1838
Returns a
1844
1839
4-tuple, (width, height, descent, externalLeading) 
1845
1840
</FONT></TD></TR>
1849
1844
</UL></UL>
1850
1845
 
1851
1846
<P>
1852
 
<P>
 
1847
<B><FONT COLOR="#0000C8">wxPerl note:</FONT></B> In wxPerl this method takes only the <TT>string</TT> and optionally
 
1848
 <TT>font</TT> parameters, and returns a 4-element list
 
1849
 <TT>( x, y, descent, externalLeading )</TT>.<P>
1853
1850
 
1854
1851
 
1855
1852
<HR>
2081
2078
 
2082
2079
 
2083
2080
<TR><TD VALIGN=TOP>
2084
 
<FONT FACE="Arial, Lucida, Helvetica">
2085
2081
<B>IsExposed(x,y, w=0,h=0)</B>
2086
2082
</FONT></TD>
2087
2083
 
2088
2084
<TD VALIGN=TOP>
2089
 
<FONT FACE="Arial, Lucida, Helvetica">
2090
2085
 
2091
2086
</FONT></TD></TR>
2092
2087
 
2093
2088
 
2094
2089
<TR><TD VALIGN=TOP>
2095
 
<FONT FACE="Arial, Lucida, Helvetica">
2096
2090
<B>IsExposedPoint(pt)</B>
2097
2091
</FONT></TD>
2098
2092
 
2099
2093
<TD VALIGN=TOP>
2100
 
<FONT FACE="Arial, Lucida, Helvetica">
2101
2094
 
2102
2095
</FONT></TD></TR>
2103
2096
 
2104
2097
 
2105
2098
<TR><TD VALIGN=TOP>
2106
 
<FONT FACE="Arial, Lucida, Helvetica">
2107
2099
<B>IsExposedRect(rect)</B>
2108
2100
</FONT></TD>
2109
2101
 
2110
2102
<TD VALIGN=TOP>
2111
 
<FONT FACE="Arial, Lucida, Helvetica">
2112
2103
 
2113
2104
</FONT></TD></TR>
2114
2105
 
2254
2245
 
2255
2246
 
2256
2247
<TR><TD VALIGN=TOP>
2257
 
<FONT FACE="Arial, Lucida, Helvetica">
2258
2248
<B>Move(point)</B>
2259
2249
</FONT></TD>
2260
2250
 
2261
2251
<TD VALIGN=TOP>
2262
 
<FONT FACE="Arial, Lucida, Helvetica">
2263
2252
Accepts a wxPoint
2264
2253
</FONT></TD></TR>
2265
2254
 
2266
2255
 
2267
2256
<TR><TD VALIGN=TOP>
2268
 
<FONT FACE="Arial, Lucida, Helvetica">
2269
2257
<B>MoveXY(x, y)</B>
2270
2258
</FONT></TD>
2271
2259
 
2272
2260
<TD VALIGN=TOP>
2273
 
<FONT FACE="Arial, Lucida, Helvetica">
2274
2261
Accepts a pair of integers
2275
2262
</FONT></TD></TR>
2276
2263
 
2416
2403
 
2417
2404
 
2418
2405
<TR><TD VALIGN=TOP>
2419
 
<FONT FACE="Arial, Lucida, Helvetica">
2420
2406
<B>PopupMenu(menu, point)</B>
2421
2407
</FONT></TD>
2422
2408
 
2423
2409
<TD VALIGN=TOP>
2424
 
<FONT FACE="Arial, Lucida, Helvetica">
2425
2410
Specifies position with a wxPoint
2426
2411
</FONT></TD></TR>
2427
2412
 
2428
2413
 
2429
2414
<TR><TD VALIGN=TOP>
2430
 
<FONT FACE="Arial, Lucida, Helvetica">
2431
2415
<B>PopupMenuXY(menu, x, y)</B>
2432
2416
</FONT></TD>
2433
2417
 
2434
2418
<TD VALIGN=TOP>
2435
 
<FONT FACE="Arial, Lucida, Helvetica">
2436
2419
Specifies position with two integers (x, y)
2437
2420
</FONT></TD></TR>
2438
2421
 
2639
2622
 
2640
2623
 
2641
2624
<TR><TD VALIGN=TOP>
2642
 
<FONT FACE="Arial, Lucida, Helvetica">
2643
2625
<B>ScreenToClient(point)</B>
2644
2626
</FONT></TD>
2645
2627
 
2646
2628
<TD VALIGN=TOP>
2647
 
<FONT FACE="Arial, Lucida, Helvetica">
2648
2629
Accepts and returns a wxPoint
2649
2630
</FONT></TD></TR>
2650
2631
 
2651
2632
 
2652
2633
<TR><TD VALIGN=TOP>
2653
 
<FONT FACE="Arial, Lucida, Helvetica">
2654
2634
<B>ScreenToClientXY(x, y)</B>
2655
2635
</FONT></TD>
2656
2636
 
2657
2637
<TD VALIGN=TOP>
2658
 
<FONT FACE="Arial, Lucida, Helvetica">
2659
2638
Returns a 2-tuple, (x, y)
2660
2639
</FONT></TD></TR>
2661
2640
 
2873
2852
 
2874
2853
 
2875
2854
<TR><TD VALIGN=TOP>
2876
 
<FONT FACE="Arial, Lucida, Helvetica">
2877
2855
<B>SetClientSize(size)</B>
2878
2856
</FONT></TD>
2879
2857
 
2880
2858
<TD VALIGN=TOP>
2881
 
<FONT FACE="Arial, Lucida, Helvetica">
2882
2859
Accepts a wxSize
2883
2860
</FONT></TD></TR>
2884
2861
 
2885
2862
 
2886
2863
<TR><TD VALIGN=TOP>
2887
 
<FONT FACE="Arial, Lucida, Helvetica">
2888
2864
<B>SetClientSizeWH(width, height)</B>
2889
2865
</FONT></TD>
2890
2866
 
2891
2867
<TD VALIGN=TOP>
2892
 
<FONT FACE="Arial, Lucida, Helvetica">
2893
2868
 
2894
2869
</FONT></TD></TR>
2895
2870
 
3006
2981
 
3007
2982
 
3008
2983
<TR><TD VALIGN=TOP WIDTH=198>
3009
 
<FONT FACE="Arial, Lucida, Helvetica">
3010
2984
<B>wxWS_EX_VALIDATE_RECURSIVELY</B>
3011
2985
</FONT></TD>
3012
2986
 
3013
2987
<TD VALIGN=TOP>
3014
 
<FONT FACE="Arial, Lucida, Helvetica">
3015
2988
TransferDataTo/FromWindow()
3016
2989
and Validate() methods will recursively descend into all children of the
3017
2990
window if it has this style flag set.
3019
2992
 
3020
2993
 
3021
2994
<TR><TD VALIGN=TOP WIDTH=198>
3022
 
<FONT FACE="Arial, Lucida, Helvetica">
3023
2995
<B>wxWS_EX_BLOCK_EVENTS</B>
3024
2996
</FONT></TD>
3025
2997
 
3026
2998
<TD VALIGN=TOP>
3027
 
<FONT FACE="Arial, Lucida, Helvetica">
3028
2999
Normally, the command
3029
3000
events are propagated upwards to the window parent recursively until a handler
3030
3001
for them is found. Using this style allows to prevent them from being
3035
3006
 
3036
3007
 
3037
3008
<TR><TD VALIGN=TOP WIDTH=198>
3038
 
<FONT FACE="Arial, Lucida, Helvetica">
3039
3009
<B>wxWS_EX_TRANSIENT</B>
3040
3010
</FONT></TD>
3041
3011
 
3042
3012
<TD VALIGN=TOP>
3043
 
<FONT FACE="Arial, Lucida, Helvetica">
3044
3013
This can be used to prevent a
3045
3014
window from being used as an implicit parent for the dialogs which were
3046
3015
created without a parent. It is useful for the windows which can disappear at
3049
3018
 
3050
3019
 
3051
3020
<TR><TD VALIGN=TOP WIDTH=198>
3052
 
<FONT FACE="Arial, Lucida, Helvetica">
3053
3021
<B>wxWS_EX_CONTEXTHELP</B>
3054
3022
</FONT></TD>
3055
3023
 
3056
3024
<TD VALIGN=TOP>
3057
 
<FONT FACE="Arial, Lucida, Helvetica">
3058
3025
Under Windows, puts a query
3059
3026
button on the caption. When pressed, Windows will go into a context-sensitive
3060
3027
help mode and wxWidgets will send a wxEVT_HELP event if the user clicked on an
3065
3032
 
3066
3033
 
3067
3034
<TR><TD VALIGN=TOP WIDTH=198>
3068
 
<FONT FACE="Arial, Lucida, Helvetica">
3069
3035
<B>wxWS_EX_PROCESS_IDLE</B>
3070
3036
</FONT></TD>
3071
3037
 
3072
3038
<TD VALIGN=TOP>
3073
 
<FONT FACE="Arial, Lucida, Helvetica">
3074
3039
This window should always process idle events, even
3075
3040
if the mode set by <A HREF="wx_wxidleevent.html#wxidleeventsetmode">wxIdleEvent::SetMode</A> is wxIDLE_PROCESS_SPECIFIED.
3076
3041
</FONT></TD></TR>
3077
3042
 
3078
3043
 
3079
3044
<TR><TD VALIGN=TOP WIDTH=198>
3080
 
<FONT FACE="Arial, Lucida, Helvetica">
3081
3045
<B>wxWS_EX_PROCESS_UI_UPDATES</B>
3082
3046
</FONT></TD>
3083
3047
 
3084
3048
<TD VALIGN=TOP>
3085
 
<FONT FACE="Arial, Lucida, Helvetica">
3086
3049
This window should always process UI update events,
3087
3050
even if the mode set by <A HREF="wx_wxupdateuievent.html#wxupdateuieventsetmode">wxUpdateUIEvent::SetMode</A> is wxUPDATE_UI_PROCESS_SPECIFIED.
3088
3051
</FONT></TD></TR>
3433
3396
 
3434
3397
 
3435
3398
<TR><TD VALIGN=TOP>
3436
 
<FONT FACE="Arial, Lucida, Helvetica">
3437
3399
<B>SetDimensions(x, y, width, height, sizeFlags=wxSIZE_AUTO)</B>
3438
3400
</FONT></TD>
3439
3401
 
3440
3402
<TD VALIGN=TOP>
3441
 
<FONT FACE="Arial, Lucida, Helvetica">
3442
3403
 
3443
3404
</FONT></TD></TR>
3444
3405
 
3445
3406
 
3446
3407
<TR><TD VALIGN=TOP>
3447
 
<FONT FACE="Arial, Lucida, Helvetica">
3448
3408
<B>SetSize(size)</B>
3449
3409
</FONT></TD>
3450
3410
 
3451
3411
<TD VALIGN=TOP>
3452
 
<FONT FACE="Arial, Lucida, Helvetica">
3453
3412
 
3454
3413
</FONT></TD></TR>
3455
3414
 
3456
3415
 
3457
3416
<TR><TD VALIGN=TOP>
3458
 
<FONT FACE="Arial, Lucida, Helvetica">
3459
3417
<B>SetPosition(point)</B>
3460
3418
</FONT></TD>
3461
3419
 
3462
3420
<TD VALIGN=TOP>
3463
 
<FONT FACE="Arial, Lucida, Helvetica">
3464
3421
 
3465
3422
</FONT></TD></TR>
3466
3423