home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / code / wxwin140 / docs / wx.xlp < prev   
Encoding:
Text File  |  1995-05-19  |  139.3 KB  |  5,133 lines

  1. \hy-10{100}{wxWindows Classes}
  2.  
  3.  
  4.   \hy-2{101}{wxApp: wxObject}
  5.  
  6.   \hy-2{139}{wxBrush: wxObject}
  7.  
  8.   \hy-2{170}{wxBrushList: wxList}
  9.  
  10.   \hy-2{187}{wxButton: wxItem}
  11.  
  12.   \hy-2{198}{wxCanvas: wxWindow}
  13.  
  14.   \hy-2{300}{wxCheckBox: wxItem}
  15.  
  16.   \hy-2{317}{wxChoice: wxItem}
  17.  
  18.   \hy-2{357}{wxClient: wxIPCObject}
  19.  
  20.   \hy-2{372}{wxColour: wxObject}
  21.  
  22.   \hy-2{386}{wxColourDatabase: wxObject}
  23.  
  24.   \hy-2{402}{wxConnection: wxObject}
  25.  
  26.   \hy-2{465}{wxCursor: wxObject}
  27.  
  28.   \hy-2{480}{wxDC: wxObject}
  29.  
  30.   \hy-2{621}{wxDialogBox: wxPanel}
  31.  
  32.   \hy-2{642}{wxEvent: wxObject}
  33.  
  34.   \hy-2{695}{wxFont: wxObject}
  35.  
  36.   \hy-2{707}{wxForm: wxObject}
  37.  
  38.   \hy-2{788}{wxFrame: wxWindow}
  39.  
  40.   \hy-2{830}{wxFunction}
  41.  
  42.   \hy-2{833}{wxIcon: wxObject}
  43.  
  44.   \hy-2{845}{wxHashTable: wxObject}
  45.  
  46.   \hy-2{888}{wxHelpInstance: wxClient}
  47.  
  48.   \hy-2{925}{wxItem: wxWindow}
  49.  
  50.   \hy-2{942}{wxList: wxObject}
  51.  
  52.   \hy-2{1011}{wxListBox: wxItem}
  53.  
  54.   \hy-2{1066}{wxMenu: wxItem}
  55.  
  56.   \hy-2{1091}{wxMenuBar: wxItem}
  57.  
  58.   \hy-2{1113}{wxMessage: wxItem}
  59.  
  60.   \hy-2{1121}{wxMetaFile: wxObject}
  61.  
  62.   \hy-2{1132}{wxMetaFileDC: wxDC}
  63.  
  64.   \hy-2{1145}{wxMultiText: wxText}
  65.  
  66.   \hy-2{1148}{wxNode: wxObject}
  67.  
  68.   \hy-2{1163}{wxObject}
  69.  
  70.   \hy-2{1165}{wxPanel: wxWindow}
  71.  
  72.   \hy-2{1204}{wxPathList: wxList}
  73.  
  74.   \hy-2{1223}{wxPen: wxObject}
  75.  
  76.   \hy-2{1259}{wxPenList: wxList}
  77.  
  78.   \hy-2{1276}{wxPoint: wxObject}
  79.  
  80.   \hy-2{1288}{wxServer: wxIPCObject}
  81.  
  82.   \hy-2{1301}{wxSlider: wxItem}
  83.  
  84.   \hy-2{1316}{wxStringList: wxList}
  85.  
  86.   \hy-2{1344}{wxText: wxWindow}
  87.  
  88.   \hy-2{1362}{wxTextWindow: wxWindow}
  89.  
  90.   \hy-2{1398}{wxTimer: wxObject}
  91.  
  92.   \hy-2{1419}{wxWindow: wxObject}
  93.  
  94.   \hy-2{1515}{File functions}
  95.  
  96.   \hy-2{1567}{String functions}
  97.  
  98.   \hy-2{1573}{Dialog functions}
  99.  
  100.   \hy-2{1604}{GDI functions}
  101.  
  102.   \hy-2{1612}{Miscellaneous}
  103.  
  104.  
  105. \hy-10{102}{wxApp: wxObject}
  106.  
  107. The \hy-8{103}{wxApp} class represents the application itself.  A wxWindows
  108. application does not have a \hy-7{104}{main} procedure; the equivalent is the \hy-7{105}{OnInit}
  109. member defined for a class derived from \hy-8{106}{wxApp}. \hy-7{107}{
  110. OnInit} must create and return a main window frame as a bare minimum.
  111. If NULL is returned from \hy-7{108}{OnInit}, the application will exit.
  112. Note that the program's command line arguments, represented by \hy-7{109}{
  113. argc} and \hy-7{110}{argv}, are available from within \hy-8{111}{wxApp} member functions.
  114.  
  115. An application closes by destroying all windows. Because all frames
  116. must be destroyed for the application to exit, it is advisable to use
  117. parent frames wherever possible when creating new frames, so that
  118. deleting the top level frame will automatically delete child frames.
  119. In emergencies the \hy-7{112}{wxExit} function can be called to kill the
  120. application.
  121.  
  122. An example of defining an application follows:
  123.  
  124. \hy-14{113}{class DerivedApp: public wxApp
  125. {
  126.  public:
  127.   wxFrame *OnInit(void);
  128. };
  129.  
  130. wxFrame *DerivedApp::OnInit(void)
  131. {
  132.   wxFrame *the_frame = new wxFrame(argv[0]);
  133.   ...
  134.   return the_frame;
  135. }
  136.  
  137. MyApp DerivedApp;
  138. }
  139. \hy-2{114}{wxApp::wxApp}
  140.  
  141. \hy-2{117}{wxApp::~wxApp}
  142.  
  143. \hy-2{120}{wxApp::argc}
  144.  
  145. \hy-2{123}{wxApp::argv}
  146.  
  147. \hy-2{126}{wxApp::Initialized}
  148.  
  149. \hy-2{130}{wxApp::MainLoop}
  150.  
  151. \hy-2{133}{wxApp::OnExit}
  152.  
  153. \hy-2{136}{wxApp::OnInit}
  154.  
  155.  
  156. \hy-10{140}{wxBrush: wxObject}
  157.  
  158. A brush is a drawing tool for filling in areas. It is used for
  159. painting the background of rectangles, ellipses, etc.  It has a colour
  160. and a style - the style may be wxSOLID (normal) or wxTRANSPARENT (the
  161. brush isn't used). On a monochrome display, the default behaviour is
  162. to show all brushes as white. If you wish the policy to be `all
  163. non-white colours are black', as with pens, uncomment the piece of
  164. code documented in \hy-8{141}{SetBrush} in wx_dc.cc. Alternatively, set the
  165. \hy-8{142}{Colour} member of the device context to TRUE, and select
  166. appropriate colours.
  167.  
  168. Do not initialize objects on the stack before the program commences,
  169. since other required structures may not have been set up yet. Instead,
  170. define global pointers to objects and create them in \hy-7{143}{OnInit} or
  171. when required.
  172.  
  173. An application may wish to create brushes with different
  174. characteristics dynamically, and there is the consequent danger that a
  175. large number of duplicate brushes will be created. Therefore an
  176. application may wish to get a pointer to a brush by using the global
  177. list of brushes \hy-8{144}{wxTheBrushList}, and calling the member function
  178. \hy-8{145}{FindOrCreateBrush}. See the entry for the \hy-8{146}{wxBrushList}
  179. class.
  180.  
  181. \hy-2{147}{wxBrush::wxBrush}
  182.  
  183. \hy-2{153}{wxBrush::~wxBrush}
  184.  
  185. \hy-2{156}{wxBrush::GetColour}
  186.  
  187. \hy-2{159}{wxBrush::GetStyle}
  188.  
  189. \hy-2{162}{wxBrush::SetColour}
  190.  
  191. \hy-2{167}{wxBrush::SetStyle}
  192.  
  193.  
  194. \hy-10{171}{wxBrushList: wxList}
  195.  
  196. A brush list is a list containing all brushes which have been created.
  197. There is only one instance of this class: \hy-8{172}{wxTheBrushList}.  Use
  198. this object to search for a previously created brush of the desired
  199. type and create it if not already found. In some windowing systems,
  200. the brush may be a scarce resource, so it is best to reuse old
  201. resources if possible.  When an application finishes, all brushes will
  202. be deleted and their resources freed, eliminating the possibility of
  203. `memory leaks'.
  204.  
  205. \hy-2{173}{wxBrushList::wxBrushList}
  206.  
  207. \hy-2{177}{wxBrushList::AddBrush}
  208.  
  209. \hy-2{180}{wxBrushList::FindOrCreateBrush}
  210.  
  211. \hy-2{184}{wxBrushList::RemoveBrush}
  212.  
  213.  
  214. \hy-10{188}{wxButton: wxItem}
  215.  
  216. \hy-2{189}{wxButton::wxButton}
  217.  
  218. \hy-2{195}{wxButton::~wxButton}
  219.  
  220.  
  221. \hy-10{199}{wxCanvas: wxWindow}
  222.  
  223. A canvas is a subwindow onto which graphics and text can be drawn, and mouse
  224. and keyboard input can be intercepted.  At present, panel items cannot be
  225. placed on a canvas.
  226.  
  227. To determine whether a canvas is colour or monochrome, test the canvas's
  228. device context \hy-8{200}{colour} Bool member variable.
  229.  
  230. \hy-2{201}{wxCanvas::wxCanvas}
  231.  
  232. \hy-2{204}{wxCanvas::~wxCanvas}
  233.  
  234. \hy-2{207}{wxCanvas::Clear}
  235.  
  236. \hy-2{210}{wxCanvas::DestroyClippingRegion}
  237.  
  238. \hy-2{213}{wxCanvas::DrawEllipse}
  239.  
  240. \hy-2{216}{wxCanvas::DrawLine}
  241.  
  242. \hy-2{219}{wxCanvas::DrawLines}
  243.  
  244. \hy-2{225}{wxCanvas::DrawPolygon}
  245.  
  246. \hy-2{231}{wxCanvas::DrawPoint}
  247.  
  248. \hy-2{234}{wxCanvas::DrawRectangle}
  249.  
  250. \hy-2{237}{wxCanvas::DrawRoundedRectangle}
  251.  
  252. \hy-2{240}{wxCanvas::DrawSpline}
  253.  
  254. \hy-2{244}{wxCanvas::DrawText}
  255.  
  256. \hy-2{247}{wxCanvas::GetDC}
  257.  
  258. \hy-2{253}{wxCanvas::ResetContext}
  259.  
  260. \hy-2{257}{wxCanvas::Scroll}
  261.  
  262. \hy-2{260}{wxCanvas::SetBackground}
  263.  
  264. \hy-2{263}{wxCanvas::SetClippingRegion}
  265.  
  266. \hy-2{266}{wxCanvas::SetContext}
  267.  
  268. \hy-2{270}{wxCanvas::SetBrush}
  269.  
  270. \hy-2{273}{wxCanvas::SetFont}
  271.  
  272. \hy-2{276}{wxCanvas::SetLogicalFunction}
  273.  
  274. \hy-2{279}{wxCanvas::SetPen}
  275.  
  276. \hy-2{282}{wxCanvas::SetScrollbars}
  277.  
  278. \hy-2{286}{wxCanvas::SetTextBackground}
  279.  
  280. \hy-2{290}{wxCanvas::SetTextForeground}
  281.  
  282. \hy-2{294}{wxCanvas::ViewStart}
  283.  
  284.  
  285. \hy-10{301}{wxCheckBox: wxItem}
  286.  
  287. A checkbox is a labelled box which is either on (checkmark is visible) or off (no checkmark).
  288.  
  289. \hy-2{302}{wxCheckBox::wxCheckBox}
  290.  
  291. \hy-2{308}{wxCheckBox::~wxCheckBox}
  292.  
  293. \hy-2{311}{wxCheckBox::GetValue}
  294.  
  295. \hy-2{314}{wxCheckBox::SetValue}
  296.  
  297.  
  298. \hy-10{318}{wxChoice: wxItem}
  299.  
  300. A choice item is used to select one of a list of strings. Unlike a
  301. listbox, only the selection is visible until the user pulls down the
  302. menu of choices. Under XView, all selections are visible when the menu
  303. is displayed. Under Windows 3, a scrolling list is displayed when the
  304. user wants to change the selection. Note that under XView, creating a
  305. choice item with a large number of strings takes a long time due to
  306. the inefficiency of Sun's implementation of the XView choice item.
  307.  
  308. \hy-2{319}{wxChoice::wxChoice}
  309.  
  310. \hy-2{328}{wxChoice::~wxChoice}
  311.  
  312. \hy-2{331}{wxChoice::Append}
  313.  
  314. \hy-2{335}{wxChoice::Clear}
  315.  
  316. \hy-2{338}{wxChoice::FindString}
  317.  
  318. \hy-2{341}{wxChoice::GetSelection}
  319.  
  320. \hy-2{344}{wxChoice::GetStringSelection}
  321.  
  322. \hy-2{347}{wxChoice::SetSelection}
  323.  
  324. \hy-2{350}{wxChoice::SetStringSelection}
  325.  
  326. \hy-2{353}{wxChoice::String}
  327.  
  328.  
  329. \hy-10{358}{wxClient: wxIPCObject}
  330.  
  331. A wxClient object represents the client part of a client-server DDE
  332. (Dynamic Data Exchange) conversation (available in \hy-7{359}{both}
  333. Windows and UNIX). 
  334.  
  335. \hy-2{360}{wxClient::wxClient}
  336.  
  337. \hy-2{363}{wxClient::MakeConnection}
  338.  
  339. \hy-2{367}{wxClient::OnMakeConnection}
  340.  
  341.  
  342. \hy-10{373}{wxColour: wxObject}
  343.  
  344. A colour is an object representing a Red, Green, Blue (RGB) combination
  345. of primary colours, and is used to determine drawing colours. See the
  346. entry for \hy-8{374}{wxColourDatabase} for how a pointer to a predefined,
  347. named colour may be returned instead of creating a new colour.
  348.  
  349. \hy-2{375}{wxColour::wxColour}
  350.  
  351. \hy-2{380}{wxColour::Get}
  352.  
  353. \hy-2{383}{wxColour::Set}
  354.  
  355.  
  356. \hy-10{387}{wxColourDatabase: wxObject}
  357.  
  358. wxWindows maintains a database of standard RGB colours for a predefined
  359. set of named colours (such as ``BLACK'', ``LIGHT GREY''). The
  360. application may add to this set if desired by using \hy-7{388}{Append}.  There
  361. is only one instance of this class: \hy-8{389}{wxTheColourDatabase}.
  362.  
  363. The colours in the standard database are as follows:
  364.  
  365. AQUAMARINE, BLACK, BLUE, BLUE VIOLET, BROWN, CADET BLUE, CORAL,
  366. CORNFLOWER BLUE, CYAN, DARK GREY, DARK GREEN, DARK OLIVE GREEN, DARK
  367. ORCHID, DARK SLATE BLUE, DARK SLATE GREY DARK TURQUOISE, DIM GREY,
  368. FIREBRICK, FOREST GREEN, GOLD, GOLDENROD, GREY, GREEN, GREEN YELLOW,
  369. INDIAN RED, KHAKI, LIGHT BLUE, LIGHT GREY, LIGHT STEEL BLUE, LIME GREEN,
  370. MAGENTA, MAROON, MEDIUM AQUAMARINE, MEDIUM BLUE, MEDIUM FOREST GREEN,
  371. MEDIUM GOLDENROD, MEDIUM ORCHID, MEDIUM SEA GREEN, MEDIUM SLATE BLUE,
  372. MEDIUM SPRING GREEN, MEDIUM TURQUOISE, MEDIUM VIOLET RED, MIDNIGHT BLUE,
  373. NAVY, ORANGE, ORANGE RED, ORCHID, PALE GREEN, PINK, PLUM, PURPLE, RED,
  374. SALMON, SEA GREEN, SIENNA, SKY BLUE, SLATE BLUE, SPRING GREEN, STEEL
  375. BLUE, TAN, THISTLE, TURQUOISE, VIOLET, VIOLET RED, WHEAT, WHITE, YELLOW,
  376. YELLOW GREEN.
  377.  
  378. Note that wxWindows' colour handling in XView canvases is poor and so
  379. only some of these colours are likely to show up. This should be
  380. improved in a subsequent release.
  381.  
  382.  
  383. \hy-2{390}{wxColourDatabase::wxColourDatabase}
  384.  
  385. \hy-2{393}{wxColourDatabase::FindColour}
  386.  
  387. \hy-2{396}{wxColourDatabase::FindName}
  388.  
  389. \hy-2{399}{wxColourDatabase::Initialize}
  390.  
  391.  
  392. \hy-10{403}{wxConnection: wxObject}
  393.  
  394. A wxConnection object represents the connection between a client and a
  395. server. It can be created by making a connection using a client object, or
  396. by the acceptance of a connection by a server object. It implements the
  397. bulk of a DDE (Dynamic Data Exchange) conversation (available in \hy-7{404}{
  398. both} Windows and UNIX).  
  399.  
  400. \hy-2{405}{wxConnection::wxConnection}
  401.  
  402. \hy-2{411}{wxConnection::Advise}
  403.  
  404. \hy-2{415}{wxConnection::Execute}
  405.  
  406. \hy-2{420}{wxConnection::Disconnect}
  407.  
  408. \hy-2{426}{wxConnection::OnAdvise}
  409.  
  410. \hy-2{429}{wxConnection::OnDisconnect}
  411.  
  412. \hy-2{432}{wxConnection::OnExecute}
  413.  
  414. \hy-2{435}{wxConnection::OnPoke}
  415.  
  416. \hy-2{438}{wxConnection::OnRequest}
  417.  
  418. \hy-2{443}{wxConnection::OnStartAdvise}
  419.  
  420. \hy-2{446}{wxConnection::OnStopAdvise}
  421.  
  422. \hy-2{449}{wxConnection::Poke}
  423.  
  424. \hy-2{453}{wxConnection::Request}
  425.  
  426. \hy-2{457}{wxConnection::StartAdvise}
  427.  
  428. \hy-2{461}{wxConnection::StopAdvise}
  429.  
  430.  
  431. \hy-10{466}{wxCursor: wxObject}
  432.  
  433. A cursor is a small bitmap usually used for denoting where the mouse
  434. pointer is, with a picture that might indicate the interpretation of a
  435. mouse click. As with icons, cursors in XView and Windows 3 are created
  436. in a different manner. Therefore, separate cursors will be created for the
  437. different environments.  Platform-specific methods for creating a \hy-8{467}{
  438. wxCursor} object are catered for, and this is an occasion where
  439. conditional compilation will probably be required (see \hy-8{468}{wxIcon} for
  440. an example).
  441.  
  442. A single cursor object may be used in many windows (any subwindow type).
  443. The wxWindows convention is to set the cursor for a window, as in XView, rather
  444. than to set it globally as in Windows 3, although a global \hy-8{469}{
  445. wxSetCursor} is also available for Windows 3 use.
  446.  
  447. Run the \hy-7{470}{hello} demo program to see what stock cursors are
  448. available.
  449.  
  450. \hy-2{471}{wxCursor::wxCursor}
  451.  
  452. \hy-2{477}{wxCursor::~wxCursor}
  453.  
  454.  
  455. \hy-10{481}{wxDC: wxObject}
  456.  
  457. A wxDC is \hy-7{482}{device context} onto which graphics and text can be drawn.
  458. It is intended to represent a number of output devices in a generic way,
  459. so a canvas has a device context and a printer also has a device context.
  460. In this way, the same piece of code may write to a number of different devices,
  461. if the device context is used as a parameter.
  462.  
  463. To determine whether a device context is colour or monochrome, test the
  464. \hy-8{483}{Colour} Bool member variable. To override wxWindows monochrome
  465. graphics drawing behaviour, set this member to TRUE.
  466.  
  467. \hy-2{484}{wxDC::wxDC}
  468.  
  469. \hy-2{493}{wxDC::~wxDC}
  470.  
  471. \hy-2{496}{wxDC::Blit}
  472.  
  473. \hy-2{501}{wxDC::Clear}
  474.  
  475. \hy-2{504}{wxDC::CreateCompatibleDC}
  476.  
  477. \hy-2{508}{wxDC::DestroyClippingRegion}
  478.  
  479. \hy-2{511}{wxDC::DeviceToLogicalX}
  480.  
  481. \hy-2{514}{wxDC::DeviceToLogicalY}
  482.  
  483. \hy-2{517}{wxDC::DrawEllipse}
  484.  
  485. \hy-2{520}{wxDC::DrawIcon}
  486.  
  487. \hy-2{523}{wxDC::DrawLine}
  488.  
  489. \hy-2{526}{wxDC::DrawLines}
  490.  
  491. \hy-2{532}{wxDC::DrawPolygon}
  492.  
  493. \hy-2{538}{wxDC::DrawPoint}
  494.  
  495. \hy-2{541}{wxDC::DrawRectangle}
  496.  
  497. \hy-2{544}{wxDC::DrawRoundedRectangle}
  498.  
  499. \hy-2{547}{wxDC::DrawSpline}
  500.  
  501. \hy-2{551}{wxDC::DrawText}
  502.  
  503. \hy-2{554}{wxDC::EndDoc}
  504.  
  505. \hy-2{557}{wxDC::EndPage}
  506.  
  507. \hy-2{560}{wxDC::GetMapMode}
  508.  
  509. \hy-2{565}{wxDC::LogicalToDeviceX}
  510.  
  511. \hy-2{568}{wxDC::LogicalToDeviceY}
  512.  
  513. \hy-2{571}{wxDC::Ok}
  514.  
  515. \hy-2{574}{wxDC::SelectObject}
  516.  
  517. \hy-2{580}{wxDC::SetBackground}
  518.  
  519. \hy-2{583}{wxDC::SetClippingRegion}
  520.  
  521. \hy-2{586}{wxDC::SetBrush}
  522.  
  523. \hy-2{589}{wxDC::SetFont}
  524.  
  525. \hy-2{592}{wxDC::SetLogicalFunction}
  526.  
  527. \hy-2{595}{wxDC::SetMapMode}
  528.  
  529. \hy-2{601}{wxDC::SetPen}
  530.  
  531. \hy-2{604}{wxDC::SetTextBackground}
  532.  
  533. \hy-2{608}{wxDC::SetTextForeground}
  534.  
  535. \hy-2{612}{wxDC::SetUserScale}
  536.  
  537. \hy-2{615}{wxDC::StartDoc}
  538.  
  539. \hy-2{618}{wxDC::StartPage}
  540.  
  541.  
  542. \hy-10{622}{wxDialogBox: wxPanel}
  543.  
  544. A dialog box is similar to a panel, with the following exceptions:
  545.  
  546.  
  547.  --  A surrounding frame is implicitly created.
  548.  --  Extra functionality is automatically given to the dialog box,
  549.   such as tabbing between items (currently Windows only).
  550.  --  If the dialog box is \hy-7{623}{modal}, the calling program is blocked
  551.   until the dialog box is dismissed.
  552.  
  553.  
  554. Under XView, some panel items may display incorrectly in a modal dialog.
  555. An XView bug-fix for list boxes is supplied with wxWindows, but some
  556. items remain a problem.
  557.  
  558. Note that under Windows 3, modal dialogs have to be emulated using
  559. modeless dialogs and a message loop. This is because Windows 3 expects
  560. the contents of a modal dialog to be loaded from a resource file or
  561. created on receipt of a dialog initialization message. This is too
  562. restrictive for wxWindows, where any window may be created and displayed
  563. before its contents are created.
  564.  
  565. It would be easy to add a facility for loading Windows 3 dialog
  566. resources instead of building them programmatically, but of course this
  567. method is very non-portable. 
  568.  
  569.  
  570.  
  571. \hy-2{624}{wxDialogBox::wxDialogBox}
  572.  
  573. \hy-2{628}{wxDialogBox::~wxDialogBox}
  574.  
  575. \hy-2{631}{wxDialogBox::Iconize}
  576.  
  577. \hy-2{634}{wxDialogBox::Iconized}
  578.  
  579. \hy-2{637}{wxDialogBox::Show}
  580.  
  581.  
  582. \hy-10{643}{wxEvent: wxObject}
  583.  
  584. An event is a general-purpose structure holding information about an
  585. event passed to a callback or member function.  Call member functions of
  586. \hy-8{644}{wxEvent} to find out information appropriate to the kind of event,
  587. or query the wxWindow object itself (for example list box, canvas) to find out
  588. the status of the object.
  589.  
  590. \hy-2{645}{wxEvent::wxEvent}
  591.  
  592. \hy-2{648}{wxEvent::~wxEvent}
  593.  
  594. \hy-2{651}{wxEvent::Button}
  595.  
  596. \hy-2{655}{wxEvent::ButtonDown}
  597.  
  598. \hy-2{658}{wxEvent::ControlDown}
  599.  
  600. \hy-2{661}{wxEvent::Dragging}
  601.  
  602. \hy-2{664}{wxEvent::IsButton}
  603.  
  604. \hy-2{668}{wxEvent::LeftDown}
  605.  
  606. \hy-2{671}{wxEvent::LeftUp}
  607.  
  608. \hy-2{674}{wxEvent::MiddleDown}
  609.  
  610. \hy-2{677}{wxEvent::MiddleUp}
  611.  
  612. \hy-2{680}{wxEvent::Position}
  613.  
  614. \hy-2{686}{wxEvent::RightDown}
  615.  
  616. \hy-2{689}{wxEvent::RightUp}
  617.  
  618. \hy-2{692}{wxEvent::ShiftDown}
  619.  
  620.  
  621. \hy-10{696}{wxFont: wxObject}
  622.  
  623. A font is an object which determines the appearance of text, primarily
  624. when drawing text to a canvas or device context. A font is determined by
  625. four parameters:
  626.  
  627.  
  628.  --  Point size.  This is the standard way of referring to text size.
  629.  --  Family.  Supported families are:
  630.   wxDEFAULT, wxDECORATIVE, wxROMAN, wxSCRIPT, wxSWISS, wxMODERN.
  631.   wxMODERN is a fixed pitch font; the others are either fixed or variable pitch.
  632.  --  Style. The value can be wxNORMAL, wxSLANT or wxITALIC.
  633.  --  Weight. The value can be wxNORMAL, wxLIGHT or wxBOLD.
  634.  
  635.  
  636. There is currently a difference between the appearance of fonts on the
  637. two platforms, if the mapping mode is anything other than MM_TEXT.
  638. Under X, font size is always specified in points. Under Windows, the
  639. unit for text is points but the text is scaled according to the
  640. current mapping mode.  However, user scaling on a device canvas will
  641. also scale fonts under both environments. A future version of
  642. wxWindows will attempt to make font appearance more consistent across
  643. platforms.
  644.  
  645. \hy-2{697}{wxFont::wxFont}
  646.  
  647. \hy-2{701}{wxFont::~wxFont}
  648.  
  649. \hy-2{704}{wxFont::GetPointSize}
  650.  
  651.  
  652. \hy-10{708}{wxForm: wxObject}
  653.  
  654. \hy-8{709}{The purpose of the form class}
  655.  
  656. The wxForm is a stab at providing form-like functionality, relieving the
  657. programmer of the tedium of defining all the physical panel items and
  658. the callbacks handling out-of-range data. It allows the application
  659. writer to write form dialogs quickly (albeit programmatically) with
  660. panel items being chosen automatically according to the given
  661. constraints. The supplied form demo shows how succinct a form
  662. definition can be. A form gets laid out from left to right; the
  663. programmer can intersperse new lines and specify item sizes, but for
  664. brevity no more control is allowed.
  665.  
  666. A form does not presuppose a particular type of panel: any window
  667. derived from wxPanel may be associated with a form, once the form has
  668. been built by adding form items. Also, a form reads from and writes to
  669. any C++ variables in your program - just supply pointers to the variables,
  670. and the form handles the rest.
  671.  
  672. \hy-8{710}{Constraints on form items}
  673.  
  674. Each item in a form may be supplied with zero or more constraints, where
  675. the range of possible constraints depends on the data type, and the
  676. displayed panel item depends upon the data type and the constraint(s)
  677. given.  For example, a string form item with a list of possible strings
  678. as a constraint will produce a list box on the panel; an integer form
  679. item with a range constraint will result in a slider being displayed.
  680. The user may define his or her own constraint by passing a function as a
  681. constraint which returns FALSE if the constraint was violated, TRUE
  682. otherwise.  The function should write an appropriate message into the
  683. buffer passed to it if the constraint was violated.
  684.  
  685. \hy-8{711}{Form appearance}
  686.  
  687. Once displayed on a panel, a form shows Ok, Cancel, Update and Revert
  688. buttons along the top, with the user-supplied items below. When the user
  689. presses Ok, the form items are checked for violation of constraints; if
  690. any violations are found, an appropriate error message is displayed and
  691. the user must correct the mistake (or press Cancel, which leaves the
  692. item values as they were after the last Update). Pressing Update also
  693. checks the constraints and updates the values, but typically does not
  694. dismiss the dialog. Revert causes the displayed values to take on the
  695. values at the last Update. By default, the OnOk and OnCancel messages
  696. dismiss and delete the dialog box and form, but these may be overridden
  697. by the application (see below).
  698.  
  699. The display-type values which may be passed to a form-item creation
  700. function are as follows:
  701.  
  702.  
  703.  --  wxFORM_DEFAULT: let wxWindows choose a suitable panel item
  704.  --  wxFORM_SINGLE_LIST: use a single-selection listbox. Default for
  705. string item with a one-of constraint
  706.  --  wxFORM_CHOICE: use a choice item
  707.  --  wxFORM_CHECKBOX: use a checkbox. Default for boolean item
  708.  --  wxFORM_TEXT: use a single-line text item. Default for floating
  709. point item, and for string and integer items with no constraints
  710.  --  wxFORM_MULTITEXT: use a multi-line text item
  711.  --  wxFORM_SLIDER: use a slider. Default for integer item with range
  712. constraint
  713.  
  714.  
  715. The wxFormItem and wxFormItemConstraint classes are not detailed in this
  716. manual since their members do not need to be directly accessed by the
  717. user. Functions for creating form items and constraints for passing to
  718. \hy-8{712}{wxForm::Add} are given in the next subsection.
  719.  
  720. \hy-8{713}{Example}
  721.  
  722. The following is an example of a form definition, taken from the form demo.
  723. Here, a new form \hy-8{714}{MyForm} has been derived, and a new member \hy-8{715}{
  724. EditForm} has been defined to edit objects of the type \hy-8{716}{MyObject},
  725. given a panel to display it on.
  726.  
  727. \hy-14{717}{void MyForm::EditForm(MyObject *object, wxPanel *panel)
  728. {
  729.   Add(wxMakeFormString("string 1", &(object->string1), wxFORM_DEFAULT,
  730.                        new wxList(wxMakeConstraintFunction(MyConstraint), 0)));
  731.   Add(wxMakeFormNewLine());
  732.  
  733.   Add(wxMakeFormString("string 2", &(object->string2), wxFORM_DEFAULT,
  734.                   new wxList(wxMakeConstraintStrings("One", "Two", "Three", 0), 0)));
  735.   Add(wxMakeFormString("string 3", &(object->string3), wxFORM_CHOICE,
  736.                        new wxList(wxMakeConstraintStrings("Pig", "Cow",
  737.                                   "Aardvark", "Gorilla", 0), 0)));
  738.   Add(wxMakeFormNewLine());
  739.   Add(wxMakeFormShort("int 1", &(object->int1), wxFORM_DEFAULT,
  740.                        new wxList(wxMakeConstraintRange(0.0, 50.0), 0)));
  741.   Add(wxMakeFormNewLine());
  742.  
  743.   Add(wxMakeFormFloat("float 1", &(object->float1), wxFORM_DEFAULT,
  744.                        new wxList(wxMakeConstraintRange(-100.0, 100.0), 0)));
  745.   Add(wxMakeFormBool("bool 1", &(object->bool1)));
  746.   Add(wxMakeFormNewLine());
  747.  
  748.   Add(wxMakeFormButton("Test button", (wxFunction)MyButtonProc));
  749.  
  750.   AssociatePanel(panel);
  751. }
  752. }
  753. \hy-2{718}{wxForm::wxForm}
  754.  
  755. \hy-2{721}{wxForm::~wxForm}
  756.  
  757. \hy-2{724}{wxForm::Add}
  758.  
  759. \hy-2{727}{wxForm::FindItem}
  760.  
  761. \hy-2{730}{wxForm::Set}
  762.  
  763. \hy-2{733}{wxForm::Delete}
  764.  
  765. \hy-2{736}{wxForm::AssociatePanel}
  766.  
  767. \hy-2{739}{wxForm::OnCancel}
  768.  
  769. \hy-2{743}{wxForm::OnOk}
  770.  
  771. \hy-2{747}{wxForm::OnRevert}
  772.  
  773. \hy-2{750}{wxForm::OnUpdate}
  774.  
  775. \hy-2{753}{wxForm::RevertValues}
  776.  
  777. \hy-2{756}{wxForm::UpdateValues}
  778.  
  779.  
  780. \hy-10{789}{wxFrame: wxWindow}
  781.  
  782. A frame is a window which contains subwindows of various kinds. It has a
  783. title bar and, optionally, a menu bar, and a status line.  Depending on
  784. the platform, the frame has further menus or buttons relating to window
  785. movement, sizing, closing, etc. Most of these events are handled by the host
  786. system without need for special handling by the application. However,
  787. the application should normally define an \hy-8{790}{OnClose} handler for the
  788. frame so that related data and subwindows can be cleaned up.
  789.  
  790. The Windows 3 issues of Multiple Document Interface (MDI) versus Single
  791. Document Interface (SDI) frames are covered in section mdi and in
  792. the tutorial.
  793.  
  794. \hy-2{791}{wxFrame::wxFrame}
  795.  
  796. \hy-2{795}{wxFrame::~wxFrame}
  797.  
  798. \hy-2{798}{wxFrame::Centre}
  799.  
  800. \hy-2{801}{wxFrame::CreateStatusLine}
  801.  
  802. \hy-2{804}{wxFrame::Iconize}
  803.  
  804. \hy-2{807}{wxFrame::Iconized}
  805.  
  806. \hy-2{810}{wxFrame::OnMenuCommand}
  807.  
  808. \hy-2{813}{wxFrame::OnMenuSelect}
  809.  
  810. \hy-2{817}{wxFrame::SetIcon}
  811.  
  812. \hy-2{821}{wxFrame::SetMenuBar}
  813.  
  814. \hy-2{824}{wxFrame::SetStatusText}
  815.  
  816. \hy-2{827}{wxFrame::StatusLineExists}
  817.  
  818.  
  819. \hy-10{831}{wxFunction}
  820.  
  821.  
  822. \hy-10{834}{wxIcon: wxObject}
  823.  
  824. An icon is a small rectangular bitmap usually used for denoting a
  825. minimized application. It is optional (but desirable) to associate a
  826. pertinent icon with a frame. Obviously icons in XView and Windows 3 are
  827. created in a different manner, and colour icons in XView are difficult
  828. to arrange. Therefore, separate icons will be created for the different
  829. environments.  Platform-specific methods for creating a \hy-8{835}{wxIcon}
  830. structure are catered for, and this is an occasion where conditional
  831. compilation will probably be required.
  832.  
  833. Note that a new icon must be created for every time the icon is to be
  834. used for a new window. In XView, this will ensure that fresh X resources
  835. are allocated for this frame. In Windows 3, the icon will not be
  836. reloaded if it has already been used. An icon allocated to a frame will
  837. be deleted when the frame is deleted.
  838.  
  839. The following shows the conditional compilation required to define an
  840. icon in XView and in Windows 3. The alternative is to use the string
  841. version of the icon constructor, which loads a file under XView and a
  842. resource under Windows 3, but has the disadvantage of requiring the
  843. XView icon file to be available at run-time. If anyone can invent a
  844. scheme or macro which does the following more elegantly and
  845. platform-independently, I'd like to see it!
  846.  
  847. \hy-14{836}{#ifdef wx_x
  848. short aiai_bits[] ={
  849. #include "aiai.icon"
  850. };
  851. #endif
  852. #ifdef wx_msw
  853.   wxIcon *icon = new wxIcon("aiai");
  854. #endif
  855. #ifdef wx_x
  856.   wxIcon *icon = new wxIcon(aiai_bits, 64, 64);
  857. #endif
  858. }
  859. \hy-2{837}{wxIcon::wxIcon}
  860.  
  861. \hy-2{842}{wxIcon::~wxIcon}
  862.  
  863.  
  864. \hy-10{846}{wxHashTable: wxObject}
  865.  
  866. This class provides hash table functionality for wxWindows, and for an
  867. application if it wishes.  Data can be hashed on an integer or string
  868. key.  Below is an example of using a hash table.
  869.  
  870. \hy-14{847}{  wxHashTable table(KEY_STRING);
  871.  
  872.   wxPoint *point = new wxPoint(100, 200);
  873.   table.Put("point 1", point);
  874.  
  875.   ....
  876.  
  877.   wxPoint *found_point = (wxPoint *)table.Get("point 1");
  878. }
  879. A hash table is implemented as an array of pointers to lists. When no
  880. data has been stored, the hash table takes only a little more space than
  881. this array (default size is 1000).  When a data item is added, an
  882. integer is constructed from the integer or string key that is within the
  883. bounds of the array. If the array element is NULL, a new (keyed) list is
  884. created for the element. Then the data object is appended to the list,
  885. storing the key in case other data objects need to be stored in the list
  886. also (when a `collision' occurs).
  887.  
  888. Retrieval involves recalculating the array index from the key, and searching
  889. along the keyed list for the data object whose stored key matches the passed
  890. key. Obviously this is quicker when there are fewer collisions, so hashing
  891. will become inefficient if the number of items to be stored greatly exceeds
  892. the size of the hash table.
  893.  
  894. \hy-2{848}{wxHashTable::wxHashTable}
  895.  
  896. \hy-2{853}{wxHashTable::~wxHashTable}
  897.  
  898. \hy-2{856}{wxHashTable::BeginFind}
  899.  
  900. \hy-2{862}{wxHashTable::Clear}
  901.  
  902. \hy-2{865}{wxHashTable::Delete}
  903.  
  904. \hy-2{869}{wxHashTable::Get}
  905.  
  906. \hy-2{873}{wxHashTable::MakeKey}
  907.  
  908. \hy-2{876}{wxHashTable::Next}
  909.  
  910. \hy-2{884}{wxHashTable::Put}
  911.  
  912.  
  913. \hy-10{889}{wxHelpInstance: wxClient}
  914.  
  915. The \hy-8{890}{wxHelpInstance} class implements the interface by which
  916. applications may invoke wxHelp to provide on-line help. Each instance
  917. of the class maintains one connection to an instance of wxHelp which
  918. belongs to the application, and which is shut down when the Quit
  919. member of \hy-8{891}{wxHelpInstance} is called (for example in the \hy-8{892}{
  920. OnClose} member of an application's main frame). Under Windows 3,
  921. there is currently only one instance of wxHelp which is used by all
  922. applications.
  923.  
  924. Since there is a DDE link between the two programs, each subsequent
  925. request to display a file or section uses the existing instance of
  926. wxHelp, rather than starting a new instance each time. wxHelp thus
  927. appears to the user to be an extension of the current application.
  928. wxHelp may also be invoked independently of a client application.
  929.  
  930. Normally an application will create an instance of \hy-8{893}{
  931. wxHelpInstance} when it starts, and immediately call \hy-8{894}{Initialize}
  932. to associate a filename with it. wxHelp will only get run, however,
  933. just before the first call to display something. See the test program
  934. supplied with the wxHelp source.
  935.  
  936. Include the file wx_help.h to use this API, even if you have
  937. included wx.h.
  938.  
  939. \hy-2{895}{wxHelpInstance::wxHelpInstance}
  940.  
  941. \hy-2{898}{wxHelpInstance::~wxHelpInstance}
  942.  
  943. \hy-2{900}{wxHelpInstance::Initialize}
  944.  
  945. \hy-2{903}{wxHelpInstance::DisplayBlock}
  946.  
  947. \hy-2{906}{wxHelpInstance::DisplayContents}
  948.  
  949. \hy-2{909}{wxHelpInstance::DisplaySection}
  950.  
  951. \hy-2{912}{wxHelpInstance::KeywordSearch}
  952.  
  953. \hy-2{915}{wxHelpInstance::LoadFile}
  954.  
  955. \hy-2{919}{wxHelpInstance::OnQuit}
  956.  
  957. \hy-2{922}{wxHelpInstance::Quit}
  958.  
  959.  
  960. \hy-10{926}{wxItem: wxWindow}
  961.  
  962. \hy-2{927}{wxItem::Centre}
  963.  
  964. \hy-2{932}{wxItem::SetDefault}
  965.  
  966. \hy-2{936}{wxItem::SetLabel}
  967.  
  968. \hy-2{939}{wxItem::GetLabel}
  969.  
  970.  
  971. \hy-10{943}{wxList: wxObject}
  972.  
  973. This class provides linked list functionality for wxWindows, and for an application
  974. if it wishes.  Depending on the form of constructor used, a list can be keyed on
  975. integer or string keys to provide a primitive look-up ability. See \hy-8{944}{wxHashTable}
  976. for a faster method of storage when random access is required.  It is very
  977. common to iterate on a list as follows:
  978.  
  979. \hy-14{945}{  ...
  980.   wxPoint *point1 = new wxPoint(100, 100);
  981.   wxPoint *point2 = new wxPoint(200, 200);
  982.  
  983.   wxList SomeList;
  984.   SomeList.Append(point1);
  985.   SomeList.Append(point2);
  986.  
  987.   ...
  988.  
  989.   wxNode *node = SomeList.First();
  990.   while (node)
  991.  {
  992.     wxPoint *point = (wxPoint *)node->Data();
  993.     ...
  994.     node = node->Next();
  995.   }
  996. }
  997. To delete nodes in a list as the list is being traversed, replace
  998.  
  999. \hy-14{946}{    ...
  1000.     node = node->Next();
  1001.     ...
  1002. }
  1003. with
  1004.  
  1005. \hy-14{947}{    ...
  1006.     delete point;
  1007.     delete node;
  1008.     node = SomeList.First();
  1009.     ...
  1010. }
  1011. See \hy-8{948}{wxNode} for members that retrieve the data associated with a node, and
  1012. members for getting to the next or previous node.
  1013.  
  1014. Note that a cast is required when retrieving the data from a node.  Although a
  1015. node is defined to store objects of type \hy-8{949}{wxObject} and derived types, other
  1016. types (such as char *) may be used with appropriate casting.
  1017.  
  1018. \hy-2{950}{wxList::wxList}
  1019.  
  1020. \hy-2{959}{wxList::~wxList}
  1021.  
  1022. \hy-2{962}{wxList::Append}
  1023.  
  1024. \hy-2{969}{wxList::Clear}
  1025.  
  1026. \hy-2{972}{wxList::DeleteContents}
  1027.  
  1028. \hy-2{977}{wxList::DeleteNode}
  1029.  
  1030. \hy-2{980}{wxList::DeleteObject}
  1031.  
  1032. \hy-2{984}{wxList::Find}
  1033.  
  1034. \hy-2{989}{wxList::First}
  1035.  
  1036. \hy-2{992}{wxList::Insert}
  1037.  
  1038. \hy-2{997}{wxList::Last}
  1039.  
  1040. \hy-2{1000}{wxList::Member}
  1041.  
  1042. \hy-2{1004}{wxList::Nth}
  1043.  
  1044. \hy-2{1008}{wxList::Number}
  1045.  
  1046.  
  1047. \hy-10{1012}{wxListBox: wxItem}
  1048.  
  1049. A list box is used to select one or more of a list of strings. The
  1050. strings are displayed in a scrolling box, with the selected string(s)
  1051. marked in reverse video. A list item can be single selection (if an item
  1052. is selected, the previous selection is removed) or multiple selection
  1053. (clicking an item toggles the item on or off independently of other
  1054. selections).
  1055.  
  1056. \hy-2{1013}{wxListBox::wxListBox}
  1057.  
  1058. \hy-2{1023}{wxListBox::~wxListBox}
  1059.  
  1060. \hy-2{1026}{wxListBox::Append}
  1061.  
  1062. \hy-2{1032}{wxListBox::Clear}
  1063.  
  1064. \hy-2{1035}{wxListBox::Clientdata}
  1065.  
  1066. \hy-2{1038}{wxListBox::Deselect}
  1067.  
  1068. \hy-2{1041}{wxListBox::FindString}
  1069.  
  1070. \hy-2{1044}{wxListBox::GetSelection}
  1071.  
  1072. \hy-2{1047}{wxListBox::GetSelections}
  1073.  
  1074. \hy-2{1050}{wxListBox::GetStringSelection}
  1075.  
  1076. \hy-2{1053}{wxListBox::Set}
  1077.  
  1078. \hy-2{1056}{wxListBox::SetSelection}
  1079.  
  1080. \hy-2{1059}{wxListBox::SetStringSelection}
  1081.  
  1082. \hy-2{1062}{wxListBox::String}
  1083.  
  1084.  
  1085. \hy-10{1067}{wxMenu: wxItem}
  1086.  
  1087. A menu is a popup (or pull down) list of items, one of which may be selected before the
  1088. menu goes away (clicking elsewhere dismisses the menu).  At present, menus may only
  1089. be used to construct menu bars, but will eventually have wider use.
  1090.  
  1091. A menu item has an integer ID associated with it which can be used to
  1092. identify the selection, or to change the menu item in some way.
  1093.  
  1094. \hy-2{1068}{wxMenu::wxMenu}
  1095.  
  1096. \hy-2{1071}{wxMenu::~wxMenu}
  1097.  
  1098. \hy-2{1074}{wxMenu::Append}
  1099.  
  1100. \hy-2{1080}{wxMenu::AppendSeparator}
  1101.  
  1102. \hy-2{1083}{wxMenu::Enable}
  1103.  
  1104. \hy-2{1087}{wxMenu::Check}
  1105.  
  1106.  
  1107. \hy-10{1092}{wxMenuBar: wxItem}
  1108.  
  1109. A menu bar is a series of menus accessible from the top of a frame.
  1110. Selecting a title pulls down a menu; selecting a menu item causes a \hy-7{1093}{
  1111. MenuSelection} message to be passed to the frame with the menu item
  1112. integer id as the only argument.
  1113.  
  1114. \hy-2{1094}{wxMenuBar::wxMenuBar}
  1115.  
  1116. \hy-2{1098}{wxMenuBar::~wxMenuBar}
  1117.  
  1118. \hy-2{1101}{wxMenuBar::Append}
  1119.  
  1120. \hy-2{1105}{wxMenuBar::Enable}
  1121.  
  1122. \hy-2{1109}{wxMenuBar::Check}
  1123.  
  1124.  
  1125. \hy-10{1114}{wxMessage: wxItem}
  1126.  
  1127. A message is a simple line of text which may be displayed in a panel. It does not
  1128. respond to mouse clicks.
  1129.  
  1130. \hy-2{1115}{wxMessage::wxMessage}
  1131.  
  1132. \hy-2{1118}{wxMessage::~wxMessage}
  1133.  
  1134.  
  1135. \hy-10{1122}{wxMetaFile: wxObject}
  1136.  
  1137. A wxMetaFile represents the Windows 3 metafile object, so metafile
  1138. operations have no effect in X. In wxWindows, only sufficient functionality
  1139. has been provided for copying a graphic to the clipboard; this may be extended
  1140. in a future version. Presently, the only way of creating a metafile
  1141. is to use a wxMetafileDC.
  1142.  
  1143. \hy-2{1123}{wxMetaFile::wxMetaFile}
  1144.  
  1145. \hy-2{1126}{wxMetaFile::~wxMetaFile}
  1146.  
  1147. \hy-2{1129}{wxMetaFile::SetClipboard}
  1148.  
  1149.  
  1150. \hy-10{1133}{wxMetaFileDC: wxDC}
  1151.  
  1152. This is a type of device context that allows a metafile object to be
  1153. created (Windows only), and has most of the characteristics of a normal
  1154. wxDC. The \hy-8{1134}{Close} member must be called after drawing into the
  1155. device context, to return a metafile. The only purpose for this at
  1156. present is to allow the metafile to be copied to the clipboard (see \hy-8{1135}{wxMetaFile}).
  1157.  
  1158. Adding metafile capability to an application should be easy if you
  1159. already write to a wxDC; simply pass the wxMetaFileDC to your drawing
  1160. function instead. You may wish to conditionally compile this code so it
  1161. is not compiled under X (although no harm will result if you leave it
  1162. in).
  1163.  
  1164. \hy-2{1136}{wxMetaFileDC::wxMetaFileDC}
  1165.  
  1166. \hy-2{1139}{wxMetaFileDC::~wxMetaFileDC}
  1167.  
  1168. \hy-2{1142}{wxMetaFileDC::Close}
  1169.  
  1170.  
  1171. \hy-10{1146}{wxMultiText: wxText}
  1172.  
  1173. Members as for \hy-8{1147}{wxText}, but allowing multiple lines of text.
  1174.  
  1175.  
  1176. \hy-10{1149}{wxNode: wxObject}
  1177.  
  1178. A node structure used in linked lists (see \hy-8{1150}{wxList}).
  1179.  
  1180. \hy-2{1151}{wxNode::Data}
  1181.  
  1182. \hy-2{1154}{wxNode::Next}
  1183.  
  1184. \hy-2{1157}{wxNode::Previous}
  1185.  
  1186. \hy-2{1160}{wxNode::SetData}
  1187.  
  1188.  
  1189. \hy-10{1164}{wxObject}
  1190.  
  1191. This is the root class of all wxWindows classes, and has no base
  1192. functionality.  It declares a virtual destructor which ensures that
  1193. destructors get called for all derived class objects where necessary.
  1194.  
  1195.  
  1196. \hy-10{1166}{wxPanel: wxWindow}
  1197.  
  1198. A panel is a subwindow of a frame in which \hy-7{1167}{panel items} can be placed to allow
  1199. the user to view and set controls. Panel items include messages, text items, list items,
  1200. and check boxes. Use \hy-8{1168}{Fit} to fit the panel around its items.
  1201.  
  1202. \hy-2{1169}{wxPanel::wxPanel}
  1203.  
  1204. \hy-2{1172}{wxPanel::~wxPanel}
  1205.  
  1206. \hy-2{1175}{wxPanel::GetCursor}
  1207.  
  1208. \hy-2{1178}{wxPanel::GetHorizontalSpacing}
  1209.  
  1210. \hy-2{1181}{wxPanel::GetVerticalSpacing}
  1211.  
  1212. \hy-2{1184}{wxPanel::NewLine}
  1213.  
  1214. \hy-2{1187}{wxPanel::SetHorizontalSpacing}
  1215.  
  1216. \hy-2{1190}{wxPanel::SetLabelPosition}
  1217.  
  1218. \hy-2{1198}{wxPanel::SetVerticalSpacing}
  1219.  
  1220. \hy-2{1201}{wxPanel::Tab}
  1221.  
  1222.  
  1223. \hy-10{1205}{wxPathList: wxList}
  1224.  
  1225. The path list is a convenient way of storing a number of directories, and
  1226. when presented with a filename without a directory, searching for an existing file
  1227. in those directories.  Storing the filename only in an application's files and
  1228. using a locally-defined list of directories makes the application and its files more
  1229. portable.
  1230.  
  1231. Use the \hy-7{1206}{FileNameFromPath} global function to extract the filename
  1232. from the path.
  1233.  
  1234. \hy-2{1207}{wxPathList::wxPathList}
  1235.  
  1236. \hy-2{1210}{wxPathList::AddEnvList}
  1237.  
  1238. \hy-2{1213}{wxPathList::AddPath}
  1239.  
  1240. \hy-2{1216}{wxPathList::FindValidPath}
  1241.  
  1242. \hy-2{1220}{wxPathList::Member}
  1243.  
  1244.  
  1245. \hy-10{1224}{wxPen: wxObject}
  1246.  
  1247. A pen is a drawing tool for drawing outlines. It is used for drawing
  1248. lines and painting the outline of rectangles, ellipses, etc.  It has a
  1249. colour, a width and a style. On a monochrome display, the default
  1250. behaviour is to show all non-white pens as black. To change this,
  1251. set the \hy-8{1225}{Colour} member of the device context to TRUE, and select
  1252. appropriate colours.
  1253.  
  1254. The style may be one of wxSOLID, wxDOT, wxLONG_DASH, wxSHORT_DASH and
  1255. wxDOT_DASH. The names of these styles should be self explanatory.
  1256.  
  1257. Do not initialize objects on the stack before the program commences,
  1258. since other required structures may not have been set up yet. Instead,
  1259. define global pointers to objects and create them in \hy-7{1226}{OnInit} or
  1260. when required.
  1261.  
  1262. An application may wish to dynamically create pens with different
  1263. characteristics, and there is the consequent danger that a large number
  1264. of duplicate pens will be created. Therefore an application may wish to
  1265. get a pointer to a pen by using the global list of pens \hy-8{1227}{
  1266. wxThePenList}, and calling the member function \hy-8{1228}{FindOrCreatePen}.
  1267. See the entry for the \hy-8{1229}{wxPenList} class.
  1268.  
  1269. \hy-2{1230}{wxPen::wxPen}
  1270.  
  1271. \hy-2{1236}{wxPen::~wxPen}
  1272.  
  1273. \hy-2{1239}{wxPen::GetColour}
  1274.  
  1275. \hy-2{1242}{wxPen::GetStyle}
  1276.  
  1277. \hy-2{1245}{wxPen::GetWidth}
  1278.  
  1279. \hy-2{1248}{wxPen::SetColour}
  1280.  
  1281. \hy-2{1253}{wxPen::SetStyle}
  1282.  
  1283. \hy-2{1256}{wxPen::SetWidth}
  1284.  
  1285.  
  1286. \hy-10{1260}{wxPenList: wxList}
  1287.  
  1288. A pen list is a list containing all pens which have been created. There
  1289. is only one instance of this class: \hy-8{1261}{wxThePenList}.  Use this object to search
  1290. for a previously created pen of the desired type and create it if not already found.
  1291. In some windowing systems, the pen may be a scarce resource, so it is best to
  1292. reuse old resources if possible.  When an application finishes, all pens will be
  1293. deleted and their resources freed, eliminating the possibility of `memory leaks'.
  1294.  
  1295. \hy-2{1262}{wxPenList::wxPenList}
  1296.  
  1297. \hy-2{1266}{wxPenList::AddPen}
  1298.  
  1299. \hy-2{1269}{wxPenList::FindOrCreatePen}
  1300.  
  1301. \hy-2{1273}{wxPenList::RemovePen}
  1302.  
  1303.  
  1304. \hy-10{1277}{wxPoint: wxObject}
  1305.  
  1306. A \hy-8{1278}{wxPoint} is a useful data structure for graphics operations.
  1307. It simply contains floating point \hy-7{1279}{x} and \hy-7{1280}{y} members.
  1308.  
  1309. \hy-2{1281}{wxPoint::wxPoint}
  1310.  
  1311.  
  1312. \hy-10{1289}{wxServer: wxIPCObject}
  1313.  
  1314. A wxServer object represents the server part of a client-server DDE
  1315. (Dynamic Data Exchange) conversation (available in \hy-7{1290}{both} Windows
  1316. and UNIX). 
  1317.  
  1318. \hy-2{1291}{wxServer::wxServer}
  1319.  
  1320. \hy-2{1294}{wxServer::Create}
  1321.  
  1322. \hy-2{1297}{wxServer::OnAcceptConnection}
  1323.  
  1324.  
  1325. \hy-10{1302}{wxSlider: wxItem}
  1326.  
  1327. \hy-2{1303}{wxSlider::wxSlider}
  1328.  
  1329. \hy-2{1307}{wxSlider::~wxSlider}
  1330.  
  1331. \hy-2{1310}{wxSlider::GetValue}
  1332.  
  1333. \hy-2{1313}{wxSlider::SetValue}
  1334.  
  1335.  
  1336. \hy-10{1317}{wxStringList: wxList}
  1337.  
  1338. A string list is a list which is assumed to contain strings, with a
  1339. specific member functions. Memory is allocated when strings are added to
  1340. the list, and deallocated by the destructor or by the \hy-8{1318}{Delete}
  1341. member.
  1342.  
  1343. \hy-2{1319}{wxStringList::wxStringList}
  1344.  
  1345. \hy-2{1323}{wxStringList::~wxStringList}
  1346.  
  1347. \hy-2{1326}{wxStringList::Add}
  1348.  
  1349. \hy-2{1329}{wxStringList::Delete}
  1350.  
  1351. \hy-2{1332}{wxStringList::ListToArray}
  1352.  
  1353. \hy-2{1336}{wxStringList::Member}
  1354.  
  1355. \hy-2{1341}{wxStringList::Sort}
  1356.  
  1357.  
  1358. \hy-10{1345}{wxText: wxWindow}
  1359.  
  1360. \hy-2{1346}{wxText::wxText}
  1361.  
  1362. \hy-2{1352}{wxText::~wxText}
  1363.  
  1364. \hy-2{1355}{wxText::GetValue}
  1365.  
  1366. \hy-2{1358}{wxText::SetValue}
  1367.  
  1368.  
  1369. \hy-10{1363}{wxTextWindow: wxWindow}
  1370.  
  1371. A text window is a subwindow of a frame, offering some basic ability to
  1372. display scrolling text. At present, editing is only possible on the XView
  1373. implementation.
  1374.  
  1375. \hy-2{1364}{wxTextWindow::wxTextWindow}
  1376.  
  1377. \hy-2{1367}{wxTextWindow::~wxTextWindow}
  1378.  
  1379. \hy-2{1370}{wxTextWindow::Clear}
  1380.  
  1381. \hy-2{1373}{wxTextWindow::DiscardEdits}
  1382.  
  1383. \hy-2{1377}{wxTextWindow::LoadFile}
  1384.  
  1385. \hy-2{1380}{wxTextWindow::Modified}
  1386.  
  1387. \hy-2{1383}{wxTextWindow::SaveFile}
  1388.  
  1389. \hy-2{1386}{wxTextWindow::WriteText}
  1390.  
  1391. \hy-2{1389}{wxTextWindow::<<}
  1392.  
  1393.  
  1394. \hy-10{1399}{wxTimer: wxObject}
  1395.  
  1396. The wxTimer object is an abstraction of Windows 3 and XView timers. To
  1397. use it, derive a new class and override the \hy-8{1400}{Notify} member to
  1398. perform the required action. Start with \hy-8{1401}{Start}, stop with \hy-8{1402}{
  1399. Stop}, it's as simple as that.
  1400.  
  1401. \hy-2{1403}{wxTimer::wxTimer}
  1402.  
  1403. \hy-2{1406}{wxTimer::~wxTimer}
  1404.  
  1405. \hy-2{1409}{wxTimer::Notify}
  1406.  
  1407. \hy-2{1412}{wxTimer::Start}
  1408.  
  1409. \hy-2{1416}{wxTimer::Stop}
  1410.  
  1411.  
  1412. \hy-10{1420}{wxWindow: wxObject}
  1413.  
  1414. wxWindow is the base class for all windows and panel items.  Any
  1415. children of the window will be deleted automatically by the destructor
  1416. before the window itself is deleted.
  1417.  
  1418. \hy-2{1421}{wxWindow::wxWindow}
  1419.  
  1420. \hy-2{1424}{wxWindow::~wxWindow}
  1421.  
  1422. \hy-2{1427}{wxWindow::AddChild}
  1423.  
  1424. \hy-2{1430}{wxWindow::Center}
  1425.  
  1426. \hy-2{1434}{wxWindow::Centre}
  1427.  
  1428. \hy-2{1437}{wxWindow::DestroyChildren}
  1429.  
  1430. \hy-2{1440}{wxWindow::Fit}
  1431.  
  1432. \hy-2{1443}{wxWindow::GetClientData}
  1433.  
  1434. \hy-2{1446}{wxWindow::GetClientSize}
  1435.  
  1436. \hy-2{1449}{wxWindow::GetHandle}
  1437.  
  1438. \hy-2{1452}{wxWindow::GetPosition}
  1439.  
  1440. \hy-2{1455}{wxWindow::GetSize}
  1441.  
  1442. \hy-2{1458}{wxWindow::GetTextExtent}
  1443.  
  1444. \hy-2{1461}{wxWindow::OnActivate}
  1445.  
  1446. \hy-2{1465}{wxWindow::OnChar}
  1447.  
  1448. \hy-2{1470}{wxWindow::OnClose}
  1449.  
  1450. \hy-2{1473}{wxWindow::OnEvent}
  1451.  
  1452. \hy-2{1478}{wxWindow::OnKillFocus}
  1453.  
  1454. \hy-2{1481}{wxWindow::OnPaint}
  1455.  
  1456. \hy-2{1484}{wxWindow::OnSetFocus}
  1457.  
  1458. \hy-2{1487}{wxWindow::OnSize}
  1459.  
  1460. \hy-2{1491}{wxWindow::SetFocus}
  1461.  
  1462. \hy-2{1495}{wxWindow::SetSize}
  1463.  
  1464. \hy-2{1498}{wxWindow::SetClientData}
  1465.  
  1466. \hy-2{1501}{wxWindow::SetClientSize}
  1467.  
  1468. \hy-2{1505}{wxWindow::SetCursor}
  1469.  
  1470. \hy-2{1508}{wxWindow::SetTitle}
  1471.  
  1472. \hy-2{1511}{wxWindow::Show}
  1473.  
  1474.  
  1475. \hy-10{1516}{File functions}
  1476.  
  1477. See also the \hy-8{1517}{wxPathList} class.
  1478.  
  1479. \hy-2{1518}{::Dos2UnixFilename}
  1480.  
  1481. \hy-2{1521}{::FileExists}
  1482.  
  1483. \hy-2{1524}{::FileNameFromPath}
  1484.  
  1485. \hy-2{1527}{::IsAbsolutePath}
  1486.  
  1487. \hy-2{1530}{::PathOnly}
  1488.  
  1489. \hy-2{1533}{::Unix2DosFilename}
  1490.  
  1491. \hy-2{1536}{::wxConcatFiles}
  1492.  
  1493. \hy-2{1542}{::wxCopyFile}
  1494.  
  1495. \hy-2{1547}{::wxIsWild}
  1496.  
  1497. \hy-2{1551}{::wxMatchWild}
  1498.  
  1499. \hy-2{1558}{::wxRemoveFile}
  1500.  
  1501. \hy-2{1562}{::wxRenameFile}
  1502.  
  1503.  
  1504. \hy-10{1568}{String functions}
  1505.  
  1506. \hy-2{1569}{::copystring}
  1507.  
  1508.  
  1509. \hy-10{1574}{Dialog functions}
  1510.  
  1511. Below are a number of convenience functions for getting input from the
  1512. user or displaying messages. Note that in these functions the last three
  1513. parameters are optional. However, it is recommended to pass a parent frame
  1514. parameter, or (in Windows 3) the wrong window frame may be brought to
  1515. the front when the dialog box is popped up.
  1516.  
  1517. \hy-2{1575}{::wxGetTextFromUser}
  1518.  
  1519. \hy-2{1581}{::wxGetSingleChoice}
  1520.  
  1521. \hy-2{1586}{::wxGetSingleChoiceIndex}
  1522.  
  1523. \hy-2{1590}{::wxGetSingleChoiceData}
  1524.  
  1525. \hy-2{1594}{::wxMessageBox}
  1526.  
  1527. \hy-2{1600}{::wxFileSelector}
  1528.  
  1529.  
  1530. \hy-10{1605}{GDI functions}
  1531.  
  1532. The following are relevant to the GDI (Graphics Device Interface).
  1533.  
  1534. \hy-2{1606}{::wxColourDisplay}
  1535.  
  1536. \hy-2{1609}{::SetCursor}
  1537.  
  1538.  
  1539. \hy-10{1613}{Miscellaneous}
  1540.  
  1541. \hy-2{1614}{::NewId}
  1542.  
  1543. \hy-2{1617}{::RegisterId}
  1544.  
  1545. \hy-2{1622}{::wxDisplaySize}
  1546.  
  1547. \hy-2{1625}{::wxGetElapsedTime}
  1548.  
  1549. \hy-2{1630}{::wxSleep}
  1550.  
  1551. \hy-2{1634}{::wxStartTimer}
  1552.  
  1553. \hy-2{1638}{::wxYield}
  1554.  
  1555. \hy-2{1641}{::wxExecute}
  1556.  
  1557. \hy-10{115}{wxApp::wxApp}
  1558.  
  1559. \hy-8{116}{void wxApp(void)}
  1560.  
  1561. Constructor. Call implicitly with a definition of a wxApp object.
  1562.  
  1563. \hy-10{118}{wxApp::~wxApp}
  1564.  
  1565. \hy-8{119}{void ~wxApp(void)}
  1566.  
  1567. Destructor. Will be called implicitly if the wxApp object is created on the stack.
  1568.  
  1569. \hy-10{121}{wxApp::argc}
  1570.  
  1571. \hy-8{122}{int argc}
  1572.  
  1573. Number of command line arguments (after environment-specific processing).
  1574.  
  1575. \hy-10{124}{wxApp::argv}
  1576.  
  1577. \hy-8{125}{char ** argv}
  1578.  
  1579. Command line arguments (after environment-specific processing).
  1580.  
  1581. \hy-10{127}{wxApp::Initialized}
  1582.  
  1583. \hy-8{128}{Bool Initialized(void)}
  1584.  
  1585. Returns TRUE if the application has been initialized (i.e. if \hy-8{129}{
  1586. OnInit} has returned successfully).  This can be useful for error
  1587. message routines to determine which method of output is best for the
  1588. current state of the program (some windowing systems may not like
  1589. dialogs to pop up before the main loop has been entered).
  1590.  
  1591. \hy-10{131}{wxApp::MainLoop}
  1592.  
  1593. \hy-8{132}{void MainLoop(void)}
  1594.  
  1595. Called by wxWindows on creation of the application.  Override this if you wish
  1596. to provide your own (environment-dependent) main loop.
  1597.  
  1598. \hy-10{134}{wxApp::OnExit}
  1599.  
  1600. \hy-8{135}{void OnExit(void)}
  1601.  
  1602. Provide this member function for any processing which needs to be done as
  1603. the application is about to exit.
  1604.  
  1605. \hy-10{137}{wxApp::OnInit}
  1606.  
  1607. \hy-8{138}{wxFrame * OnInit(void)}
  1608.  
  1609. This must be provided by the application, and must create and return the
  1610. application's main window.
  1611.  
  1612. \hy-10{148}{wxBrush::wxBrush}
  1613.  
  1614. \hy-8{149}{void wxBrush(void)}
  1615.  
  1616. \hy-8{150}{void wxBrush(wxColour &colour, int style)}
  1617.  
  1618. \hy-8{151}{void wxBrush(char *colour_name, int style)}
  1619.  
  1620. Constructs a brush: uninitialized, initialized with an RGB colour and
  1621. a style, or initialized using a colour name and a style.  If the named
  1622. colour form is used, an appropriate \hy-8{152}{wxColour} structure is found
  1623. in the colour database.
  1624.  
  1625. \hy-10{154}{wxBrush::~wxBrush}
  1626.  
  1627. \hy-8{155}{void ~wxBrush(void)}
  1628.  
  1629. Destructor, destroying the brush. Note that brushes should very rarely
  1630. be deleted since windows may contain pointers to them. All brushes
  1631. will be deleted when the application terminates.
  1632.  
  1633. \hy-10{157}{wxBrush::GetColour}
  1634.  
  1635. \hy-8{158}{wxColour& GetColour(void)}
  1636.  
  1637. Returns a reference to the brush colour.
  1638.  
  1639. \hy-10{160}{wxBrush::GetStyle}
  1640.  
  1641. \hy-8{161}{int GetStyle(void)}
  1642.  
  1643. Returns the brush style (wxSOLID or wxTRANSPARENT).
  1644.  
  1645. \hy-10{163}{wxBrush::SetColour}
  1646.  
  1647. \hy-8{164}{void SetColour(wxColour &colour)}
  1648.  
  1649. \hy-8{165}{void SetColour(char *colour_name)}
  1650.  
  1651. \hy-8{166}{void SetColour(int red, int green, int blue)}
  1652.  
  1653. The brush's colour is changed to the given colour.
  1654.  
  1655. \hy-10{168}{wxBrush::SetStyle}
  1656.  
  1657. \hy-8{169}{void SetStyle(int style)}
  1658.  
  1659. Sets the brush style (wxSOLID or wxTRANSPARENT).
  1660.  
  1661. \hy-10{174}{wxBrushList::wxBrushList}
  1662.  
  1663. \hy-8{175}{void wxBrushList(void)}
  1664.  
  1665. Constructor.  The application should not construct its own brush list:
  1666. use the object pointer \hy-8{176}{wxTheBrushList}.
  1667.  
  1668. \hy-10{178}{wxBrushList::AddBrush}
  1669.  
  1670. \hy-8{179}{void AddBrush(wxBrush *brush)}
  1671.  
  1672. Used by wxWindows to add a brush to the list, called in the brush constructor.
  1673.  
  1674. \hy-10{181}{wxBrushList::FindOrCreateBrush}
  1675.  
  1676. \hy-8{182}{wxBrush * FindOrCreateBrush(wxColour *colour, int style)}
  1677.  
  1678. \hy-8{183}{wxBrush * FindOrCreateBrush(char *colour_name, int style)}
  1679.  
  1680. Finds a brush of the given specification, or creates one and adds it to the list.
  1681.  
  1682. \hy-10{185}{wxBrushList::RemoveBrush}
  1683.  
  1684. \hy-8{186}{void RemoveBrush(wxBrush *brush)}
  1685.  
  1686. Used by wxWindows to remove a brush from the list.
  1687.  
  1688.  
  1689. \hy-10{190}{wxButton::wxButton}
  1690.  
  1691. \hy-8{191}{void wxButton(wxPanel *parent, wxFunction func, char *label,
  1692.   int x = -1, int y = -1, int width = -1, int height = -1)}
  1693.  
  1694. Constructor, creating and showing a button.  If \hy-7{192}{width} or \hy-7{193}{
  1695. height} are omitted (or are less than zero), an appropriate size will
  1696. be used for the button.  \hy-7{194}{func} may be NULL; otherwise it is used
  1697. as the callback for the button.  Note that the cast (wxFunction) must
  1698. be used when passing your callback function name, or the compiler may
  1699. complain that the function does not match the constructor declaration.
  1700.  
  1701. \hy-10{196}{wxButton::~wxButton}
  1702.  
  1703. \hy-8{197}{void ~wxButton(void)}
  1704.  
  1705. Destructor, destroying the button.
  1706.  
  1707. \hy-10{202}{wxCanvas::wxCanvas}
  1708.  
  1709. \hy-8{203}{void wxCanvas(wxFrame *parent, int x = -1, int y = -1,
  1710.   int width = -1, int height = -1, int style = wxRETAINED)}
  1711.  
  1712. Constructor. The style parameter may be a combination (using the C++
  1713. logical `or' operator) of the following flags:
  1714.  
  1715.  
  1716.  --  wxBORDER, to give the canvas a thin border (Windows 3 only)
  1717.  --  wxRETAINED, to give the canvas a backing store, making repainting much faster but
  1718. at a memory premium (XView only)
  1719.  
  1720.  
  1721. \hy-10{205}{wxCanvas::~wxCanvas}
  1722.  
  1723. \hy-8{206}{void ~wxCanvas(void)}
  1724.  
  1725. Destructor.
  1726.  
  1727. \hy-10{208}{wxCanvas::Clear}
  1728.  
  1729. \hy-8{209}{void Clear(void)}
  1730.  
  1731. Clears the canvas (fills it with the current background brush).
  1732.  
  1733. \hy-10{211}{wxCanvas::DestroyClippingRegion}
  1734.  
  1735. \hy-8{212}{void DestroyClippingRegion(void)}
  1736.  
  1737. Destroys the current clipping region so that none of the canvas is clipped.
  1738.  
  1739. \hy-10{214}{wxCanvas::DrawEllipse}
  1740.  
  1741. \hy-8{215}{void DrawEllipse(float x, float y, float width,
  1742. float height)}
  1743.  
  1744. Draws an ellipse contained in the rectangle with the given top left
  1745. corner, and with the given size.  The current pen is used for the
  1746. outline and the current brush for filling the shape.
  1747.  
  1748. \hy-10{217}{wxCanvas::DrawLine}
  1749.  
  1750. \hy-8{218}{void DrawLine(float x1, float y1, float x2,
  1751. float y2)}
  1752.  
  1753. Draws a line from the first point to the second. The current pen is
  1754. used for drawing the line.
  1755.  
  1756. \hy-10{220}{wxCanvas::DrawLines}
  1757.  
  1758. \hy-8{221}{void DrawLines(int n, wxPoint points[], float xoffset = 0, float yoffset = 0)}
  1759.  
  1760. \hy-8{222}{void DrawLines(wxList *points, float xoffset = 0, float yoffset = 0)}
  1761.  
  1762. Draw lines using an array of \hy-7{223}{points} of size \hy-7{224}{n}, or list of
  1763. pointers to points, adding the optional offset coordinate. The current
  1764. pen is used for drawing the lines.  The programmer is responsible for
  1765. deleting the list of points.
  1766.  
  1767. \hy-10{226}{wxCanvas::DrawPolygon}
  1768.  
  1769. \hy-8{227}{void DrawPolygon(int n, wxPoint points[], float xoffset = 0, float yoffset = 0)}
  1770.  
  1771. \hy-8{228}{void DrawPolygon(wxList *points, float xoffset = 0,
  1772. float yoffset = 0)}
  1773.  
  1774. Draw a filled polygon using an array of \hy-7{229}{points} of size \hy-7{230}{n},
  1775. or list of pointers to points, adding the optional offset coordinate.
  1776. The current pen is used for drawing the outline, and the current brush
  1777. for filling the shape.  Using a transparent brush suppresses filling.
  1778. The programmer is responsible for deleting the list of points.
  1779.  
  1780. Note that wxWindows does not close the first and last points
  1781. automatically.
  1782.  
  1783. \hy-10{232}{wxCanvas::DrawPoint}
  1784.  
  1785. \hy-8{233}{void DrawPoint(float x, float y)}
  1786.  
  1787. Draws a point using the current pen.
  1788.  
  1789. \hy-10{235}{wxCanvas::DrawRectangle}
  1790.  
  1791. \hy-8{236}{void DrawRectangle(float x, float y, float width, float height)}
  1792.  
  1793. Draws a rectangle with the given top left corner, and with the given
  1794. size.  The current pen is used for the outline and the current brush for
  1795. filling the shape.
  1796.  
  1797. \hy-10{238}{wxCanvas::DrawRoundedRectangle}
  1798.  
  1799. \hy-8{239}{void DrawRoundedRectangle(float x, float y, float width,
  1800.   float height, float radius = 20)}
  1801.  
  1802. Draws a rectangle with the given top left corner, and with the given
  1803. size.  The corners are quarter-circles using the given radius. The
  1804. current pen is used for the outline and the current brush for filling
  1805. the shape.
  1806.  
  1807. \hy-10{241}{wxCanvas::DrawSpline}
  1808.  
  1809. \hy-8{242}{void DrawSpline(wxList *points)}
  1810.  
  1811. Draws a spline between all given control points, using the current
  1812. pen.  Doesn't delete the wxList and contents. The spline is drawn
  1813. using a series of lines, using an algorithm taken from the X drawing
  1814. program `XFIG'.
  1815.  
  1816. \hy-8{243}{void DrawSpline(float x1, float y1, float x2, float y2,
  1817.   float x3, float y3)}
  1818.  
  1819. Draws a three-point spline using the current pen.
  1820.  
  1821. \hy-10{245}{wxCanvas::DrawText}
  1822.  
  1823. \hy-8{246}{void DrawText(char *text, float x, float y)}
  1824.  
  1825. Draws a text string at the specified point, using the current text font,
  1826. and the current text foreground and background colours.
  1827.  
  1828. \hy-10{248}{wxCanvas::GetDC}
  1829.  
  1830. \hy-8{249}{wxDC * GetDC(void)}
  1831.  
  1832. Get a pointer to the canvas's device context. Note that the canvas's
  1833. apparent device context may be temporarily replaced by the application
  1834. using \hy-7{250}{SetContext}, so for example a printer context can be
  1835. substituted and programs using the canvas's device context will really
  1836. write to the printer. The canvas's \hy-7{251}{real} device context is
  1837. unaffected by \hy-7{252}{SetContext}.
  1838.  
  1839. \hy-10{254}{wxCanvas::ResetContext}
  1840.  
  1841. \hy-8{255}{void ResetContext(void)}
  1842.  
  1843. Reset a canvas's context set by \hy-7{256}{SetContext}.
  1844.  
  1845. \hy-10{258}{wxCanvas::Scroll}
  1846.  
  1847. \hy-8{259}{void Scroll(int x_pos, int y_pos)}
  1848.  
  1849. Scrolls a canvas so the view start is at the given point. The
  1850. positions are in scroll units, not pixels, so to convert to pixels you
  1851. will have to multiply by the number of pixels per scroll increment.
  1852. If either parameter is -1, that position will be ignored (no change in
  1853. that direction).
  1854.  
  1855. \hy-10{261}{wxCanvas::SetBackground}
  1856.  
  1857. \hy-8{262}{void SetBackground(wxBrush *brush)}
  1858.  
  1859. Sets the current background brush for the canvas.  The brush should
  1860. not be deleted while being used by a canvas. All brushes are deleted
  1861. automatically when the application terminates.
  1862.  
  1863. \hy-10{264}{wxCanvas::SetClippingRegion}
  1864.  
  1865. \hy-8{265}{void SetClippingRegion(float x, float y, float width, float height)}
  1866.  
  1867. Sets the clipping region for the canvas. The clipping region is a
  1868. rectangular area to which drawing is restricted.  Possible uses for
  1869. the clipping region are for clipping text or for speeding up canvas
  1870. redraws when only a known area of the screen is damaged.
  1871.  
  1872. \hy-10{267}{wxCanvas::SetContext}
  1873.  
  1874. \hy-8{268}{void SetContext(wxDC *dc)}
  1875.  
  1876. Set a substitute context for the canvas, so applications which think
  1877. they're drawing to canvases can be fooled into drawing to the printer.
  1878. Reset with \hy-7{269}{ResetContext}.
  1879.  
  1880. \hy-10{271}{wxCanvas::SetBrush}
  1881.  
  1882. \hy-8{272}{void SetBrush(wxBrush *brush)}
  1883.  
  1884. Sets the current brush for the canvas.  The brush is not copied, so
  1885. you should not delete the brush unless the canvas pen has been set to
  1886. another brush, or to NULL. Note that all pens and brushes are
  1887. automatically deleted when the program is exited.
  1888.  
  1889. \hy-10{274}{wxCanvas::SetFont}
  1890.  
  1891. \hy-8{275}{void SetFont(wxFont *font)}
  1892.  
  1893. Sets the current font for the canvas. The font is not copied, so you
  1894. should not delete the font unless the canvas pen has been set to
  1895. another font, or to NULL.
  1896.  
  1897. \hy-10{277}{wxCanvas::SetLogicalFunction}
  1898.  
  1899. \hy-8{278}{void SetLogicalFunction(int function)}
  1900.  
  1901. Sets the current logical function for the canvas. The possible values
  1902. are:
  1903.  
  1904.  
  1905.  --  wxXOR
  1906.  --  wxINVERT
  1907.  --  wxOR_REVERSE
  1908.  --  wxAND_REVERSE
  1909.  --  wxCOPY
  1910.  
  1911.  
  1912. The default is wxCOPY, which simply draws with the current colour.
  1913. The others combine the current colour and the background using a
  1914. logical operation.  wxXOR is commonly used for drawing rubber bands or
  1915. moving outlines, since drawing twice reverts to the original colour.
  1916.  
  1917. \hy-10{280}{wxCanvas::SetPen}
  1918.  
  1919. \hy-8{281}{void SetPen(wxPen *pen)}
  1920.  
  1921. Sets the current pen for the canvas.  The pen is not copied, so you
  1922. should not delete the pen unless the canvas pen has been set to
  1923. another pen, or to NULL. Note that all pens and brushes are
  1924. automatically deleted when the program is exited.
  1925.  
  1926. \hy-10{283}{wxCanvas::SetScrollbars}
  1927.  
  1928. \hy-8{284}{void SetScrollbars(int horiz_pixels, int vert_pixels, int x_length, int y_length,
  1929.   int x_page, int y_page)}
  1930.  
  1931. Sets up vertical and/or horizontal scrollbars. The first pair of
  1932. parameters give the number of pixels per `scroll step', i.e. amount
  1933. moved when the up or down scroll arrows are pressed. These may be 0 or
  1934. less for no scrollbar. The second pair gives the length of scrollbar
  1935. in scroll steps, which effectively sets the size of the `virtual
  1936. canvas'.  The third pair gives the number of scroll steps in a `page',
  1937. i.e. amount moved when pressing above or below the scrollbar control,
  1938. or using page up/page down (not yet implemented).
  1939.  
  1940. For example, the following gives a canvas horizontal and vertical
  1941. scrollbars with 20 pixels per scroll step, a size of 50 steps (1000
  1942. pixels) in each direction, and 4 steps (80 pixels) to a page.
  1943.  
  1944. \hy-14{285}{canvas->SetScrollbars(20, 20, 50, 50, 4, 4);
  1945. }
  1946.  
  1947. \hy-10{287}{wxCanvas::SetTextBackground}
  1948.  
  1949. \hy-8{288}{void SetTextBackground(wxColour *colour)}
  1950.  
  1951. Sets the current text background colour for the canvas.  Do not
  1952. delete \hy-7{289}{colour}.
  1953.  
  1954. \hy-10{291}{wxCanvas::SetTextForeground}
  1955.  
  1956. \hy-8{292}{void SetTextForeground(wxColour *colour)}
  1957.  
  1958. Sets the current text foreground colour for the canvas. Do not
  1959. delete \hy-7{293}{colour}.
  1960.  
  1961. \hy-10{295}{wxCanvas::ViewStart}
  1962.  
  1963. \hy-8{296}{void ViewStart(int *x, int * y)}
  1964.  
  1965. Get the position at which the visible portion of the canvas starts. If
  1966. either of the scrollbars is not at the home position, \hy-7{297}{x} and/or
  1967. \hy-7{298}{y} will be greater than zero.  Combined with \hy-8{299}{GetClientSize},
  1968. the application can use this function to efficiently redraw only the
  1969. visible portion of the canvas.  The positions are in scroll units, not
  1970. pixels, so to convert to pixels you will have to multiply by the
  1971. number of pixels per scroll increment.
  1972.  
  1973. \hy-10{303}{wxCheckBox::wxCheckBox}
  1974.  
  1975. \hy-8{304}{void wxCheckBox(wxPanel *parent, wxFunction func,
  1976. char *label, int x = -1, int y = -1, int width = -1, int height = -1)}
  1977.  
  1978. Constructor, creating and showing a checkbox.  If \hy-7{305}{width} or \hy-7{306}{
  1979. height} are omitted (or are less than zero), an appropriate size will
  1980. be used for the check box.  \hy-7{307}{func} may be NULL; otherwise it is
  1981. used as the callback for the check box.  Note that the cast
  1982. (wxFunction) must be used when passing your callback function name, or
  1983. the compiler may complain that the function does not match the
  1984. constructor declaration.
  1985.  
  1986. \hy-10{309}{wxCheckBox::~wxCheckBox}
  1987.  
  1988. \hy-8{310}{void ~wxCheckBox(void)}
  1989.  
  1990. Destructor, destroying the checkbox.
  1991.  
  1992. \hy-10{312}{wxCheckBox::GetValue}
  1993.  
  1994. \hy-8{313}{Bool GetValue(void)}
  1995.  
  1996. Gets the state of the checkbox, TRUE if it is checked, FALSE otherwise.
  1997.  
  1998. \hy-10{315}{wxCheckBox::SetValue}
  1999.  
  2000. \hy-8{316}{void SetValue(Bool state)}
  2001.  
  2002. Sets the checkbox to the given state: if the state is TRUE, the check is on,
  2003. otherwise it is off.
  2004.  
  2005.  
  2006. \hy-10{320}{wxChoice::wxChoice}
  2007.  
  2008. \hy-8{321}{void wxChoice(wxPanel *parent, wxFunction func,
  2009. char *label, int x = -1, int y = -1, int width = -1, int height = -1, int n, char *choices[])}
  2010.  
  2011. Constructor, creating and showing a choice. If \hy-7{322}{width} or \hy-7{323}{
  2012. height} are omitted (or are less than zero), an appropriate size will be
  2013. used for the choice. \hy-7{324}{func} may be NULL; otherwise it is used as
  2014. the callback for the choice.  Note that the cast (wxFunction) must be
  2015. used when passing your callback function name, or the compiler may
  2016. complain that the function does not match the constructor declaration.
  2017.  
  2018. \hy-7{325}{n} is the number of possible choices, and \hy-7{326}{choices} is an
  2019. array of strings of size \hy-7{327}{n}. wxWindows allocates its own memory
  2020. for these strings so the calling program must deallocate the array
  2021. itself.
  2022.  
  2023. \hy-10{329}{wxChoice::~wxChoice}
  2024.  
  2025. \hy-8{330}{void ~wxChoice(void)}
  2026.  
  2027. Destructor, destroying the choice item.
  2028.  
  2029. \hy-10{332}{wxChoice::Append}
  2030.  
  2031. \hy-8{333}{void Append(char * item)}
  2032.  
  2033. Adds the item to the end of the choice item. \hy-7{334}{item} must be
  2034. deallocated by the calling program, i.e. wxWindows makes its own copy.
  2035.  
  2036. \hy-10{336}{wxChoice::Clear}
  2037.  
  2038. \hy-8{337}{void Clear(void)}
  2039.  
  2040. Clears the strings from the choice item. Under XView, this is done
  2041. by deleting and reconstructing the item, but it doesn't redisplay
  2042. properly until the user refreshes the window.
  2043.  
  2044. \hy-10{339}{wxChoice::FindString}
  2045.  
  2046. \hy-8{340}{int FindString(char *s)}
  2047.  
  2048. Finds a choice matching the given string, returning the position if found, or
  2049. -1 if not found.
  2050.  
  2051. \hy-10{342}{wxChoice::GetSelection}
  2052.  
  2053. \hy-8{343}{int GetSelection(void)}
  2054.  
  2055. Gets the id (position) of the selected string.
  2056.  
  2057. \hy-10{345}{wxChoice::GetStringSelection}
  2058.  
  2059. \hy-8{346}{char * GetStringSelection(void)}
  2060.  
  2061. Gets the selected string. This must be copied by the calling program
  2062. if long term use is to be made of it.
  2063.  
  2064. \hy-10{348}{wxChoice::SetSelection}
  2065.  
  2066. \hy-8{349}{void SetSelection(int n)}
  2067.  
  2068. Sets the choice by passing the desired string position.
  2069.  
  2070. \hy-10{351}{wxChoice::SetStringSelection}
  2071.  
  2072. \hy-8{352}{void SetStringSelection(char * s)}
  2073.  
  2074. Sets the choice by passing the desired string.
  2075.  
  2076. \hy-10{354}{wxChoice::String}
  2077.  
  2078. \hy-8{355}{char * String(int n)}
  2079.  
  2080. Returns a temporary pointer to the string at position \hy-7{356}{n}.
  2081.  
  2082. \hy-10{361}{wxClient::wxClient}
  2083.  
  2084. \hy-8{362}{void wxClient(void)}
  2085.  
  2086. Constructs a client object.
  2087.  
  2088. \hy-10{364}{wxClient::MakeConnection}
  2089.  
  2090. \hy-8{365}{wxConnection * MakeConnection(char *host, char *service, char *topic)}
  2091.  
  2092. Tries to make a connection with a server specified by the host
  2093. (machine name under UNIX, ignored under Windows), service name (must
  2094. contain an integer port number under UNIX), and topic string. If the
  2095. server allows a connection, a wxConnection object will be returned.
  2096. The type of wxConnection returned can be altered by deriving the \hy-8{366}{
  2097. OnMakeConnection} member to return your own derived connection object.
  2098.  
  2099. \hy-10{368}{wxClient::OnMakeConnection}
  2100.  
  2101. \hy-8{369}{wxConnection * OnMakeConnection(void)}
  2102.  
  2103. The type of wxConnection returned from a \hy-8{370}{MakeConnection} call can
  2104. be altered by deriving the \hy-8{371}{OnMakeConnection} member to return your
  2105. own derived connection object. By default, an ordinary wxConnection
  2106. object is returned.
  2107.  
  2108. \hy-10{376}{wxColour::wxColour}
  2109.  
  2110. \hy-8{377}{void wxColour(char red, char green, char blue)}
  2111.  
  2112. \hy-8{378}{void wxColour(char * colour_name)}
  2113.  
  2114. Construct a colour object from the RGB values or using a colour name
  2115. (uses \hy-8{379}{wxTheColourDatabase}).
  2116.  
  2117. \hy-10{381}{wxColour::Get}
  2118.  
  2119. \hy-8{382}{void Get(char * red, char * green, char * blue)}
  2120.  
  2121. Gets the RGB values - pass pointers to three char variables.
  2122.  
  2123. \hy-10{384}{wxColour::Set}
  2124.  
  2125. \hy-8{385}{void Set(char red, char green, char blue)}
  2126.  
  2127. Sets the RGB value.
  2128.  
  2129. \hy-10{391}{wxColourDatabase::wxColourDatabase}
  2130.  
  2131. \hy-8{392}{void wxColourDatabase(void)}
  2132.  
  2133. Constructs the colour database.  Should not need to be used by an 
  2134. application.
  2135.  
  2136. \hy-10{394}{wxColourDatabase::FindColour}
  2137.  
  2138. \hy-8{395}{wxColour * FindColour(char *colour_name)}
  2139.  
  2140. Finds a colour given the name.  Returns NULL if not found.
  2141.  
  2142. \hy-10{397}{wxColourDatabase::FindName}
  2143.  
  2144. \hy-8{398}{char * FindName(wxColour& colour)}
  2145.  
  2146. Finds a colour name given the colour. Returns NULL if not found.
  2147.  
  2148. \hy-10{400}{wxColourDatabase::Initialize}
  2149.  
  2150. \hy-8{401}{char * Initialize(void)}
  2151.  
  2152. Initializes the database with a number of stock colours.  Called by wxWindows
  2153. on start-up.
  2154.  
  2155. \hy-10{406}{wxConnection::wxConnection}
  2156.  
  2157. \hy-8{407}{void wxConnection(void)}
  2158.  
  2159. \hy-8{408}{void wxConnection(char *buffer, int size)}
  2160.  
  2161. Constructs a connection object. If no user-defined connection object is
  2162. to be derived from wxConnection, then the constructor should not be
  2163. called directly, since the default connection object will be provided on
  2164. requesting (or accepting) a connection. However, if the user defines his
  2165. or her own derived connection object, the \hy-8{409}{Server::OnAcceptConnection}
  2166. and/or \hy-8{410}{Client::OnMakeConnection} members should be replaced by
  2167. functions which construct the new connection object. If the arguments of
  2168. the wxConnection constructor are void, then a default buffer is
  2169. associated with the connection. Otherwise, the programmer must provide a
  2170. a buffer and size of the buffer for the connection object to use in
  2171. transactions.
  2172.  
  2173. \hy-10{412}{wxConnection::Advise}
  2174.  
  2175. \hy-8{413}{Bool Advise(char *item, char *data, int size = -1, int format = wxCF_TEXT)}
  2176.  
  2177. Called by the server application to advise the client of a change in the
  2178. data associated with the given item. Causes the client connection's \hy-8{414}{
  2179. OnAdvise} member to be called. Returns TRUE if successful.
  2180.  
  2181. \hy-10{416}{wxConnection::Execute}
  2182.  
  2183. \hy-8{417}{Bool Execute(char *data, int size = -1,
  2184. int format = wxCF_TEXT)}
  2185.  
  2186. Called by the client application to execute a command on the server. Can
  2187. also be used to transfer arbitrary data to the server (similar to \hy-8{418}{
  2188. Poke} in that respect). Causes the server connection's \hy-8{419}{OnExecute} member
  2189. to be called. Returns TRUE if successful.
  2190.  
  2191. \hy-10{421}{wxConnection::Disconnect}
  2192.  
  2193. \hy-8{422}{Bool Disconnect(void)}
  2194.  
  2195. Called by the client or server application to disconnect from the other
  2196. program; it causes the \hy-8{423}{OnDisconnect} message to be sent to the
  2197. corresponding connection object in the other program. The default
  2198. behaviour of \hy-8{424}{OnDisconnect} is to delete the connection, but the
  2199. calling application must explicitly delete its side of the connection
  2200. having called \hy-8{425}{Disconnect}. Returns TRUE if successful.
  2201.  
  2202. \hy-10{427}{wxConnection::OnAdvise}
  2203.  
  2204. \hy-8{428}{Bool OnAdvise(char *topic, char *item, char *data, int size, int format)}
  2205.  
  2206. Message sent to the client application when the server notifies it of a
  2207. change in the data associated with the given item.
  2208.  
  2209. \hy-10{430}{wxConnection::OnDisconnect}
  2210.  
  2211. \hy-8{431}{Bool OnDisconnect(void)}
  2212.  
  2213. Message sent to the client or server application when the other
  2214. application notifies it to delete the connection. Default behaviour is
  2215. to delete the connection object.
  2216.  
  2217. \hy-10{433}{wxConnection::OnExecute}
  2218.  
  2219. \hy-8{434}{Bool OnExecute(char *topic, char *data, int size, int format)}
  2220.  
  2221. Message sent to the server application when the client notifies it to
  2222. execute the given data. Note that there is no item associated with
  2223. this message.
  2224.  
  2225. \hy-10{436}{wxConnection::OnPoke}
  2226.  
  2227. \hy-8{437}{Bool OnPoke(char *topic, char *item, char *data, int size, int format)}
  2228.  
  2229. Message sent to the server application when the client
  2230. notifies it to accept the given data.
  2231.  
  2232. \hy-10{439}{wxConnection::OnRequest}
  2233.  
  2234. \hy-8{440}{char * OnRequest(char *topic, char *item, int *size, int format)}
  2235.  
  2236. Message sent to the server application when the client calls \hy-8{441}{
  2237. Request}. The server should respond by returning a character string from
  2238. \hy-8{442}{OnRequest}, or NULL to indicate no data.
  2239.  
  2240. \hy-10{444}{wxConnection::OnStartAdvise}
  2241.  
  2242. \hy-8{445}{Bool OnStartAdvise(char *topic, char *item)}
  2243.  
  2244. Message sent to the server application by the client, when the client
  2245. wishes to start an `advise loop' for the given topic and item. The
  2246. server can refuse to participate by returning FALSE.
  2247.  
  2248. \hy-10{447}{wxConnection::OnStopAdvise}
  2249.  
  2250. \hy-8{448}{Bool OnStopAdvise(char *topic, char *item)}
  2251.  
  2252. Message sent to the server application by the client, when the client
  2253. wishes to stop an `advise loop' for the given topic and item. The
  2254. server can refuse to stop the advise loop by returning FALSE, although
  2255. this doesn't have much meaning in practice.
  2256.  
  2257. \hy-10{450}{wxConnection::Poke}
  2258.  
  2259. \hy-8{451}{Bool Poke(char *item, char *data, int size = -1, int format = wxCF_TEXT)}
  2260.  
  2261. Called by the client application to poke data into the server. Can
  2262. be used to transfer arbitrary data to the server. Causes the server
  2263. connection's \hy-8{452}{OnPoke} member to be called. Returns TRUE if
  2264. successful.
  2265.  
  2266. \hy-10{454}{wxConnection::Request}
  2267.  
  2268. \hy-8{455}{char * Request(char *item, int *size, int format = wxCF_TEXT)}
  2269.  
  2270. Called by the client application to request data from the server. Causes
  2271. the server connection's \hy-8{456}{OnRequest} member to be called. Returns a
  2272. character string (actually a pointer to the connection's buffer) if
  2273. successful, NULL otherwise.
  2274.  
  2275. \hy-10{458}{wxConnection::StartAdvise}
  2276.  
  2277. \hy-8{459}{Bool StartAdvise(char *item)}
  2278.  
  2279. Called by the client application to ask if an advise loop can be started
  2280. with the server. Causes the server connection's \hy-8{460}{OnStartAdvise}
  2281. member to be called. Returns TRUE if the server okays it, FALSE
  2282. otherwise.
  2283.  
  2284. \hy-10{462}{wxConnection::StopAdvise}
  2285.  
  2286. \hy-8{463}{Bool StopAdvise(char *item)}
  2287.  
  2288. Called by the client application to ask if an advise loop can be
  2289. stopped. Causes the server connection's \hy-8{464}{OnStopAdvise} member to be
  2290. called. Returns TRUE if the server okays it, FALSE otherwise.
  2291.  
  2292. \hy-10{472}{wxCursor::wxCursor}
  2293.  
  2294. \hy-8{473}{void wxCursor(short bits[], intwidth,
  2295. int height)}
  2296.  
  2297. \hy-8{474}{void wxCursor(char * cursor_name)}
  2298.  
  2299. \hy-8{475}{void wxCursor(int id)}
  2300.  
  2301. Constructor. A cursor can be created by passing an array of bits (XView
  2302. only) by passing a string name, or by passing a stock cursor id. \hy-7{476}{
  2303. cursor_name} refers to a filename in XView, or a resource name in Windows
  2304. 3.
  2305.  
  2306. The following stock cursor ids may be used:
  2307.  
  2308.  
  2309.  --  wxCURSOR_ARROW
  2310.  --  wxCURSOR_BULLSEYE
  2311.  --  wxCURSOR_CHAR
  2312.  --  wxCURSOR_CROSS
  2313.  --  wxCURSOR_HAND
  2314.  --  wxCURSOR_IBEAM
  2315.  --  wxCURSOR_LEFT_BUTTON
  2316.  --  wxCURSOR_MAGNIFIER
  2317.  --  wxCURSOR_MIDDLE_BUTTON
  2318.  --  wxCURSOR_NO_ENTRY
  2319.  --  wxCURSOR_PAINT_BRUSH
  2320.  --  wxCURSOR_PENCIL
  2321.  --  wxCURSOR_POINT_LEFT
  2322.  --  wxCURSOR_POINT_RIGHT
  2323.  --  wxCURSOR_QUESTION_ARROW
  2324.  --  wxCURSOR_RIGHT_BUTTON
  2325.  --  wxCURSOR_SIZENESW
  2326.  --  wxCURSOR_SIZENS
  2327.  --  wxCURSOR_SIZENWSE
  2328.  --  wxCURSOR_SIZEWE
  2329.  --  wxCURSOR_SIZING
  2330.  --  wxCURSOR_SPRAYCAN
  2331.  --  wxCURSOR_WAIT
  2332.  --  wxCURSOR_WATCH
  2333.  
  2334.  
  2335. \hy-10{478}{wxCursor::~wxCursor}
  2336.  
  2337. \hy-8{479}{void ~wxCursor(void)}
  2338.  
  2339. Destroys the cursor. Unlike an icon, a cursor can be reused for more
  2340. than one window, and does not get destroyed when the window is
  2341. destroyed. wxWindows destroys all cursors on application exit.
  2342.  
  2343. \hy-10{485}{wxDC::wxDC}
  2344.  
  2345. \hy-8{486}{void wxDC(void)}
  2346.  
  2347. \hy-8{487}{void wxDC(wxCanvas *canvas)}
  2348.  
  2349. \hy-8{488}{void wxDC(char *driver, char *device, char *output, Bool interactive = TRUE)}
  2350.  
  2351. Constructor.  The third form may be called with three NULLs to put up a
  2352. default printer dialog in Windows or UNIX.  The only supported printer
  2353. type in UNIX is ``PostScript''; in Windows, specifying ``PostScript''
  2354. uses wxWindow's own Encapsulated PostScript driver, writing to a file
  2355. only. Otherwise, \hy-7{489}{device} indicates the type of printer and \hy-7{490}{
  2356. output} is an optional file for printing to. The \hy-7{491}{driver} parameter
  2357. is currently unused.  Use the \hy-7{492}{Ok} member to test whether the
  2358. constructor was successful in creating a useable device context.
  2359.  
  2360. The following global variables are defined in wxWindows, edited by the
  2361. user in the printer dialog and used by the PostScript driver. An
  2362. application may wish to set them to appropriate default values.
  2363.  
  2364.  
  2365.  --  char *wx_portrait = TRUE
  2366.  --  char *wx_printer_command =``lpr''
  2367.  --  char *wx_printer_flags = ``''
  2368.  --  Bool wx_preview = TRUE
  2369.  --  char *wx_preview_command = ``ghostview''
  2370.  --  float wx_printer_scale_x = 1.0
  2371.  --  float wx_printer_scale_y = 1.0
  2372.  --  float wx_printer_translate_x = 0.0
  2373.  --  float wx_printer_translate_y = 0.0
  2374.  --  Bool wx_print_to_file = FALSE
  2375.  
  2376.  
  2377. \hy-10{494}{wxDC::~wxDC}
  2378.  
  2379. \hy-8{495}{void ~wxDC(void)}
  2380.  
  2381. Destructor.
  2382.  
  2383. \hy-10{497}{wxDC::Blit}
  2384.  
  2385. \hy-8{498}{Bool Blit(float xdest, float ydest, float width, float height,
  2386.   wxDC *source, float xsrc, float ysrc, int logical_func)}
  2387.  
  2388. Copy from a source DC to this DC, specifying the destination
  2389. coordinates, size of area to copy, source DC, source coordinates, and
  2390. logical function (see \hy-8{499}{SetLogicalFunction}).  See
  2391. \hy-8{500}{CreateCompatibleDC} for typical usage.
  2392.  
  2393. \hy-10{502}{wxDC::Clear}
  2394.  
  2395. \hy-8{503}{void Clear(void)}
  2396.  
  2397. \hy-10{505}{wxDC::CreateCompatibleDC}
  2398.  
  2399. \hy-8{506}{wxDC * CreateCompatibleDC(void)}
  2400.  
  2401. Creates and returns a device context compatible with this DC.
  2402. A bitmap must be selected into the new DC before it may be used for
  2403. anything.  Typical usage is as follows:
  2404.  
  2405. \hy-14{507}{  wxDC *temp_dc = dc.CreateCompatibleDC();
  2406.   temp_dc->SelectObject(test_bitmap);
  2407.   dc.Blit(250, 50, BITMAP_WIDTH, BITMAP_HEIGHT, temp_dc, 0, 0);
  2408.   delete temp_dc;
  2409. }
  2410. In future versions of wxWindows, this kind of DC will be used for
  2411. drawing graphics in memory, then copying to visible windows.
  2412.  
  2413.  
  2414. \hy-10{509}{wxDC::DestroyClippingRegion}
  2415.  
  2416. \hy-8{510}{void DestroyClippingRegion(void)}
  2417.  
  2418. Destroys the current clipping region so that none of the DC is clipped.
  2419.  
  2420.  
  2421. \hy-10{512}{wxDC::DeviceToLogicalX}
  2422.  
  2423. \hy-8{513}{float DeviceToLogicalX(int x)}
  2424.  
  2425. Convert device X coordinate to logical coordinate, using the current
  2426. mapping mode.
  2427.  
  2428. \hy-10{515}{wxDC::DeviceToLogicalY}
  2429.  
  2430. \hy-8{516}{float DeviceToLogicalY(int y)}
  2431.  
  2432. Converts device Y coordinate to logical coordinate, using the current
  2433. mapping mode.
  2434.  
  2435. \hy-10{518}{wxDC::DrawEllipse}
  2436.  
  2437. \hy-8{519}{void DrawEllipse(float x, float y, float width, float height)}
  2438.  
  2439. Draws an ellipse contained in the rectangle with the given top left corner, and with the
  2440. given size.  The current pen is used for the outline and the current brush for
  2441. filling the shape.
  2442.  
  2443. \hy-10{521}{wxDC::DrawIcon}
  2444.  
  2445. \hy-8{522}{void DrawIcon(wxIcon *icon, float x, float y)}
  2446.  
  2447. Draw an icon on the display (does nothing if the device context is PostScript).
  2448. This can be the simplest way of drawing bitmaps on a canvas. Icons and bitmaps in
  2449. X are currently monochrome only.
  2450.  
  2451. \hy-10{524}{wxDC::DrawLine}
  2452.  
  2453. \hy-8{525}{void DrawLine(float x1, float y1, float x2, float y2)}
  2454.  
  2455. Draws a line from the first point to the second. The current pen is used
  2456. for drawing the line.
  2457.  
  2458. \hy-10{527}{wxDC::DrawLines}
  2459.  
  2460. \hy-8{528}{void DrawLines(int n, wxPoint points[], float xoffset = 0, float yoffset = 0)}
  2461.  
  2462. \hy-8{529}{void DrawLines(wxList *points, float xoffset = 0, float yoffset = 0)}
  2463.  
  2464. Draws lines using an array of \hy-7{530}{points} of size \hy-7{531}{n}, or list of
  2465. pointers to points, adding the optional offset coordinate. The current
  2466. pen is used for drawing the lines.  The programmer is responsible for
  2467. deleting the list of points.
  2468.  
  2469. \hy-10{533}{wxDC::DrawPolygon}
  2470.  
  2471. \hy-8{534}{void DrawPolygon(int n, wxPoint points[], float xoffset = 0, float yoffset = 0)}
  2472.  
  2473. \hy-8{535}{void DrawPolygon(wxList *points, float xoffset = 0, float yoffset = 0)}
  2474.  
  2475. Draws a filled polygon using an array of \hy-7{536}{points} of size \hy-7{537}{n},
  2476. or list of pointers to points, adding the optional offset coordinate.
  2477. The current pen is used for drawing the outline, and the current brush
  2478. for filling the shape.  Using a transparent brush suppresses filling.
  2479. The programmer is responsible for deleting the list of points.
  2480.  
  2481. Note that wxWindows does not close the first and last points automatically.
  2482.  
  2483. \hy-10{539}{wxDC::DrawPoint}
  2484.  
  2485. \hy-8{540}{void DrawPoint(float x, float y)}
  2486.  
  2487. Draws a point using the current pen.
  2488.  
  2489. \hy-10{542}{wxDC::DrawRectangle}
  2490.  
  2491. \hy-8{543}{void DrawRectangle(float x, float y, float width, float height)}
  2492.  
  2493. Draws a rectangle with the given top left corner, and with the given
  2494. size.  The current pen is used for the outline and the current brush
  2495. for filling the shape.
  2496.  
  2497. \hy-10{545}{wxDC::DrawRoundedRectangle}
  2498.  
  2499. \hy-8{546}{void DrawRoundedRectangle(float x, float y, float width, float height, float radius = 20)}
  2500.  
  2501. Draws a rectangle with the given top left corner, and with the given
  2502. size.  The corners are quarter-circles using the given radius. The
  2503. current pen is used for the outline and the current brush for filling
  2504. the shape.
  2505.  
  2506. \hy-10{548}{wxDC::DrawSpline}
  2507.  
  2508. \hy-8{549}{void DrawSpline(wxList *points)}
  2509.  
  2510. Draws a spline between all given control points, using the current
  2511. pen.  Doesn't delete the wxList and contents. The spline is drawn
  2512. using a series of lines, using an algorithm taken from the X drawing
  2513. program `XFIG'.
  2514.  
  2515. \hy-8{550}{void DrawSpline(float x1, float y1, float x2, float y2, float x3, float y3)}
  2516.  
  2517. Draws a three-point spline using the current pen.
  2518.  
  2519. \hy-10{552}{wxDC::DrawText}
  2520.  
  2521. \hy-8{553}{void DrawText(char *text, float x, float y)}
  2522.  
  2523. Draws a text string at the specified point, using the current text font,
  2524. and the current text foreground and background colours.
  2525.  
  2526. \hy-10{555}{wxDC::EndDoc}
  2527.  
  2528. \hy-8{556}{void EndDoc(void)}
  2529.  
  2530. Ends a document (only relevant when outputting to a printer).
  2531.  
  2532. \hy-10{558}{wxDC::EndPage}
  2533.  
  2534. \hy-8{559}{void EndPage(void)}
  2535.  
  2536. Ends a document page (only relevant when outputting to a printer).
  2537.  
  2538. \hy-10{561}{wxDC::GetMapMode}
  2539.  
  2540. \hy-8{562}{int GetMapMode(void)}
  2541.  
  2542. Gets the \hy-7{563}{mapping mode} for the device context (see \hy-8{564}{SetMapMode}).
  2543.  
  2544. \hy-10{566}{wxDC::LogicalToDeviceX}
  2545.  
  2546. \hy-8{567}{int LogicalToDeviceX(float x)}
  2547.  
  2548. Converts logical X coordinate to device coordinate, using the current
  2549. mapping mode.
  2550.  
  2551. \hy-10{569}{wxDC::LogicalToDeviceY}
  2552.  
  2553. \hy-8{570}{int LogicalToDeviceY(float y)}
  2554.  
  2555. Converts logical Y coordinate to device coordinate, using the current
  2556. mapping mode.
  2557.  
  2558. \hy-10{572}{wxDC::Ok}
  2559.  
  2560. \hy-8{573}{Bool Ok(void)}
  2561.  
  2562. Returns TRUE if the DC is ok to use.
  2563.  
  2564. \hy-10{575}{wxDC::SelectObject}
  2565.  
  2566. \hy-8{576}{void SelectObject(wxBitmap *bitmap)}
  2567.  
  2568. Selects the given bitmap into the device context, to use as the memory
  2569. bitmap. Drawing onto the DC is not yet allowed, but selecting the bitmap
  2570. into a DC created by using \hy-8{577}{CreateCompatibleDC} allows you to then
  2571. use \hy-8{578}{Blit} to copy the bitmap to a canvas. For this purpose, you
  2572. may find \hy-8{579}{DrawIcon} easier to use instead, if your Windows bitmaps can
  2573. be converted to icon format.
  2574.  
  2575. \hy-10{581}{wxDC::SetBackground}
  2576.  
  2577. \hy-8{582}{void SetBackground(wxBrush *brush)}
  2578.  
  2579. Sets the current background brush for the DC.  Do not delete the brush - it will be
  2580. deleted automatically when the application terminates.
  2581.  
  2582. \hy-10{584}{wxDC::SetClippingRegion}
  2583.  
  2584. \hy-8{585}{void SetClippingRegion(float x, float y, float width, float height)}
  2585.  
  2586. Sets the clipping region for the DC. The clipping region is a rectangular area
  2587. to which drawing is restricted.  Possible uses for the clipping region are for clipping text
  2588. or for speeding up canvas redraws when only a known area of the screen is damaged.
  2589.  
  2590. \hy-10{587}{wxDC::SetBrush}
  2591.  
  2592. \hy-8{588}{void SetBrush(wxBrush *brush)}
  2593.  
  2594. Sets the current brush for the DC.  The brush is not copied, so you should not delete
  2595. the brush unless the DC pen has been set to another brush, or to NULL. Note that
  2596. all pens and brushes are automatically deleted when the program is exited.
  2597.  
  2598. \hy-10{590}{wxDC::SetFont}
  2599.  
  2600. \hy-8{591}{void SetFont(wxFont *font)}
  2601.  
  2602. Sets the current font for the DC. The font is not copied, so you should not delete
  2603. the font unless the DC pen has been set to another font, or to NULL.
  2604.  
  2605. \hy-10{593}{wxDC::SetLogicalFunction}
  2606.  
  2607. \hy-8{594}{void SetLogicalFunction(int function)}
  2608.  
  2609. Sets the current logical function for the DC. The possible values are:
  2610.  
  2611.  
  2612.  --  wxXOR
  2613.  --  wxINVERT
  2614.  --  wxOR_REVERSE
  2615.  --  wxAND_REVERSE
  2616.  --  wxCOPY
  2617.  
  2618.  
  2619. The default is wxCOPY, which simply draws with the current colour.
  2620. The others combine the current colour and the background using a
  2621. logical operation.  wxXOR is commonly used for drawing rubber bands or
  2622. moving outlines, since drawing twice reverts to the original colour.
  2623.  
  2624. \hy-10{596}{wxDC::SetMapMode}
  2625.  
  2626. \hy-8{597}{void SetMapMode(int int)}
  2627.  
  2628. The \hy-7{598}{mapping mode} of the device context defines the unit of
  2629. measurement used to convert logical units to device units. Note that
  2630. in X, text drawing isn't handled consistently with the mapping mode; a
  2631. font is always specified in point size. However, setting the \hy-7{599}{
  2632. user scale} (see \hy-8{600}{SetUserScale}) scales the text appropriately. In
  2633. Windows, scaleable TrueType fonts are always used; in X, results depend
  2634. on availability of fonts, but usually a reasonable match is found.
  2635.  
  2636. Note that the coordinate origin should ideally be selectable, but for
  2637. now is always at the top left of the screen/printer.
  2638.  
  2639. Drawing to a Windows printer device context under UNIX
  2640. uses the current mapping mode, but mapping mode is currently ignored for
  2641. PostScript output.
  2642.  
  2643. The mapping mode can be one of the following:
  2644.  
  2645.  
  2646.  --  MM_TWIPS - each logical unit is 1/20 of a point, or 1/1440 of
  2647.   an inch
  2648.  --  MM_POINTS - each logical unit is a point, or 1/72 of an inch
  2649.  --  MM_METRIC - each logical unit is 1 mm
  2650.  --  MM_LOMETRIC - each logical unit is 1/10 of a mm
  2651.  --  MM_TEXT - each logical unit is 1 pixel
  2652.  
  2653.  
  2654.  
  2655. \hy-10{602}{wxDC::SetPen}
  2656.  
  2657. \hy-8{603}{void SetPen(wxPen *pen)}
  2658.  
  2659. Sets the current pen for the DC.  The pen is not copied, so you should
  2660. not delete the pen unless the DC pen has been set to another pen, or
  2661. to NULL. Note that all pens and brushes are automatically deleted when
  2662. the program is exited.
  2663.  
  2664. \hy-10{605}{wxDC::SetTextBackground}
  2665.  
  2666. \hy-8{606}{void SetTextBackground(wxColour *colour)}
  2667.  
  2668. Sets the current text background colour for the DC.  Do not delete \hy-7{607}{
  2669. colour} while selected for use by a DC.
  2670.  
  2671. \hy-10{609}{wxDC::SetTextForeground}
  2672.  
  2673. \hy-8{610}{void SetTextForeground(wxColour *colour)}
  2674.  
  2675. Sets the current text foreground colour for the DC. Do not delete \hy-7{611}{
  2676. colour} while selected for use by a DC.
  2677.  
  2678. \hy-10{613}{wxDC::SetUserScale}
  2679.  
  2680. \hy-8{614}{void SetUserScale(float x_scale, floaty_scale)}
  2681.  
  2682. Sets the user scaling factor, useful for applications which require
  2683. `zooming'.
  2684.  
  2685. \hy-10{616}{wxDC::StartDoc}
  2686.  
  2687. \hy-8{617}{Bool StartDoc(char *message)}
  2688.  
  2689. Starts a document (only relevant when outputting to a printer).
  2690. Message is a message to show whilst printing.
  2691.  
  2692. \hy-10{619}{wxDC::StartPage}
  2693.  
  2694. \hy-8{620}{Bool StartPage(void)}
  2695.  
  2696. Starts a document page (only relevant when outputting to a printer).
  2697.  
  2698. \hy-10{625}{wxDialogBox::wxDialogBox}
  2699.  
  2700. \hy-8{626}{void wxDialogBox(wxFrame *parent, char *title,
  2701. Bool modal=FALSE, int x=300, int y=300, 
  2702.   int width=500, int height=500)}
  2703.  
  2704. Constructor.  If \hy-7{627}{modal} is TRUE, the dialog box will wait to be
  2705. dismissed (using Show(FALSE)) before returning control to the
  2706. calling program.
  2707.  
  2708. \hy-10{629}{wxDialogBox::~wxDialogBox}
  2709.  
  2710. \hy-8{630}{void ~wxDialogBox(void)}
  2711.  
  2712. Destructor.  Deletes any panel items before deleting the physical window.
  2713.  
  2714. \hy-10{632}{wxDialogBox::Iconize}
  2715.  
  2716. \hy-8{633}{void Iconize(Bool iconize)}
  2717.  
  2718. If TRUE, iconizes the dialog box; if FALSE, shows and restores it. Note
  2719. that in Windows, iconization has no effect since dialog boxes cannot be
  2720. iconized. However, applications may need to explicitly restore dialog
  2721. boxes under XView which have user-iconizable frames, and under Windows
  2722. calling Iconize(FALSE) will bring the window to the front, as does
  2723. Show(TRUE).
  2724.  
  2725. \hy-10{635}{wxDialogBox::Iconized}
  2726.  
  2727. \hy-8{636}{Bool Iconized(void)}
  2728.  
  2729. Returns TRUE if the dialog box is iconized. Always returns FALSE under
  2730. Windows for the reasons given above.
  2731.  
  2732. \hy-10{638}{wxDialogBox::Show}
  2733.  
  2734. \hy-8{639}{void Show(Bool show)}
  2735.  
  2736.  
  2737. If \hy-7{640}{show} is TRUE, the dialog box is shown and brought to the front;
  2738. otherwise the box is hidden. If \hy-7{641}{show} is FALSE and the dialog is
  2739. modal, control is returned to the calling program.
  2740.  
  2741. \hy-10{646}{wxEvent::wxEvent}
  2742.  
  2743. \hy-8{647}{void wxEvent(void)}
  2744.  
  2745. Constructor. Should not need to be used by an application.
  2746.  
  2747. \hy-10{649}{wxEvent::~wxEvent}
  2748.  
  2749. \hy-8{650}{void ~wxEvent(void)}
  2750.  
  2751. Destructor. Should not need to be used by an application.
  2752.  
  2753. \hy-10{652}{wxEvent::Button}
  2754.  
  2755. \hy-8{653}{Bool Button(int button)}
  2756.  
  2757. Returns TRUE if the identified mouse button is changing state. Valid values of \hy-7{654}{button}
  2758. are:
  2759.  
  2760.  
  2761.  --  Left button
  2762.  --  Middle button
  2763.  --  Right button
  2764.  
  2765.  
  2766. Not all mice have middle buttons so a portable application should avoid
  2767. this one.
  2768.  
  2769. \hy-10{656}{wxEvent::ButtonDown}
  2770.  
  2771. \hy-8{657}{Bool ButtonDown(void)}
  2772.  
  2773. Returns TRUE if the event was a mouse button down event.
  2774.  
  2775. \hy-10{659}{wxEvent::ControlDown}
  2776.  
  2777. \hy-8{660}{Bool ControlDown(void)}
  2778.  
  2779. Returns TRUE if the control button was down at the time of the event.
  2780.  
  2781. \hy-10{662}{wxEvent::Dragging}
  2782.  
  2783. \hy-8{663}{Bool Dragging(void)}
  2784.  
  2785. Returns TRUE if this was a dragging event.
  2786.  
  2787. \hy-10{665}{wxEvent::IsButton}
  2788.  
  2789. \hy-8{666}{Bool IsButton(void)}
  2790.  
  2791. Returns TRUE if the event was a mouse button event (not necessarily a button down event -
  2792. that may be tested using \hy-7{667}{ButtonDown}).
  2793.  
  2794. \hy-10{669}{wxEvent::LeftDown}
  2795.  
  2796. \hy-8{670}{Bool LeftDown(void)}
  2797.  
  2798. Returns TRUE if the left mouse button changed to down.
  2799.  
  2800. \hy-10{672}{wxEvent::LeftUp}
  2801.  
  2802. \hy-8{673}{Bool LeftUp(void)}
  2803.  
  2804. Returns TRUE if the left mouse button changed to up.
  2805.  
  2806. \hy-10{675}{wxEvent::MiddleDown}
  2807.  
  2808. \hy-8{676}{Bool MiddleDown(void)}
  2809.  
  2810. Returns TRUE if the middle mouse button changed to down.
  2811.  
  2812. \hy-10{678}{wxEvent::MiddleUp}
  2813.  
  2814. \hy-8{679}{Bool MiddleUp(void)}
  2815.  
  2816. Returns TRUE if the middle mouse button changed to up.
  2817.  
  2818. \hy-10{681}{wxEvent::Position}
  2819.  
  2820. \hy-8{682}{void Position(float *x, float *y)}
  2821.  
  2822. Sets *x and *y to the position at which the event occurred. If the
  2823. window is a canvas, the position is converted to logical units
  2824. (according to the current mapping mode) with scrolling taken into
  2825. account. To get back to device units (for example to calculate where on the
  2826. screen to place a dialog box associated with a canvas mouse event), use
  2827. \hy-8{683}{wxDC::LogicalToDeviceX} and \hy-8{684}{wxDC::LogicalToDeviceY}.
  2828.  
  2829. For example, the following code calculates screen pixel coordinates
  2830. from the frame position, canvas view start (assuming the canvas is the only
  2831. subwindow on the frame and therefore at the top left of it), and the
  2832. logical event position. A menu is popped up at the position where the
  2833. mouse click occurred. (Note that the application should also check that
  2834. the dialog box will be visible on the screen, since the click could have
  2835. occurred near the screen edge!)
  2836.  
  2837. \hy-14{685}{float event_x, event_y;
  2838. event.Position(&event_x, &event_y);
  2839. frame->GetPosition(&x, &y);
  2840. canvas->ViewStart(&x1, &y1);
  2841. int mouse_x = (int)(canvas->GetDC()->LogicalToDeviceX(event_x + x - x1);
  2842. int mouse_y = (int)(canvas->GetDC()->LogicalToDeviceY(event_y + y - y1);
  2843.  
  2844. char *choice = wxGetSingleChoice("Menu", "Pick a node action",
  2845.                                  no_choices, choices, frame, mouse_x, mouse_y);
  2846. }
  2847. \hy-10{687}{wxEvent::RightDown}
  2848.  
  2849. \hy-8{688}{Bool RightDown(void)}
  2850.  
  2851. Returns TRUE if the right mouse button changed to down.
  2852.  
  2853. \hy-10{690}{wxEvent::RightUp}
  2854.  
  2855. \hy-8{691}{Bool RightUp(void)}
  2856.  
  2857. Returns TRUE if the right mouse button changed to up.
  2858.  
  2859.  
  2860. \hy-10{693}{wxEvent::ShiftDown}
  2861.  
  2862. \hy-8{694}{Bool ShiftDown(void)}
  2863.  
  2864. Returns TRUE if the shift button was down at the time of the event.
  2865.  
  2866. \hy-10{698}{wxFont::wxFont}
  2867.  
  2868. \hy-8{699}{void wxFont(void)}
  2869.  
  2870. \hy-8{700}{void wxFont(int point_size, int family, int style, int weight)}
  2871.  
  2872. Creates a font object. If the desired font does not
  2873. exist, the closest match will be chosen. Under XView, this may result
  2874. in a number of XView warnings during the matching process; these should
  2875. be ignored, and will only occur the first time wxWindows attempts to
  2876. use an absent font in a given size. Under Windows 3, only scaleable
  2877. TrueType fonts are used.
  2878.  
  2879. \hy-10{702}{wxFont::~wxFont}
  2880.  
  2881. \hy-8{703}{void ~wxFont(void)}
  2882.  
  2883. Destroys a font object. Do not manually destroy a font which has been
  2884. assigned to a canvas. All GDI objects, including fonts, are
  2885. automatically destroyed on program exit, so there is no danger of memory
  2886. leakage as in conventional Windows programming.
  2887.  
  2888. \hy-10{705}{wxFont::GetPointSize}
  2889.  
  2890. \hy-8{706}{int GetPointSize(void)}
  2891.  
  2892. Gets the point size.
  2893.  
  2894.  
  2895. \hy-10{719}{wxForm::wxForm}
  2896.  
  2897. \hy-8{720}{void wxForm(void)}
  2898.  
  2899. Constructor.
  2900.  
  2901. \hy-10{722}{wxForm::~wxForm}
  2902.  
  2903. \hy-8{723}{void ~wxForm(void)}
  2904.  
  2905. Destructor. Does not delete the associated panel or any panel items, but
  2906. does delete all form items.
  2907.  
  2908. \hy-10{725}{wxForm::Add}
  2909.  
  2910. \hy-8{726}{void Add(wxFormItem *item, long id = -1)}
  2911.  
  2912. Adds a form item to the form. If an id is given this is associated with
  2913. the form item; otherwise a new id is generated, by which the item may be
  2914. identified later.
  2915.  
  2916. \hy-10{728}{wxForm::FindItem}
  2917.  
  2918. \hy-8{729}{wxNode * FindItem(long id)}
  2919.  
  2920. Given a form item id, returns a list node containing the form item.
  2921.  
  2922. \hy-10{731}{wxForm::Set}
  2923.  
  2924. \hy-8{732}{Bool Set(long id, wxFormItem *item)}
  2925.  
  2926. Given a form item id, replaces an existing item with that id with the
  2927. given form item. Returns TRUE if successful.
  2928.  
  2929. \hy-10{734}{wxForm::Delete}
  2930.  
  2931. \hy-8{735}{Bool Delete(long id)}
  2932.  
  2933. Deletes the given form item by id. Returns TRUE if successful.
  2934.  
  2935. \hy-10{737}{wxForm::AssociatePanel}
  2936.  
  2937. \hy-8{738}{void AssociatePanel(wxPanel *panel)}
  2938.  
  2939. Associates the form with the given panel (or window derived from wxPanel, such as
  2940. wxDialogBox). This causes a number of items to be created on the panel
  2941. using information from the list of form items. The panel should be shown
  2942. after this has been called.
  2943.  
  2944. \hy-10{740}{wxForm::OnCancel}
  2945.  
  2946. \hy-8{741}{void OnCancel(void)}
  2947.  
  2948. This member may be derived by the application. When the user presses the
  2949. Cancel button, this is called, allowing the application to take action.
  2950. By default, \hy-8{742}{OnCancel} deletes the form and the panel associated with
  2951. it, probably the normal desired behaviour.
  2952.  
  2953. \hy-10{744}{wxForm::OnOk}
  2954.  
  2955. \hy-8{745}{void OnOk(void)}
  2956.  
  2957. This member may be derived by the application. When the user presses the
  2958. OK button, this is called, allowing the application to take action.
  2959. By default, \hy-8{746}{OnOk} deletes the form and the panel associated with
  2960. it, probably the normal desired behaviour. Note that if any form item
  2961. constraints were violated when the user pressed OK, the member does not
  2962. get called.
  2963.  
  2964. \hy-10{748}{wxForm::OnRevert}
  2965.  
  2966. \hy-8{749}{void OnRevert(void)}
  2967.  
  2968. This member may be derived by the application. When the user presses the
  2969. Revert button, the C++ form item variable values in effect before the
  2970. last Update are restored.  Then this member is called, allowing the
  2971. application to take further action.
  2972.  
  2973. \hy-10{751}{wxForm::OnUpdate}
  2974.  
  2975. \hy-8{752}{void OnUpdate(void)}
  2976.  
  2977. This member may be derived by the application. When the user presses the
  2978. Update button, the C++ form item variable values are updated to the
  2979. values on the panel.  Then this member is called, allowing the
  2980. application to take further action.
  2981.  
  2982. \hy-10{754}{wxForm::RevertValues}
  2983.  
  2984. \hy-8{755}{void RevertValues(void)}
  2985.  
  2986. Internal function for displaying the C++ form item values in the
  2987. displayed panel items. Should not need to be called by the user.
  2988.  
  2989. \hy-10{757}{wxForm::UpdateValues}
  2990.  
  2991. \hy-8{758}{Bool UpdateValues(void)}
  2992.  
  2993. Internal function for setting the C++ form item values to the values set
  2994. in the panel items. Should not need to be called by the user.
  2995.  
  2996. \hy-8{759}{Functions for making form items and constraints}
  2997.  
  2998. These functions make form items and their associated constraints for
  2999. passing to \hy-8{760}{wxForm::Add}.
  3000.  
  3001. \hy-8{761}{wxFormItem * wxMakeFormButton(char *label,
  3002. wxFunction fun)}
  3003.  
  3004. Makes a button with a conventional callback.
  3005.  
  3006. \hy-8{762}{wxFormItem * wxMakeFormMessage(char *label)}
  3007.  
  3008. Makes a message.
  3009.  
  3010. \hy-8{763}{wxFormItem * wxMakeFormNewLine(void)}
  3011.  
  3012. Adds a newline.
  3013.  
  3014. \hy-8{764}{wxFormItem * wxMakeFormLong(char *label, long *var,
  3015.   int item_type = wxFORM_DEFAULT, wxList *constraints = NULL,
  3016.   char *help_string = NULL, wxEditFunction editor = NULL, int width = -1,
  3017.   int height = -1)}
  3018.  
  3019. Makes a long integer form item, given a label, a pointer to the variable
  3020. holding the value, an item type, and a list of constraints (see below).
  3021. \hy-7{765}{help_string} and \hy-7{766}{editor} are currently not used.
  3022.  
  3023.  
  3024. \hy-8{767}{wxFormItem * wxMakeFormShort(char *label, int *var,
  3025.   int item_type = wxFORM_DEFAULT, wxList *constraints = NULL,
  3026.   char *help_string = NULL, wxEditFunction editor = NULL, int width = -1,
  3027.   int height = -1)}
  3028.  
  3029. Makes an integer form item, given a label, a pointer to the variable
  3030. holding the value, an item type, and a list of constraints (see below).
  3031. \hy-7{768}{help_string} and \hy-7{769}{editor} are currently not used.
  3032.  
  3033.  
  3034. \hy-8{770}{wxFormItem * wxMakeFormFloat(char *label, float *var,
  3035.   int item_type = wxFORM_DEFAULT, wxList *constraints = NULL,
  3036.   char *help_string = NULL, wxEditFunction editor = NULL,
  3037.   int width = -1,
  3038.   int height = -1)}
  3039.  
  3040. Makes a floating-point form item, given a label, a pointer to the variable
  3041. holding the value, an item type, and a list of constraints (see below).
  3042. \hy-7{771}{help_string} and \hy-7{772}{editor} are currently not used.
  3043.  
  3044.  
  3045. \hy-8{773}{wxFormItem * wxMakeFormBool(char *label, Bool *var,
  3046.   int item_type = wxFORM_DEFAULT, wxList *constraints = NULL,
  3047.   char *help_string = NULL, wxEditFunction editor = NULL, int width = -1,
  3048.   int height = -1)}
  3049.  
  3050. Makes a boolean form item, given a label, a pointer to the variable
  3051. holding the value, an item type, and a list of constraints (see below).
  3052. \hy-7{774}{help_string} and \hy-7{775}{editor} are currently not used.
  3053.  
  3054. \hy-8{776}{wxFormItem * wxMakeFormString(char *label, char **var,
  3055.   int item_type = wxFORM_DEFAULT, wxList *constraints = NULL,
  3056.   char *help_string = NULL, wxEditFunction editor = NULL,
  3057.   int width = -1,
  3058.   int height = -1)}
  3059.  
  3060. Makes a string form item, given a label, a pointer to the variable
  3061. holding the value, an item type, and a list of constraints (see below).
  3062. \hy-7{777}{help_string} and \hy-7{778}{editor} are currently not used.
  3063.  
  3064.  
  3065. \hy-8{779}{wxFormItemConstraint * wxMakeConstraintStrings(wxList *list)}
  3066.  
  3067. Makes a constraint specifying that the value must be one of the strings
  3068. given in the list.
  3069.  
  3070. \hy-8{780}{wxFormItemConstraint * wxMakeConstraintStrings(char *first, ...)}
  3071.  
  3072. Makes a constraint specifying that the value must be one of the strings
  3073. given in the variable-length argument list,\hy-7{781}{terminated with a zero}.
  3074.  
  3075. \hy-8{782}{wxFormItemConstraint * wxMakeConstraintFunction(wxConstraintFunction func)}
  3076.  
  3077. Makes a constraint with a function that gets called when the value is
  3078. being checked. The function should return FALSE if the constraint was
  3079. violated, TRUE otherwise.  The function should also write an appropriate
  3080. message into the buffer passed to it if the constraint was violated.
  3081. The type \hy-8{783}{wxConstraintFunction} is defined as follows:
  3082.  
  3083. \hy-8{784}{typedef Bool (*wxConstraintFunction)(int type, char *value, char *label, char *msg)}
  3084.  
  3085.  \hy-7{785}{type} is the type of the item, for instance wxFORM_STRING. \hy-7{786}{value} is
  3086. the address of the variable containing the value, and should be coerced
  3087. to the correct type, except for wxFORM_STRING, where no coercion is required.
  3088.  
  3089. \hy-8{787}{wxFormItemConstraint * wxMakeConstraintRange(float lo, float hi)}
  3090.  
  3091. Makes a range constraint; can be used for integer and floating point
  3092. form items.
  3093.  
  3094. \hy-10{792}{wxFrame::wxFrame}
  3095.  
  3096. \hy-8{793}{void wxFrame(wxFrame *parent, char *title, int x = -1, int y = -1,
  3097.   int width = -1, int height = -1, int style = wxSDI)}
  3098.  
  3099. Constructor.  The \hy-7{794}{parent} parameter can be NULL or an existing frame.
  3100. The final parameter determines whether, under Windows, the frame is an
  3101. SDI frame (wxSDI), an MDI parent frame (wxMDI_PARENT) or an MDI child
  3102. frame (wxMDI_CHILD).
  3103.  
  3104. \hy-10{796}{wxFrame::~wxFrame}
  3105.  
  3106. \hy-8{797}{void ~wxFrame(void)}
  3107.  
  3108. Destructor. Destroys all child windows and menu bar if present.
  3109.  
  3110. \hy-10{799}{wxFrame::Centre}
  3111.  
  3112. \hy-8{800}{void Centre(int direction = wxBOTH)}
  3113.  
  3114. Centres the frame on the display. The parameter may be 
  3115. wxHORIZONTAL, wxVERTICAL or wxBOTH.
  3116.  
  3117. \hy-10{802}{wxFrame::CreateStatusLine}
  3118.  
  3119. \hy-8{803}{void CreateStatusLine(void)}
  3120.  
  3121. Creates a status line at the bottom of the frame. The width of the
  3122. status line is the whole width of the frame (adjusted automatically when
  3123. resizing), and the height and text size are chosen by the host system.
  3124. Does not work for MDI parent frames.
  3125.  
  3126. \hy-10{805}{wxFrame::Iconize}
  3127.  
  3128. \hy-8{806}{void Iconize(Bool iconize)}
  3129.  
  3130. If TRUE, iconizes the frame; if FALSE, shows and restores it.
  3131.  
  3132. \hy-10{808}{wxFrame::Iconized}
  3133.  
  3134. \hy-8{809}{Bool Iconized(void)}
  3135.  
  3136. Returns TRUE if the frame is iconized.
  3137.  
  3138.  
  3139. \hy-10{811}{wxFrame::OnMenuCommand}
  3140.  
  3141. \hy-8{812}{void OnMenuCommand(int id)}
  3142.  
  3143. Sent to the window when an item on the window's menu has been chosen.
  3144. Derive your own frame class to handle this message.
  3145.  
  3146. \hy-10{814}{wxFrame::OnMenuSelect}
  3147.  
  3148. \hy-8{815}{void OnMenuSelect(int id)}
  3149.  
  3150. Sent to the window when an item on the window's menu has been selected
  3151. (i.e. the cursor is on the item, but the left button has not been
  3152. released). Derive your own frame class to handle this message.
  3153. See the \hy-7{816}{hello} sample for an example of using this to implement a
  3154. line of explanation about each menu item.
  3155.  
  3156. This function is only called under Windows 3.
  3157.  
  3158. \hy-10{818}{wxFrame::SetIcon}
  3159.  
  3160. \hy-8{819}{void SetIcon(wxIcon * icon)}
  3161.  
  3162. Sets the icon for this frame, deleting any existing one.  Note an
  3163. important difference between XView and Windows 3 behaviour. In Windows
  3164. 3, the title of the frame is the icon label, wrapping if necessary for a
  3165. long title. If the frame title changes, the icon label changes. In
  3166. XView, the icon label cannot be changed once the icon has been
  3167. associated with the frame.  Also, there is no wrapping, and icon labels
  3168. must therefore be short.
  3169.  
  3170. The best thing to do to accommodate both situations is to have the frame
  3171. title set to a short string when setting the icon. Then, set the frame
  3172. title to the desired text. In XView, the icon will keep its short text.
  3173. In Windows 3, the longer (probably more meaningful) title will be
  3174. shown.
  3175.  
  3176. Note also that in Windows 3, icons cannot be associated with a window
  3177. after window initialization, except by explicitly drawing the icon onto
  3178. the iconized window, which is what wxWindows does. Because of this
  3179. workaround, the background of the icon will be white rather than the
  3180. usual transparent. It was felt limiting to have to pass an icon name at
  3181. frame create time.
  3182.  
  3183. However, drawing the icon like this does not work (for some unknown
  3184. reason) with MDI parent and child frames, and so for MDI applications
  3185. the following lines need to be added to the Windows 3 resource file:
  3186.  
  3187. \hy-14{820}{wxSTD_FRAME         ICON icon1.ico
  3188. wxSTD_MDICHILDFRAME ICON icon2.ico
  3189. }
  3190. where icon1.ico will be used for SDI frames or the MDI parent frame, and
  3191. icon2.ico will be used for MDI child frames.
  3192.  
  3193. \hy-10{822}{wxFrame::SetMenuBar}
  3194.  
  3195. \hy-8{823}{void SetMenuBar(wxMenuBar *frame)}
  3196.  
  3197. Tells the frame to show the given menu bar.  If the frame is destroyed, the
  3198. menu bar and its menus will be destroyed also, so do not delete the menu
  3199. bar explicitly (except by resetting the frame's menu bar to another
  3200. frame or NULL).
  3201.  
  3202. \hy-10{825}{wxFrame::SetStatusText}
  3203.  
  3204. \hy-8{826}{void SetStatusText(char * text)}
  3205.  
  3206. Sets the status line text and redraws the status line. Use an empty (not NULL) string
  3207. to clear the status line.
  3208.  
  3209. \hy-10{828}{wxFrame::StatusLineExists}
  3210.  
  3211. \hy-8{829}{Bool StatusLineExists(void)}
  3212.  
  3213. Returns TRUE if the status line has previously been created.
  3214.  
  3215. \hy-8{832}{typedef void (*wxFunction)(wxObject&, wxEvent&)}
  3216.  
  3217. The type of a callback function. 
  3218.  
  3219. \hy-10{838}{wxIcon::wxIcon}
  3220.  
  3221. \hy-8{839}{void wxIcon(short bits[], int width, int height)}
  3222.  
  3223. \hy-8{840}{void wxIcon(char * icon_name)}
  3224.  
  3225. Constructor. An icon can be created by passing an array of bits (XView only)
  3226. or by passing a string name. \hy-7{841}{icon_name} refers to a filename in XView,
  3227. a resource name in Windows 3.  
  3228.  
  3229. \hy-10{843}{wxIcon::~wxIcon}
  3230.  
  3231. \hy-8{844}{void ~wxIcon(void)}
  3232.  
  3233. Destroys the icon.  Do not explicitly delete an icon pointer which has
  3234. been passed to a frame - the frame will delete the icon when it is
  3235. destroyed. If assigning a new icon to a frame, the old icon will be
  3236. destroyed.
  3237.  
  3238. \hy-10{849}{wxHashTable::wxHashTable}
  3239.  
  3240. \hy-8{850}{void wxHashTable(unsigned int key_type, int size = 1000)}
  3241.  
  3242. Constructor. \hy-7{851}{key_type} is one of wxKEY_INTEGER, or wxKEY_STRING,
  3243. and indicates what sort of keying is required. \hy-7{852}{size} is optional.
  3244.  
  3245. \hy-10{854}{wxHashTable::~wxHashTable}
  3246.  
  3247. \hy-8{855}{void ~wxHashTable(void)}
  3248.  
  3249. Destroys the hash table.
  3250.  
  3251. \hy-10{857}{wxHashTable::BeginFind}
  3252.  
  3253. \hy-8{858}{void BeginFind(void)}
  3254.  
  3255. The counterpart of \hy-7{859}{Next}.  If the application wishes to iterate
  3256. through all the data in the hash table, it can call \hy-7{860}{BeginFind} and
  3257. then loop on \hy-7{861}{Next}.
  3258.  
  3259. \hy-10{863}{wxHashTable::Clear}
  3260.  
  3261. \hy-8{864}{void Clear(void)}
  3262.  
  3263. Clears the hash table of all nodes (but as usual, doesn't delete user data).
  3264.  
  3265. \hy-10{866}{wxHashTable::Delete}
  3266.  
  3267. \hy-8{867}{wxObject * Delete(long key)}
  3268.  
  3269. \hy-8{868}{wxObject * Delete(char * key)}
  3270.  
  3271. Deletes entry in hash table and returns the user's data (if found).
  3272.  
  3273. \hy-10{870}{wxHashTable::Get}
  3274.  
  3275. \hy-8{871}{wxObject * Get(long key)}
  3276.  
  3277. \hy-8{872}{wxObject * Get(char * key)}
  3278.  
  3279. Gets data from the hash table, using an integer or string key (depending on which
  3280. has table constructor was used).
  3281.  
  3282. \hy-10{874}{wxHashTable::MakeKey}
  3283.  
  3284. \hy-8{875}{long MakeKey(char *string)}
  3285.  
  3286. Makes an integer key out of a string. An application may wish to make a key
  3287. explicitly (for instance when combining two data values to form a key).
  3288.  
  3289. \hy-10{877}{wxHashTable::Next}
  3290.  
  3291. \hy-8{878}{wxNode * Next(void)}
  3292.  
  3293. If the application wishes to iterate through all the data in the hash
  3294. table, it can call \hy-7{879}{BeginFind} and then loop on \hy-7{880}{Next}. This function
  3295. returns a \hy-8{881}{wxNode} pointer (or NULL if there are no more nodes).  See the
  3296. \hy-8{882}{wxNode} description. The user will probably only wish to use the
  3297. \hy-8{883}{wxNode::Data} function to retrieve the data; the node may also be deleted.
  3298.  
  3299. \hy-10{885}{wxHashTable::Put}
  3300.  
  3301. \hy-8{886}{void Put(long key, wxObject *object)}
  3302.  
  3303. \hy-8{887}{void Put(char * key, wxObject *object)}
  3304.  
  3305. Inserts data into the hash table, using an integer or string key (depending on which
  3306. has table constructor was used).  Note that only the pointer to the string key
  3307. is stored, so it should not be deallocated by the calling program.
  3308.  
  3309. \hy-10{896}{wxHelpInstance::wxHelpInstance}
  3310.  
  3311. \hy-8{897}{void wxHelpInstance(void)}
  3312.  
  3313. Constructs a help instance object, but does not invoke wxHelp.
  3314.  
  3315. \hy-10{899}{wxHelpInstance::~wxHelpInstance}
  3316.  
  3317. Destroys the help instance, closing down wxHelp for this application
  3318. if it is running.
  3319.  
  3320. \hy-10{901}{wxHelpInstance::Initialize}
  3321.  
  3322. \hy-8{902}{void Initialize(char *file, int server = -1)}
  3323.  
  3324. Initializes the help instance with a help filename, and optionally a server (socket)
  3325. number (one is chosen at random if this parameter is omitted). Does not invoke wxHelp.
  3326. This must be called directly after the help instance object is created and before
  3327. any attempts to communicate with wxHelp.
  3328.  
  3329. \hy-10{904}{wxHelpInstance::DisplayBlock}
  3330.  
  3331. \hy-8{905}{Bool DisplayBlock(long blockNo)}
  3332.  
  3333. If wxHelp is not running, runs wxHelp and displays the file at the given block number.
  3334.  
  3335. \hy-10{907}{wxHelpInstance::DisplayContents}
  3336.  
  3337. \hy-8{908}{Bool DisplayContents(void)}
  3338.  
  3339. If wxHelp is not running, runs wxHelp and displays the contents (the first section
  3340. of the file).
  3341.  
  3342. \hy-10{910}{wxHelpInstance::DisplaySection}
  3343.  
  3344. \hy-8{911}{Bool DisplaySection(int sectionNo)}
  3345.  
  3346. If wxHelp is not running, runs wxHelp and displays the given section.
  3347. Sections are numbered starting from 1, and section numbers may be viewed by running
  3348. wxHelp in edit mode.
  3349.  
  3350. \hy-10{913}{wxHelpInstance::KeywordSearch}
  3351.  
  3352. \hy-8{914}{Bool KeywordSearch(char *keyWord)}
  3353.  
  3354. If wxHelp is not running, runs wxHelp, and searches for sections matching the
  3355. given keyword. If one match is found, the file is displayed at this section. If more
  3356. than one match is found, the Search dialog is displayed with the matches.
  3357.  
  3358. \hy-10{916}{wxHelpInstance::LoadFile}
  3359.  
  3360. \hy-8{917}{Bool LoadFile(char *file = NULL)}
  3361.  
  3362. If wxHelp is not running, runs wxHelp, and loads the given file. If the filename is
  3363. not supplied or is NULL, the file specified in \hy-8{918}{Initialize} is used. If wxHelp
  3364. is already displaying the specified file, it will not be reloaded. This member function
  3365. may be used before each display call in case the user has opened another file.
  3366.  
  3367. \hy-10{920}{wxHelpInstance::OnQuit}
  3368.  
  3369. \hy-8{921}{Bool OnQuit(void)}
  3370.  
  3371. Overridable member called when this application's wxHelp is quit.
  3372.  
  3373. \hy-10{923}{wxHelpInstance::Quit}
  3374.  
  3375. \hy-8{924}{Bool Quit(void)}
  3376.  
  3377. If wxHelp is running, quits wxHelp by disconnecting.
  3378.  
  3379. \hy-10{928}{wxItem::Centre}
  3380.  
  3381. \hy-8{929}{void Centre(int direction = wxHORIZONTAL)}
  3382.  
  3383. Centres the frame on the panel or dialog box. The parameter may be 
  3384. wxHORIZONTAL, wxVERTICAL or wxBOTH.
  3385.  
  3386. You may still use \hy-8{930}{Fit} in conjunction with this call, but call \hy-8{931}{Fit}
  3387. first before centring items.
  3388.  
  3389. \hy-10{933}{wxItem::SetDefault}
  3390.  
  3391. \hy-8{934}{void SetDefault(void)}
  3392.  
  3393. This sets the window to be the default item for the panel or dialog
  3394. box.  Under XView, the default item is highlighted, and pressing the
  3395. return key executes the callback for the item (but with no visual
  3396. feedback, and only if a text item does not have the focus).
  3397.  
  3398. Under Windows 3, only dialog box buttons respond to this function.  As
  3399. normal under Windows 3, pressing return causes the default button to
  3400. be depressed when the return key is pressed. See also \hy-8{935}{wxWindow::SetFocus}
  3401. which sets the keyboard focus for windows and text panel items.
  3402.  
  3403. \hy-10{937}{wxItem::SetLabel}
  3404.  
  3405. \hy-8{938}{void wxItem(char *label)}
  3406.  
  3407. Sets the item's label. A copy of the label is taken.
  3408.  
  3409. \hy-10{940}{wxItem::GetLabel}
  3410.  
  3411. \hy-8{941}{char * wxItem(void)}
  3412.  
  3413. Gets a temporary pointer to the item's label.
  3414.  
  3415. \hy-10{951}{wxList::wxList}
  3416.  
  3417. \hy-8{952}{void wxList(void)}
  3418.  
  3419. \hy-8{953}{void wxList(unsigned int key_type)}
  3420.  
  3421. \hy-8{954}{void wxList(int n, wxObject *objects[])}
  3422.  
  3423. \hy-8{955}{void wxList(wxObject *object, ...)}
  3424.  
  3425. Constructors. \hy-7{956}{key_type} is one of wxKEY_NONE, wxKEY_INTEGER, or wxKEY_STRING,
  3426. and indicates what sort of keying is required (if any).
  3427.  
  3428. \hy-7{957}{objects} is an array of \hy-7{958}{n} objects with which to initialize the list.
  3429.  
  3430. The variable-length argument list constructor must be supplied with a
  3431. terminating NULL.
  3432.  
  3433. \hy-10{960}{wxList::~wxList}
  3434.  
  3435. \hy-8{961}{void ~wxList(void)}
  3436.  
  3437. Destroys list.  Also destroys any remaining nodes, but does not destroy
  3438. client data held in the nodes.
  3439.  
  3440. \hy-10{963}{wxList::Append}
  3441.  
  3442. \hy-8{964}{wxNode * Append(wxObject *object)}
  3443.  
  3444. \hy-8{965}{wxNode * Append(long key, wxObject *object)}
  3445.  
  3446. \hy-8{966}{wxNode * Append(char *key, wxObject *object)}
  3447.  
  3448. Appends a new \hy-8{967}{wxNode} to the end of the list and puts a pointer to the
  3449. \hy-7{968}{object} in the node.  The last two forms store a key with the object for
  3450. later retrieval using the key. The new node is returned in each case.
  3451.  
  3452. \hy-10{970}{wxList::Clear}
  3453.  
  3454. \hy-8{971}{void Clear(void)}
  3455.  
  3456. Clears the list (but does not delete the client data stored with each node).
  3457.  
  3458. \hy-10{973}{wxList::DeleteContents}
  3459.  
  3460. \hy-8{974}{void DeleteContents(Bool destroy)}
  3461.  
  3462. If \hy-7{975}{destroy} is TRUE, instructs the list to call \hy-7{976}{delete} on the client contents of
  3463. a node whenever the node is destroyed. The default is FALSE.
  3464.  
  3465. \hy-10{978}{wxList::DeleteNode}
  3466.  
  3467. \hy-8{979}{Bool DeleteNode(wxNode *node)}
  3468.  
  3469. Deletes the given node from the list, returning TRUE if successful.
  3470.  
  3471. \hy-10{981}{wxList::DeleteObject}
  3472.  
  3473. \hy-8{982}{Bool DeleteObject(wxObject *object)}
  3474.  
  3475. Finds the given client \hy-7{983}{object} and deletes the appropriate node from the list, returning
  3476. TRUE if successful. The application must delete the actual object separately.
  3477.  
  3478. \hy-10{985}{wxList::Find}
  3479.  
  3480. \hy-8{986}{wxNode * Find(long key)}
  3481.  
  3482. \hy-8{987}{wxNode * Find(char *key)}
  3483.  
  3484. Returns the node whose stored key matches \hy-7{988}{key}. Use on a keyed list only.
  3485.  
  3486. \hy-10{990}{wxList::First}
  3487.  
  3488. \hy-8{991}{wxNode * First(void)}
  3489.  
  3490. Returns the first node in the list (NULL if the list is empty).
  3491.  
  3492. \hy-10{993}{wxList::Insert}
  3493.  
  3494. \hy-8{994}{wxNode * Insert(wxObject *object)}
  3495.  
  3496. Insert object at front of list.
  3497.  
  3498. \hy-8{995}{wxNode * Insert(wxNode *position, wxObject *object)}
  3499.  
  3500. Insert object before \hy-7{996}{position}.
  3501.  
  3502.  
  3503. \hy-10{998}{wxList::Last}
  3504.  
  3505. \hy-8{999}{wxNode * Last(void)}
  3506.  
  3507. Returns the last node in the list (NULL if the list is empty).
  3508.  
  3509. \hy-10{1001}{wxList::Member}
  3510.  
  3511. \hy-8{1002}{Bool Member(wxObject *object)}
  3512.  
  3513. Returns TRUE if the client data \hy-7{1003}{object} is in the list.
  3514.  
  3515. \hy-10{1005}{wxList::Nth}
  3516.  
  3517. \hy-8{1006}{wxNode * Nth(int n)}
  3518.  
  3519. Returns the \hy-7{1007}{nth} node in the list, indexing from zero (NULL if the list is empty
  3520. or the nth node could not be found).
  3521.  
  3522. \hy-10{1009}{wxList::Number}
  3523.  
  3524. \hy-8{1010}{int Number(void)}
  3525.  
  3526. Returns the number of elements in the list.
  3527.  
  3528. \hy-10{1014}{wxListBox::wxListBox}
  3529.  
  3530. \hy-8{1015}{void wxListBox(wxPanel *parent, wxFunction func,
  3531. char *label,
  3532.   Bool multiple_selection = FALSE, int x = -1, int y = -1,
  3533.   int width = -1, int height = -1, int n, char *choices[])}
  3534.  
  3535. Constructor, creating and showing a list box. If \hy-7{1016}{width} or \hy-7{1017}{
  3536. height} are omitted (or are less than zero), an appropriate size will be
  3537. used for the list box. \hy-7{1018}{func} may be NULL; otherwise it is used as
  3538. the callback for the list box.  Note that the cast (wxFunction) must be
  3539. used when passing your callback function name, or the compiler may
  3540. complain that the function does not match the constructor declaration.
  3541.  
  3542. \hy-7{1019}{n} is the number of possible choices, and \hy-7{1020}{choices} is an array of strings
  3543. of size \hy-7{1021}{n}. wxWindows allocates its own memory for these strings so the
  3544. calling program must deallocate the array itself.
  3545.  
  3546. \hy-7{1022}{multiple_selection} is TRUE for a multiple selection list box, FALSE for
  3547. a single selection list box.
  3548.  
  3549. \hy-10{1024}{wxListBox::~wxListBox}
  3550.  
  3551. \hy-8{1025}{void ~wxListBox(void)}
  3552.  
  3553. Destructor, destroying the list box.
  3554.  
  3555. \hy-10{1027}{wxListBox::Append}
  3556.  
  3557. \hy-8{1028}{void Append(char * item)}
  3558.  
  3559. Adds the item to the end of the list box. \hy-7{1029}{item} must be deallocated by the calling
  3560. program, i.e. wxWindows makes its own copy.
  3561.  
  3562. \hy-8{1030}{void Append(char * item, char *client_data)}
  3563.  
  3564. Adds the item to the end of the list box, associating the given data
  3565. with the item. \hy-7{1031}{item} must be deallocated by the calling program.
  3566.  
  3567. \hy-10{1033}{wxListBox::Clear}
  3568.  
  3569. \hy-8{1034}{void Clear(void)}
  3570.  
  3571. Clears all strings from the list box.
  3572.  
  3573. \hy-10{1036}{wxListBox::Clientdata}
  3574.  
  3575. \hy-8{1037}{char * Clientdata(int n)}
  3576.  
  3577. Returns a pointer to the client data associated with the given item (if any).
  3578.  
  3579. \hy-10{1039}{wxListBox::Deselect}
  3580.  
  3581. \hy-8{1040}{void Deselect(int n)}
  3582.  
  3583. Deselects the given item in the list box.
  3584.  
  3585. \hy-10{1042}{wxListBox::FindString}
  3586.  
  3587. \hy-8{1043}{int FindString(int char *s)}
  3588.  
  3589. Finds a choice matching the given string, returning the position if found, or
  3590. -1 if not found.
  3591.  
  3592. \hy-10{1045}{wxListBox::GetSelection}
  3593.  
  3594. \hy-8{1046}{int GetSelection(void)}
  3595.  
  3596. Gets the id (position) of the selected string - for single selection list boxes only.
  3597.  
  3598. \hy-10{1048}{wxListBox::GetSelections}
  3599.  
  3600. \hy-8{1049}{int GetSelections(int **selections)}
  3601.  
  3602. Gets an array containing the positions of the selected strings. The number of selections
  3603. is returned.  Pass a pointer to an integer array, and do not deallocate the returned array.
  3604.  
  3605. \hy-10{1051}{wxListBox::GetStringSelection}
  3606.  
  3607. \hy-8{1052}{char * GetStringSelection(void)}
  3608.  
  3609. Gets the selected string - for single selection list boxes only. This
  3610. must be copied by the calling program if long term use is to be made of
  3611. it.
  3612.  
  3613. \hy-10{1054}{wxListBox::Set}
  3614.  
  3615. \hy-8{1055}{void Set(int n, char *choices[])}
  3616.  
  3617. Clears the list box and adds the given strings. Deallocate the array from the calling program
  3618. after this function has been called.
  3619.  
  3620. \hy-10{1057}{wxListBox::SetSelection}
  3621.  
  3622. \hy-8{1058}{void SetSelection(int n)}
  3623.  
  3624. Sets the choice by passing the desired string position.
  3625.  
  3626. \hy-10{1060}{wxListBox::SetStringSelection}
  3627.  
  3628. \hy-8{1061}{void SetStringSelection(char * s)}
  3629.  
  3630. Sets the choice by passing the desired string.
  3631.  
  3632. \hy-10{1063}{wxListBox::String}
  3633.  
  3634. \hy-8{1064}{char * String(int n)}
  3635.  
  3636. Returns a temporary pointer to the string at position \hy-7{1065}{n}.
  3637.  
  3638. \hy-10{1069}{wxMenu::wxMenu}
  3639.  
  3640. \hy-8{1070}{void wxMenu(char *title = NULL, wxFunction func = NULL)}
  3641.  
  3642. Both arguments are presently ignored.
  3643.  
  3644. \hy-10{1072}{wxMenu::~wxMenu}
  3645.  
  3646. \hy-8{1073}{void ~wxMenu(void)}
  3647.  
  3648. Destructor, destroying the menu.
  3649.  
  3650. \hy-10{1075}{wxMenu::Append}
  3651.  
  3652. \hy-8{1076}{void Append(int id, char * item)}
  3653.  
  3654. \hy-8{1077}{void Append(int id, char * item, wxMenu *submenu)}
  3655.  
  3656. Adds the item to the end of the menu. \hy-7{1078}{item} must be deallocated by the calling
  3657. program.  If the second form is used, the given menu will be a pullright submenu (must be
  3658. created already).  Do not use \hy-7{1079}{submenu} after this call: it will be deallocated by
  3659. wxWindows.
  3660.  
  3661. \hy-10{1081}{wxMenu::AppendSeparator}
  3662.  
  3663. \hy-8{1082}{void AppendSeparator(void)}
  3664.  
  3665. Adds a separator to the end of the menu. Works in Windows 3 but has no
  3666. effect in XView.
  3667.  
  3668. \hy-10{1084}{wxMenu::Enable}
  3669.  
  3670. \hy-8{1085}{void Enable(int id, Bool flag)}
  3671.  
  3672. If \hy-7{1086}{flag} is TRUE, enables the given menu item, else disables it
  3673. (greys it).
  3674.  
  3675. \hy-10{1088}{wxMenu::Check}
  3676.  
  3677. \hy-8{1089}{void Check(int id, Bool flag)}
  3678.  
  3679. If \hy-7{1090}{flag} is TRUE, checks the given menu item, else unchecks it.
  3680. Works in Windows 3 but has no effect in XView.
  3681.  
  3682. \hy-10{1095}{wxMenuBar::wxMenuBar}
  3683.  
  3684. \hy-8{1096}{void wxMenuBar(void)}
  3685.  
  3686. \hy-8{1097}{void wxMenuBar(int n, wxMenu *menus[], char *titles[])}
  3687.  
  3688. Construct a menu bar. In the second form, the calling program must have
  3689. created an array of menus and an array of titles. Do not use the
  3690. submenus again after this call.
  3691.  
  3692. \hy-10{1099}{wxMenuBar::~wxMenuBar}
  3693.  
  3694. \hy-8{1100}{void ~wxMenuBar(void)}
  3695.  
  3696. Destructor, destroying the menu bar and removing it from the parent frame (if any).
  3697.  
  3698. \hy-10{1102}{wxMenuBar::Append}
  3699.  
  3700. \hy-8{1103}{void Append(wxMenu *menu, char *title)}
  3701.  
  3702. Adds the item to the end of the menu bar. Do not use \hy-7{1104}{menu} after
  3703. this call: it will be deallocated by wxWindows.
  3704.  
  3705. \hy-10{1106}{wxMenuBar::Enable}
  3706.  
  3707. \hy-8{1107}{void Enable(int id, Bool flag)}
  3708.  
  3709. If \hy-7{1108}{flag} is TRUE, enables the given menu item, else disables it
  3710. (greys it). Only use this when the menu bar has been associated with a
  3711. frame; otherwise, use the wxMenu equivalent call.
  3712.  
  3713. \hy-10{1110}{wxMenuBar::Check}
  3714.  
  3715. \hy-8{1111}{void Check(int id, Bool flag)}
  3716.  
  3717. If \hy-7{1112}{flag} is TRUE, checks the given menu item, else unchecks it.
  3718. Works in Windows but has no effect in XView. Only use this when the menu
  3719. bar has been associated with a frame; otherwise, use the wxMenu
  3720. equivalent call.
  3721.  
  3722. \hy-10{1116}{wxMessage::wxMessage}
  3723.  
  3724. \hy-8{1117}{void wxMessage(wxPanel *panel, char *message, int x = -1, int y = -1)}
  3725.  
  3726. Creates and displays the message at the given coordinate.
  3727.  
  3728. \hy-10{1119}{wxMessage::~wxMessage}
  3729.  
  3730. \hy-8{1120}{void ~wxMessage(void)}
  3731.  
  3732. Destroys the message.
  3733.  
  3734. \hy-10{1124}{wxMetaFile::wxMetaFile}
  3735.  
  3736. \hy-8{1125}{void wxMetaFile(void)}
  3737.  
  3738. Constructor.
  3739.  
  3740. \hy-10{1127}{wxMetaFile::~wxMetaFile}
  3741.  
  3742. \hy-8{1128}{void ~wxMetaFile(void)}
  3743.  
  3744. Destructor.
  3745.  
  3746. \hy-10{1130}{wxMetaFile::SetClipboard}
  3747.  
  3748. \hy-8{1131}{Bool SetClipboard(int width = 0,
  3749. int height = 0)}
  3750.  
  3751. Passes the metafile data to the clipboard. The metafile can no longer be
  3752. used for anything, but the wxMetaFile object must still be destroyed by
  3753. the application.
  3754.  
  3755. \hy-10{1137}{wxMetaFileDC::wxMetaFileDC}
  3756.  
  3757. \hy-8{1138}{void wxMetaFileDC(char *filename = NULL)}
  3758.  
  3759. Constructor. If no filename is passed, the metafile is created
  3760. in memory.
  3761.  
  3762. \hy-10{1140}{wxMetaFileDC::~wxMetaFileDC}
  3763.  
  3764. \hy-8{1141}{void ~wxMetaFileDC(void)}
  3765.  
  3766. Destructor.
  3767.  
  3768. \hy-10{1143}{wxMetaFileDC::Close}
  3769.  
  3770. \hy-8{1144}{wxMetaFile * Close(void)}
  3771.  
  3772. This must be called after the device context is finished with. A
  3773. metafile is returned, and ownership of it passes to the calling
  3774. application (so it should be destroyed explicitly).
  3775.  
  3776. \hy-10{1152}{wxNode::Data}
  3777.  
  3778. \hy-8{1153}{wxObject * Data(void)}
  3779.  
  3780. Retrieves the client data pointer associated with the node. This will
  3781. have to be cast to the correct type.
  3782.  
  3783. \hy-10{1155}{wxNode::Next}
  3784.  
  3785. \hy-8{1156}{wxNode * Next(void)}
  3786.  
  3787. Retrieves the next node (NULL if at end of list).
  3788.  
  3789. \hy-10{1158}{wxNode::Previous}
  3790.  
  3791. \hy-8{1159}{wxNode * Previous(void)}
  3792.  
  3793. Retrieves the previous node (NULL if at start of list).
  3794.  
  3795. \hy-10{1161}{wxNode::SetData}
  3796.  
  3797. \hy-8{1162}{void SetData(void)}
  3798.  
  3799. Sets the data associated with the node (usually the pointer will have been
  3800. set when the node was created).
  3801.  
  3802. \hy-10{1170}{wxPanel::wxPanel}
  3803.  
  3804. \hy-8{1171}{void wxPanel(wxFrame *parent, int x = -1, int y = -1, int width = -1, int height = -1,
  3805.   int style = 0)}
  3806.  
  3807. Constructor. Set style to wxBORDER to draw a thin border in Windows 3.
  3808.  
  3809. \hy-10{1173}{wxPanel::~wxPanel}
  3810.  
  3811. \hy-8{1174}{void ~wxPanel(void)}
  3812.  
  3813. Destructor.  Deletes any panel items before deleting the physical window.
  3814.  
  3815. \hy-10{1176}{wxPanel::GetCursor}
  3816.  
  3817. \hy-8{1177}{void GetCursor(int *x, int *y)}
  3818.  
  3819. Gets the current panel `cursor' position, i.e. where the next panel item
  3820. will be placed.
  3821.  
  3822. \hy-10{1179}{wxPanel::GetHorizontalSpacing}
  3823.  
  3824. \hy-8{1180}{int GetHorizontalSpacing(void)}
  3825.  
  3826. Gets the horizontal spacing for placing items on a panel.
  3827.  
  3828. \hy-10{1182}{wxPanel::GetVerticalSpacing}
  3829.  
  3830. \hy-8{1183}{int GetVerticalSpacing(void)}
  3831.  
  3832. Gets the vertical spacing for placing items on a panel.
  3833.  
  3834. \hy-10{1185}{wxPanel::NewLine}
  3835.  
  3836. \hy-8{1186}{void NewLine(void)}
  3837.  
  3838. Cause the next item to be positioned at the beginning of the next line,
  3839. using the current vertical spacing. More than one new line in succession
  3840. causes extra vertical spacing to be inserted.
  3841.  
  3842. \hy-10{1188}{wxPanel::SetHorizontalSpacing}
  3843.  
  3844. \hy-8{1189}{void SetHorizontalSpacing(int sp)}
  3845.  
  3846. Sets the horizontal spacing for placing items on a panel.
  3847.  
  3848. \hy-10{1191}{wxPanel::SetLabelPosition}
  3849.  
  3850. \hy-8{1192}{void SetLabelPosition(int position)}
  3851.  
  3852. Determines the current method of placing labels on panel items: if \hy-7{1193}{
  3853. position} is wxHORIZONTAL, labels are placed to the left of the
  3854. item value. If \hy-7{1194}{position} is wxVERTICAL, the label is placed
  3855. above the item value. The default behaviour is to have horizontal label
  3856. placing.
  3857.  
  3858. Under Windows 3, this function words for \hy-8{1195}{wxText}, \hy-8{1196}{wxChoice}
  3859. and \hy-8{1197}{wxListBox}. Under XView, absolute positioning must be used
  3860. for the wxVERTICAL position to work in some cases. This is because of
  3861. some strange behaviour in XView where setting a horizontal layout
  3862. orientation but a vertical label position causes items after list box
  3863. to appear too low on the panel. So, where it is necessary to have
  3864. vertical labels, use absolute positioning where results are not as
  3865. expected.
  3866.  
  3867. \hy-10{1199}{wxPanel::SetVerticalSpacing}
  3868.  
  3869. \hy-8{1200}{void SetVerticalSpacing(int sp)}
  3870.  
  3871. Sets the vertical spacing for placing items on a panel.
  3872.  
  3873. \hy-10{1202}{wxPanel::Tab}
  3874.  
  3875. \hy-8{1203}{void Tab(int pixels)}
  3876.  
  3877. Tabs by the given number of pixels.
  3878.  
  3879. \hy-10{1208}{wxPathList::wxPathList}
  3880.  
  3881. \hy-8{1209}{void wxPathList(void)}
  3882.  
  3883. Constructor.
  3884.  
  3885. \hy-10{1211}{wxPathList::AddEnvList}
  3886.  
  3887. \hy-8{1212}{void AddEnvList(char *env_variable)}
  3888.  
  3889. Finds the value of the given environment variable, and adds all paths
  3890. to the path list. Useful for finding files in the PATH variable, for
  3891. example.
  3892.  
  3893. \hy-10{1214}{wxPathList::AddPath}
  3894.  
  3895. \hy-8{1215}{void AddPath(char *path)}
  3896.  
  3897. Adds the given directory to the path list.
  3898.  
  3899. \hy-10{1217}{wxPathList::FindValidPath}
  3900.  
  3901. \hy-8{1218}{char * FindValidPath(char *file)}
  3902.  
  3903. Searches for a full path for an existing file by appending \hy-7{1219}{file} to
  3904. successive members of the path list.  If the file exists, a temporary
  3905. pointer to the full path is returned.
  3906.  
  3907. \hy-10{1221}{wxPathList::Member}
  3908.  
  3909. \hy-8{1222}{Bool Member(char *file)}
  3910.  
  3911. TRUE if the path is in the path list (ignoring case).
  3912.  
  3913. \hy-10{1231}{wxPen::wxPen}
  3914.  
  3915. \hy-8{1232}{void wxPen(void)}
  3916.  
  3917. \hy-8{1233}{void wxPen(wxColour &colour, int style)}
  3918.  
  3919. \hy-8{1234}{void wxPen(char *colour_name, int style)}
  3920.  
  3921. Constructs a pen, uninitialized, initialized with a width, initialized
  3922. with an RGB colour, a width and a style, or initialized using a colour
  3923. name, a width and a style.  If the named colour form is used, an appropriate \hy-8{1235}{
  3924. wxColour} structure is found in the colour database.
  3925.  
  3926. \hy-10{1237}{wxPen::~wxPen}
  3927.  
  3928. \hy-8{1238}{void ~wxPen(void)}
  3929.  
  3930. Destructor, destroying the pen. Note that pens should very rarely be deleted
  3931. since windows may contain pointers to them. All pens will be deleted when the
  3932. application terminates.
  3933.  
  3934. \hy-10{1240}{wxPen::GetColour}
  3935.  
  3936. \hy-8{1241}{wxColour& GetColour(void)}
  3937.  
  3938. Returns a reference to the pen colour.
  3939.  
  3940. \hy-10{1243}{wxPen::GetStyle}
  3941.  
  3942. \hy-8{1244}{int GetStyle(void)}
  3943.  
  3944. Returns the pen style.
  3945.  
  3946. \hy-10{1246}{wxPen::GetWidth}
  3947.  
  3948. \hy-8{1247}{int GetWidth(void)}
  3949.  
  3950. Returns the pen width.
  3951.  
  3952. \hy-10{1249}{wxPen::SetColour}
  3953.  
  3954. \hy-8{1250}{void SetColour(wxColour &colour)}
  3955.  
  3956. \hy-8{1251}{void SetColour(char *colour_name)}
  3957.  
  3958. \hy-8{1252}{void SetColour(int red, int green, int blue)}
  3959.  
  3960. The pen's colour is changed to the given colour.
  3961.  
  3962. \hy-10{1254}{wxPen::SetStyle}
  3963.  
  3964. \hy-8{1255}{void SetStyle(int style)}
  3965.  
  3966. Set the pen style (wxSOLID or wxTRANSPARENT).
  3967.  
  3968. \hy-10{1257}{wxPen::SetWidth}
  3969.  
  3970. \hy-8{1258}{void SetWidth(int width)}
  3971.  
  3972. Set the pen width.
  3973. \hy-10{1263}{wxPenList::wxPenList}
  3974.  
  3975. \hy-8{1264}{void wxPenList(void)}
  3976.  
  3977. Constructor.  The application should not construct its own pen list:
  3978. use the object pointer \hy-8{1265}{wxThePenList}.
  3979.  
  3980. \hy-10{1267}{wxPenList::AddPen}
  3981.  
  3982. \hy-8{1268}{void AddPen(wxPen *pen)}
  3983.  
  3984. Used by wxWindows to add a pen to the list, called in the pen constructor.
  3985.  
  3986. \hy-10{1270}{wxPenList::FindOrCreatePen}
  3987.  
  3988. \hy-8{1271}{wxPen * FindOrCreatePen(wxColour *colour, int width, int style)}
  3989.  
  3990. \hy-8{1272}{wxPen * FindOrCreatePen(char *colour_name, int width, int style)}
  3991.  
  3992. Finds a pen of the given specification, or creates one and adds it to the list.
  3993.  
  3994. \hy-10{1274}{wxPenList::RemovePen}
  3995.  
  3996. \hy-8{1275}{void RemovePen(wxPen *pen)}
  3997.  
  3998. Used by wxWindows to remove a pen from the list.
  3999.  
  4000. \hy-10{1282}{wxPoint::wxPoint}
  4001.  
  4002. \hy-8{1283}{void wxPoint(void)}
  4003.  
  4004. \hy-8{1284}{void wxPoint(float x, float y)}
  4005.  
  4006. Create a point.
  4007.  
  4008. \hy-8{1285}{float  x}
  4009.  
  4010. \hy-8{1286}{float  y}
  4011.  
  4012. Members of the \hy-8{1287}{wxPoint} object.
  4013.  
  4014.  
  4015. \hy-10{1292}{wxServer::wxServer}
  4016.  
  4017. \hy-8{1293}{void wxServer(void)}
  4018.  
  4019. Constructs a server object.
  4020.  
  4021. \hy-10{1295}{wxServer::Create}
  4022.  
  4023. \hy-8{1296}{Bool Create(char *service)}
  4024.  
  4025. Registers the server using the given service name. Under UNIX, the
  4026. string must contain an integer id which is used as an Internet port
  4027. number. FALSE is returned if the call failed (for example, the port
  4028. number is already in use).
  4029.  
  4030. \hy-10{1298}{wxServer::OnAcceptConnection}
  4031.  
  4032. \hy-8{1299}{wxConnection * OnAcceptConnection(char *topic)}
  4033.  
  4034. When a client calls \hy-8{1300}{MakeConnection}, the server receives the
  4035. message and this member is called. The application should derive a
  4036. member to intercept this message and return a connection object of
  4037. either the standard wxConnection type, or of a user-derived type. If the
  4038. topic is ``STDIO'', the application may wish to refuse the connection.
  4039. Under UNIX, when a server is created the OnAcceptConnection message is
  4040. always sent for standard input and output, but in the context of DDE
  4041. messages it doesn't make a lot of sense.
  4042.  
  4043.  
  4044. \hy-10{1304}{wxSlider::wxSlider}
  4045.  
  4046. A slider is, as its name suggests, an item with a handle which can be pulled
  4047. back and forth to change a value.  It is currently horizontal only. In Windows 3,
  4048. a scrollbar is used to simulate the slider.
  4049.  
  4050. \hy-8{1305}{void wxSlider(wxPanel *parent, wxFunction func, char *label,
  4051.   int value, int min_value, int max_value, int width, int x = -1, int y = -1)}
  4052.  
  4053. Constructor, creating and showing a horizontal slider.  The \hy-7{1306}{width} is in pixels,
  4054. and the scroll increment will be adjusted to a suitable value given the minimum and
  4055.  maximum integer values.
  4056.  
  4057. \hy-10{1308}{wxSlider::~wxSlider}
  4058.  
  4059. \hy-8{1309}{void ~wxSlider(void)}
  4060.  
  4061. Destructor, destroying the slider.
  4062.  
  4063. \hy-10{1311}{wxSlider::GetValue}
  4064.  
  4065. \hy-8{1312}{int GetValue(void)}
  4066.  
  4067. Gets the current slider value.
  4068.  
  4069. \hy-10{1314}{wxSlider::SetValue}
  4070.  
  4071. \hy-8{1315}{void SetValue(int value)}
  4072.  
  4073. Sets the value (and displayed position) of the slider).
  4074.  
  4075.  
  4076. \hy-10{1320}{wxStringList::wxStringList}
  4077.  
  4078. \hy-8{1321}{void wxStringList(void)}
  4079.  
  4080. Constructor.
  4081.  
  4082. \hy-8{1322}{void wxStringList(char *first, ...)}
  4083.  
  4084. Constructor, taking NULL-terminated string argument list. wxStringList
  4085. allocates memory for the strings.
  4086.  
  4087. \hy-10{1324}{wxStringList::~wxStringList}
  4088.  
  4089. \hy-8{1325}{void ~wxStringList(void)}
  4090.  
  4091. Deletes string list, deallocating strings.
  4092.  
  4093. \hy-10{1327}{wxStringList::Add}
  4094.  
  4095. \hy-8{1328}{void Add(char *s)}
  4096.  
  4097. Adds string to list, allocating memory.
  4098.  
  4099. \hy-10{1330}{wxStringList::Delete}
  4100.  
  4101. \hy-8{1331}{void Delete(char *s)}
  4102.  
  4103. Searches for string and deletes from list, deallocating memory.
  4104.  
  4105. \hy-10{1333}{wxStringList::ListToArray}
  4106.  
  4107. \hy-8{1334}{char ** ListToArray(Bool new_copies = FALSE)}
  4108.  
  4109. Converts the list to an array of strings, only allocating new memory if
  4110. \hy-8{1335}{new_copies} is TRUE.
  4111.  
  4112. \hy-10{1337}{wxStringList::Member}
  4113.  
  4114. \hy-8{1338}{Bool Member(char *s)}
  4115.  
  4116. Returns TRUE if \hy-8{1339}{s} is a member of the list (tested using \hy-8{1340}{strcmp}).
  4117.  
  4118. \hy-10{1342}{wxStringList::Sort}
  4119.  
  4120. \hy-8{1343}{void Sort(void)}
  4121.  
  4122. Sorts the strings in ascending alphabetical order. Note that all nodes
  4123. (but not strings) get deallocated and new ones allocated.
  4124.  
  4125. \hy-10{1347}{wxText::wxText}
  4126.  
  4127. A text item is an area of editable text, with an optional label
  4128. displayed in front of it.
  4129.  
  4130. \hy-8{1348}{void wxText(wxPanel *parent, wxFunction func, char *label,
  4131.   char *value = "", int x = -1, int y = -1, int width = -1, int height = -1)}
  4132.  
  4133. Constructor, creating and showing a text item with the given string
  4134. value. If \hy-7{1349}{width} or \hy-7{1350}{height} are omitted (or are less than
  4135. zero), an appropriate size will be used for the item.  \hy-7{1351}{func}
  4136. may be NULL; otherwise it is used as the callback for the list box. 
  4137. Note that the cast (wxFunction) must be used when passing your callback
  4138. function name, or the compiler may complain that the function does not
  4139. match the constructor declaration.
  4140.  
  4141. \hy-10{1353}{wxText::~wxText}
  4142.  
  4143. \hy-8{1354}{void ~wxText(void)}
  4144.  
  4145. Destructor, destroying the text item.
  4146.  
  4147. \hy-10{1356}{wxText::GetValue}
  4148.  
  4149. \hy-8{1357}{char * GetValue(void)}
  4150.  
  4151. Gets a temporary pointer to the current value.
  4152.  
  4153. \hy-10{1359}{wxText::SetValue}
  4154.  
  4155. \hy-8{1360}{void SetValue(char * value)}
  4156.  
  4157. Sets the text. \hy-7{1361}{value} must be deallocated by the calling program.
  4158.  
  4159.  
  4160. \hy-10{1365}{wxTextWindow::wxTextWindow}
  4161.  
  4162. \hy-8{1366}{void wxTextWindow(wxFrame *parent, int x = -1, int y = -1,
  4163.   int width = -1, int height = -1, int style = 0)}
  4164.  
  4165. Constructor. Set style to wxBORDER to draw a thin border in Windows 3.
  4166.  
  4167. \hy-10{1368}{wxTextWindow::~wxTextWindow}
  4168.  
  4169. \hy-8{1369}{void ~wxTextWindow(void)}
  4170.  
  4171. Destructor.  Deletes any stored text before deleting the physical window.
  4172.  
  4173. \hy-10{1371}{wxTextWindow::Clear}
  4174.  
  4175. \hy-8{1372}{void Clear(void)}
  4176.  
  4177. Clears the window and deletes the stored text.
  4178.  
  4179. \hy-10{1374}{wxTextWindow::DiscardEdits}
  4180.  
  4181. \hy-8{1375}{void DiscardEdits(void)}
  4182.  
  4183. Clears the window and deletes the stored text (same as \hy-8{1376}{Clear}).
  4184.  
  4185. \hy-10{1378}{wxTextWindow::LoadFile}
  4186.  
  4187. \hy-8{1379}{Bool LoadFile(char * file)}
  4188.  
  4189. Loads and displays the named file, if it exists. Success is indicated by a return
  4190. value of TRUE.
  4191.  
  4192. \hy-10{1381}{wxTextWindow::Modified}
  4193.  
  4194. \hy-8{1382}{Bool Modified(void)}
  4195.  
  4196. Returns TRUE if the text has been modified. Under Windows 3, this always returns
  4197. FALSE.
  4198.  
  4199. \hy-10{1384}{wxTextWindow::SaveFile}
  4200.  
  4201. \hy-8{1385}{Bool SaveFile(char * file)}
  4202.  
  4203. Saves the text in the named file. Success is indicated by a return
  4204. value of TRUE.
  4205.  
  4206. \hy-10{1387}{wxTextWindow::WriteText}
  4207.  
  4208. \hy-8{1388}{void WriteText(char * text)}
  4209.  
  4210. Writes the text into the text window. Presently there is no means of writing
  4211. text to other than the end of the existing text.  Newlines in the text string
  4212. are the only control characters allowed, and they will cause appropriate
  4213. line breaks.  See the << operators for more convenient ways of writing to the
  4214. window.
  4215.  
  4216. \hy-10{1390}{wxTextWindow::<<}
  4217.  
  4218. \hy-8{1391}{wxTextWindow& <<(char *s)}
  4219.  
  4220. \hy-8{1392}{wxTextWindow& <<(int i)}
  4221.  
  4222. \hy-8{1393}{wxTextWindow& <<(long i)}
  4223.  
  4224. \hy-8{1394}{wxTextWindow& <<(float f)}
  4225.  
  4226. \hy-8{1395}{wxTextWindow& <<(double d)}
  4227.  
  4228. \hy-8{1396}{wxTextWindow& <<(char c)}
  4229.  
  4230. Operator definitions for writing to a text window, for example:
  4231.  
  4232. \hy-14{1397}{  wxTextWindow wnd(my_frame);
  4233.  
  4234.   wnd << "Welcome to text window number " << 1 << ".\n";
  4235. }
  4236. \hy-10{1404}{wxTimer::wxTimer}
  4237.  
  4238. \hy-8{1405}{void wxTimer(void)}
  4239.  
  4240. Constructor.
  4241.  
  4242. \hy-10{1407}{wxTimer::~wxTimer}
  4243.  
  4244. \hy-8{1408}{void ~wxTimer(void)}
  4245.  
  4246. Destructor. Stops the timer if activated.
  4247.  
  4248. \hy-10{1410}{wxTimer::Notify}
  4249.  
  4250. \hy-8{1411}{void Notify(void)}
  4251.  
  4252. This member should be overridden by the user. It is called on timeout.
  4253.  
  4254. \hy-10{1413}{wxTimer::Start}
  4255.  
  4256. \hy-8{1414}{Bool Start(int milliseconds = -1)}
  4257.  
  4258. (Re)starts the timer. If \hy-7{1415}{milliseconds} is absent or -1, the
  4259. previous value is used. Returns FALSE if the timer could not be started,
  4260. TRUE otherwise (in Windows 3 timers are a limited resource).
  4261.  
  4262. \hy-10{1417}{wxTimer::Stop}
  4263.  
  4264. \hy-8{1418}{void Stop(void)}
  4265.  
  4266. Stops the timer.
  4267.  
  4268. \hy-10{1422}{wxWindow::wxWindow}
  4269.  
  4270. \hy-8{1423}{void wxWindow(void)}
  4271.  
  4272. Constructor.
  4273.  
  4274. \hy-10{1425}{wxWindow::~wxWindow}
  4275.  
  4276. \hy-8{1426}{void ~wxWindow(void)}
  4277.  
  4278. Destructor. Deletes all subwindows, then deletes itself.
  4279.  
  4280. \hy-10{1428}{wxWindow::AddChild}
  4281.  
  4282. \hy-8{1429}{void AddChild(wxWindow *child)}
  4283.  
  4284. Adds a child window.  This is called automatically by window creation
  4285. functions so should not be required by the application programmer.
  4286.  
  4287. \hy-10{1431}{wxWindow::Center}
  4288.  
  4289. \hy-8{1432}{void Center(int direction)}
  4290.  
  4291. See \hy-8{1433}{Centre}.
  4292.  
  4293. \hy-10{1435}{wxWindow::Centre}
  4294.  
  4295. \hy-8{1436}{void Centre(int direction)}
  4296.  
  4297. Centres the window. The parameter may be wxHORIZONTAL, wxVERTICAL
  4298. or wxBOTH.
  4299.  
  4300. The actual behaviour depends on the derived window. For a frame or dialog box,
  4301. centring is relative to the whole display. For a panel item, centring is
  4302. relative to the panel.
  4303.  
  4304. \hy-10{1438}{wxWindow::DestroyChildren}
  4305.  
  4306. \hy-8{1439}{void DestroyChildren(void)}
  4307.  
  4308. Destroys all children of a window.  Called automatically by the destructor.
  4309.  
  4310. \hy-10{1441}{wxWindow::Fit}
  4311.  
  4312. \hy-8{1442}{void Fit(void)}
  4313.  
  4314. Sizes the window to fit the content (for panels and frames).
  4315.  
  4316. \hy-10{1444}{wxWindow::GetClientData}
  4317.  
  4318. \hy-8{1445}{char * GetClientData(void)}
  4319.  
  4320. Gets user-supplied client data.  Normally, any extra data the programmer wishes
  4321. to associate with the window should be made available by deriving a new class
  4322. with new data members.
  4323.  
  4324. \hy-10{1447}{wxWindow::GetClientSize}
  4325.  
  4326. \hy-8{1448}{void GetClientSize(int *width, int *height)}
  4327.  
  4328. This gets the size of the window `client area' in pixels.  The client area is the
  4329. area which may be drawn on by the programmer, excluding title bar, border etc.
  4330.  
  4331. \hy-10{1450}{wxWindow::GetHandle}
  4332.  
  4333. \hy-8{1451}{char * GetHandle(void)}
  4334.  
  4335. Gets the platform-specific handle of the physical window.
  4336.  
  4337. \hy-10{1453}{wxWindow::GetPosition}
  4338.  
  4339. \hy-8{1454}{void GetPosition(int *x, int *y)}
  4340.  
  4341. This gets the position of the window in pixels, relative to the parent window or
  4342. if no parent, relative to the whole display.
  4343.  
  4344. \hy-10{1456}{wxWindow::GetSize}
  4345.  
  4346. \hy-8{1457}{void GetSize(int *width, int *height)}
  4347.  
  4348. This gets the size of the entire window in pixels.
  4349.  
  4350. \hy-10{1459}{wxWindow::GetTextExtent}
  4351.  
  4352. \hy-8{1460}{void GetTextExtent(char *string, int *x, int *y)}
  4353.  
  4354. Gets the width and height of the string as it would be drawn on the window with the
  4355. currently selected font.
  4356.  
  4357. \hy-10{1462}{wxWindow::OnActivate}
  4358.  
  4359. \hy-8{1463}{void OnActivate(Bool active)}
  4360.  
  4361. Called when a window is activated or deactivated (Windows 3
  4362. only). If the window is being activated, \hy-7{1464}{active} is TRUE, else it
  4363. is FALSE.
  4364.  
  4365. \hy-10{1466}{wxWindow::OnChar}
  4366.  
  4367. \hy-8{1467}{void OnChar(int ch)}
  4368.  
  4369. Sent to the window when the user has pressed a key. \hy-7{1468}{ch} gives the
  4370. ASCII code (function key identifiers not yet implemented). See
  4371. \hy-8{1469}{OnEvent} for mouse event notification. Currently applicable
  4372. to canvas subwindows only.
  4373.  
  4374. \hy-10{1471}{wxWindow::OnClose}
  4375.  
  4376. \hy-8{1472}{Bool OnClose(void)}
  4377.  
  4378. Sent to the window when the user has tried to close the window.  If TRUE is returned,
  4379. the window will be deleted by the system, otherwise the attempt will be ignored.
  4380. Derive your own class to handle this message; the default handler returns TRUE.
  4381. Really only relevant to wxFrames.
  4382.  
  4383. \hy-10{1474}{wxWindow::OnEvent}
  4384.  
  4385. \hy-8{1475}{void OnEvent(wxEvent& event)}
  4386.  
  4387. Sent to the window when the user has initiated an event with the
  4388. mouse. Derive your own class to handle this message. So far,
  4389. only relevant to the wxCanvas class. See \hy-8{1476}{OnChar} for character
  4390. events, and also \hy-8{1477}{wxEvent} for how to access event information.
  4391.  
  4392. \hy-10{1479}{wxWindow::OnKillFocus}
  4393.  
  4394. \hy-8{1480}{void OnKillFocus(void)}
  4395.  
  4396. Called when a window's focus is being killed.
  4397.  
  4398. \hy-10{1482}{wxWindow::OnPaint}
  4399.  
  4400. \hy-8{1483}{void OnPaint(void)}
  4401.  
  4402. Sent to the window when the window must be refreshed.
  4403. Derive your own class to handle this message. So far, only
  4404. relevant to the wxCanvas class.
  4405.  
  4406. \hy-10{1485}{wxWindow::OnSetFocus}
  4407.  
  4408. \hy-8{1486}{void OnSetFocus(void)}
  4409.  
  4410. Called when a window's focus is being set.
  4411.  
  4412. \hy-10{1488}{wxWindow::OnSize}
  4413.  
  4414. \hy-8{1489}{void OnSize(int x, int y)}
  4415.  
  4416. Sent to the window when the window has been resized. You may wish to use
  4417. this for frames to resize their child windows as appropriate. Derive
  4418. your own class to handle this message. Note that the size passed is of
  4419. the whole window: call \hy-8{1490}{GetClientSize} for the area which may be
  4420. used by the application. A window is sent both an OnPaint and an OnSize message
  4421. when a resize occurs.
  4422.  
  4423. \hy-10{1492}{wxWindow::SetFocus}
  4424.  
  4425. \hy-8{1493}{void SetFocus(void)}
  4426.  
  4427. This sets the window to receive keyboard input. The only panel item that will
  4428. respond to this under XView is the \hy-8{1494}{wxText} item and derived items.
  4429.  
  4430. \hy-10{1496}{wxWindow::SetSize}
  4431.  
  4432. \hy-8{1497}{void SetSize(int x, int y, int width, int height)}
  4433.  
  4434. This sets the size of the entire window in pixels.
  4435.  
  4436. \hy-10{1499}{wxWindow::SetClientData}
  4437.  
  4438. \hy-8{1500}{void SetClientData(char *data)}
  4439.  
  4440. Sets user-supplied client data.  Normally, any extra data the programmer wishes
  4441. to associate with the window should be made available by deriving a new class
  4442. with new data members.
  4443.  
  4444. \hy-10{1502}{wxWindow::SetClientSize}
  4445.  
  4446. \hy-8{1503}{void SetClientSize(int x, int y, int width, int height)}
  4447.  
  4448. This sets the size of the window client area in pixels. Using this function to size a window
  4449. tends to be more device-independent than \hy-8{1504}{SetSize}, since the application need not
  4450. worry about what dimensions the border or title bar have when trying to fit the window
  4451. around panel items, for example.
  4452.  
  4453. \hy-10{1506}{wxWindow::SetCursor}
  4454.  
  4455. \hy-8{1507}{wxCursor * SetCursor(wxCursor *cursor)}
  4456.  
  4457. Sets the window's cursor, returning the previous cursor (if any). This
  4458. function applies to all subwindows.
  4459.  
  4460. \hy-10{1509}{wxWindow::SetTitle}
  4461.  
  4462. \hy-8{1510}{void SetTitle(char *title)}
  4463.  
  4464. Sets the window's title, allocating its own string storage. Currently
  4465. applicable only to frames.
  4466.  
  4467. \hy-10{1512}{wxWindow::Show}
  4468.  
  4469. \hy-8{1513}{void Show(Bool show)}
  4470.  
  4471. If \hy-7{1514}{show} is TRUE, displays the window and brings it to the front.  Otherwise,
  4472. hides the window.
  4473.  
  4474.  
  4475.  
  4476. \hy-10{1519}{::Dos2UnixFilename}
  4477.  
  4478. \hy-8{1520}{void Dos2UnixFilename(char *s)}
  4479.  
  4480. Converts a DOS to a UNIX filename by replacing backslashes with forward
  4481. slashes.
  4482.  
  4483. \hy-10{1522}{::FileExists}
  4484.  
  4485. \hy-8{1523}{Bool FileExists(char *filename)}
  4486.  
  4487. Returns TRUE if the file exists.
  4488.  
  4489. \hy-10{1525}{::FileNameFromPath}
  4490.  
  4491. \hy-8{1526}{char * FileNameFromPath(char *path)}
  4492.  
  4493. Returns the filename for a full path (returns a new string).
  4494.  
  4495. \hy-10{1528}{::IsAbsolutePath}
  4496.  
  4497. \hy-8{1529}{Bool IsAbsolutePath(char *filename)}
  4498.  
  4499. Returns TRUE if the argument is an absolute filename, i.e. with a slash
  4500. or drive name at the beginning.
  4501.  
  4502. \hy-10{1531}{::PathOnly}
  4503.  
  4504. \hy-8{1532}{char * PathOnly(char *path)}
  4505.  
  4506. Returns the directory part of the filename (returns a new string).
  4507.  
  4508. \hy-10{1534}{::Unix2DosFilename}
  4509.  
  4510. \hy-8{1535}{void Unix2DosFilename(char *s)}
  4511.  
  4512. Converts a UNIX to a DOS filename by replacing forward
  4513. slashes with backslashes.
  4514.  
  4515. \hy-10{1537}{::wxConcatFiles}
  4516.  
  4517. \hy-8{1538}{Bool wxConcatFiles(char *file1, char *file2,
  4518. char *file3)}
  4519.  
  4520. Concatenates \hy-7{1539}{file1} and \hy-7{1540}{file2} to \hy-7{1541}{file3}, returning
  4521. TRUE if successful.
  4522.  
  4523. \hy-10{1543}{::wxCopyFile}
  4524.  
  4525. \hy-8{1544}{Bool wxCopyFile(char *file1, char *file2)}
  4526.  
  4527. Copies \hy-7{1545}{file1} to \hy-7{1546}{file2}, returning TRUE if successful.
  4528.  
  4529. \hy-10{1548}{::wxIsWild}
  4530.  
  4531. \hy-8{1549}{Bool wxIsWild(char *pattern)}
  4532.  
  4533. Returns TRUE if the pattern contains wildcards. See \hy-8{1550}{wxMatchWild}.
  4534.  
  4535. \hy-10{1552}{::wxMatchWild}
  4536.  
  4537. \hy-8{1553}{Bool wxMatchWild(char *pattern, char *text, Bool dot_special)}
  4538.  
  4539. Returns TRUE if the \hy-7{1554}{pattern} matches the \hy-7{1555}{text}; if \hy-7{1556}{
  4540. dot_special} is TRUE, filenames beginning with a dot are not matched
  4541. with wildcard characters. See \hy-8{1557}{wxIsWild}.
  4542.  
  4543. \hy-10{1559}{::wxRemoveFile}
  4544.  
  4545. \hy-8{1560}{Bool wxRemoveFile(char *file)}
  4546.  
  4547. Removes \hy-7{1561}{file}, returning TRUE if successful.
  4548.  
  4549. \hy-10{1563}{::wxRenameFile}
  4550.  
  4551. \hy-8{1564}{Bool wxRenameFile(char *file1, char *file2)}
  4552.  
  4553. Renames \hy-7{1565}{file1} to \hy-7{1566}{file2}, returning TRUE if successful.
  4554.  
  4555. \hy-10{1570}{::copystring}
  4556.  
  4557. \hy-8{1571}{char * copystring(char *s)}
  4558.  
  4559. Makes a copy of the string \hy-7{1572}{s} using the C++ new operator, so it can be
  4560. deleted with the delete operator.
  4561.  
  4562. \hy-10{1576}{::wxGetTextFromUser}
  4563.  
  4564. \hy-8{1577}{char * wxGetTextFromUser(char *message, char *caption = "Input text",
  4565.   char *default_value = "", wxFrame *parent = NULL, int x = -1, int y = -1)}
  4566.  
  4567. Pop up a dialog box with title set to \hy-7{1578}{caption}, message \hy-7{1579}{message}, and a
  4568. \hy-7{1580}{default_value}.  The user may type in text and press OK to return this text,
  4569. or press Cancel to return NULL.
  4570.  
  4571. \hy-10{1582}{::wxGetSingleChoice}
  4572.  
  4573. \hy-8{1583}{char * wxGetSingleChoice(char *message, char *caption, int n, char *choices[],
  4574.   wxFrame *parent = NULL, int x = -1, int y = -1)}
  4575.  
  4576. Pops up a dialog box containing a message, OK/Cancel buttons and a single-selection
  4577. listbox. The user may choose an item and press OK to return a string or
  4578. Cancel to return NULL.
  4579.  
  4580. \hy-7{1584}{choices} is an array of \hy-7{1585}{n} strings for the listbox.
  4581.  
  4582. \hy-10{1587}{::wxGetSingleChoiceIndex}
  4583.  
  4584. \hy-8{1588}{int wxGetSingleChoiceIndex(char *message, char *caption, int n, char *choices[],
  4585.   wxFrame *parent = NULL, int x = -1, int y = -1)}
  4586.  
  4587. As \hy-8{1589}{wxGetSingleChoice} but returns the index representing the selected string.
  4588.  
  4589. \hy-10{1591}{::wxGetSingleChoiceData}
  4590.  
  4591. \hy-8{1592}{char * wxGetSingleChoiceData(char *message, char *caption, int n, char *choices[],
  4592.   char *client_data[], wxFrame *parent = NULL, int x = -1, int y = -1)}
  4593.  
  4594. As \hy-8{1593}{wxGetSingleChoice} but takes an array of client data pointers
  4595. corresponding to the strings, and returns one of these pointers.
  4596.  
  4597. \hy-10{1595}{::wxMessageBox}
  4598.  
  4599. \hy-8{1596}{int wxMessageBox(char *message, char *caption = "Message", int type = wxOK,
  4600.   wxFrame *parent = NULL, int x = -1, int y = -1)}
  4601.  
  4602. General purpose message dialog.  \hy-7{1597}{type} may be one or more of the
  4603. following identifiers or'ed together: wxYES_NO, wxCANCEL, wxOK.
  4604.  
  4605. The return value is one of: wxYES, wxNO, wxCANCEL, wxOK.
  4606.  
  4607. For example:
  4608. \hy-14{1598}{  ...
  4609.   int answer = wxMessageBox("Quit program?", "Confirm",
  4610.                             wxYES_NO | wxCANCEL, main_frame);
  4611.   if (answer == wxYES)
  4612.     delete main_frame;
  4613.   ...
  4614. }
  4615. \hy-7{1599}{message} may contain newline characters, in which case the
  4616. message will be split into separate lines and centred in the dialog
  4617. box, to cater for large messages.
  4618.  
  4619. \hy-10{1601}{::wxFileSelector}
  4620.  
  4621. \hy-8{1602}{char * wxFileSelector(char *message, char *default_path = NULL,
  4622.   char *default_filename = NULL, char *default_extension = NULL,
  4623.   char *wildcard = ``*.*'', int flags = 0, wxFrame *parent = NULL,
  4624.   int x = -1, int y = -1)}
  4625.  
  4626. Pops up a file selector box. In Windows, this is the common file selector
  4627. dialog. In X, this is a file selector box with somewhat less functionality.
  4628. The path and filename are distinct elements of a full file pathname.
  4629. If path is NULL, the current directory will be used. If filename is NULL,
  4630. no default filename will be supplied. The wildcard determines what files
  4631. are displayed in the file selector, and file extension supplies a type
  4632. extension for the required filename. Flags may be a combination of wxOPEN,
  4633. wxSAVE, wxOVERWRITE_PROMPT, wxHIDE_READONLY, or 0. They are only significant
  4634. at present in Windows.
  4635.  
  4636. Both the X and Windows versions implement a wildcard filter. Typing a
  4637. filename containing wildcards (*, ?) in the filename text item, and
  4638. clicking on Ok, will result in only those files matching the pattern being
  4639. displayed. In the X version, supplying no default name will result in the
  4640. wildcard filter being inserted in the filename text item; the filter is
  4641. ignored if a default name is supplied.
  4642.  
  4643. The application must check for a NULL return value (the user pressed
  4644. Cancel). For example:
  4645.  
  4646. \hy-14{1603}{char *s = wxFileSelector("Choose a file to open");
  4647. if (s)
  4648. {
  4649.   ...
  4650. }
  4651. }
  4652.  
  4653. \hy-10{1607}{::wxColourDisplay}
  4654.  
  4655. \hy-8{1608}{Bool wxColourDisplay(void)}
  4656.  
  4657. Returns TRUE if the display is colour, FALSE otherwise.
  4658.  
  4659. \hy-10{1610}{::SetCursor}
  4660.  
  4661. \hy-8{1611}{void wxSetCursor(wxCursor *cursor)}
  4662.  
  4663. Globally sets the cursor; only works in Windows 3.
  4664.  
  4665.  
  4666. \hy-10{1615}{::NewId}
  4667.  
  4668. \hy-8{1616}{long NewId(void)}
  4669.  
  4670. Generates an integer identifier unique to this run of the program.
  4671.  
  4672. \hy-10{1618}{::RegisterId}
  4673.  
  4674. \hy-8{1619}{void RegisterId(long id)}
  4675.  
  4676. Ensures that ids subsequently generated by \hy-8{1620}{NewId} do not clash with
  4677. the given \hy-8{1621}{id}.
  4678.  
  4679. \hy-10{1623}{::wxDisplaySize}
  4680.  
  4681. \hy-8{1624}{void wxDisplaySize(int *width, int *height)}
  4682.  
  4683. Gets the physical size of the display in pixels.
  4684.  
  4685. \hy-10{1626}{::wxGetElapsedTime}
  4686.  
  4687. \hy-8{1627}{long wxGetElapsedTime(void)}
  4688.  
  4689. Gets the time in milliseconds since the last \hy-8{1628}{wxGetElapsedTime} or
  4690. \hy-8{1629}{wxStartTimer}.
  4691.  
  4692. \hy-10{1631}{::wxSleep}
  4693.  
  4694. \hy-8{1632}{void wxSleep(int secs)}
  4695.  
  4696. Under XView, sleeps for the specified number of seconds using the
  4697. technique specified in the XView manual, not UNIX \hy-8{1633}{sleep}.
  4698.  
  4699. \hy-10{1635}{::wxStartTimer}
  4700.  
  4701. \hy-8{1636}{void wxStartTimer(void)}
  4702.  
  4703. Starts a stopwatch; use \hy-8{1637}{wxGetElapsedTime} to get the elapsed time.
  4704.  
  4705. \hy-10{1639}{::wxYield}
  4706.  
  4707. \hy-8{1640}{void wxYield(void)}
  4708.  
  4709. Yields control to other applications (has no effect under XView).
  4710.  
  4711. \hy-10{1642}{::wxExecute}
  4712.  
  4713. \hy-8{1643}{void wxExecute(char *command)}
  4714. \hyindex{
  4715. "wxWindows Help"
  4716. 101 102
  4717. 114 115
  4718. 117 118
  4719. 120 121
  4720. 123 124
  4721. 126 127
  4722. 130 131
  4723. 133 134
  4724. 136 137
  4725. 139 140
  4726. 147 148
  4727. 153 154
  4728. 156 157
  4729. 159 160
  4730. 162 163
  4731. 167 168
  4732. 170 171
  4733. 173 174
  4734. 177 178
  4735. 180 181
  4736. 184 185
  4737. 187 188
  4738. 189 190
  4739. 195 196
  4740. 198 199
  4741. 201 202
  4742. 204 205
  4743. 207 208
  4744. 210 211
  4745. 213 214
  4746. 216 217
  4747. 219 220
  4748. 225 226
  4749. 231 232
  4750. 234 235
  4751. 237 238
  4752. 240 241
  4753. 244 245
  4754. 247 248
  4755. 253 254
  4756. 257 258
  4757. 260 261
  4758. 263 264
  4759. 266 267
  4760. 270 271
  4761. 273 274
  4762. 276 277
  4763. 279 280
  4764. 282 283
  4765. 286 287
  4766. 290 291
  4767. 294 295
  4768. 300 301
  4769. 302 303
  4770. 308 309
  4771. 311 312
  4772. 314 315
  4773. 317 318
  4774. 319 320
  4775. 328 329
  4776. 331 332
  4777. 335 336
  4778. 338 339
  4779. 341 342
  4780. 344 345
  4781. 347 348
  4782. 350 351
  4783. 353 354
  4784. 357 358
  4785. 360 361
  4786. 363 364
  4787. 367 368
  4788. 372 373
  4789. 375 376
  4790. 380 381
  4791. 383 384
  4792. 386 387
  4793. 390 391
  4794. 393 394
  4795. 396 397
  4796. 399 400
  4797. 402 403
  4798. 405 406
  4799. 411 412
  4800. 415 416
  4801. 420 421
  4802. 426 427
  4803. 429 430
  4804. 432 433
  4805. 435 436
  4806. 438 439
  4807. 443 444
  4808. 446 447
  4809. 449 450
  4810. 453 454
  4811. 457 458
  4812. 461 462
  4813. 465 466
  4814. 471 472
  4815. 477 478
  4816. 480 481
  4817. 484 485
  4818. 493 494
  4819. 496 497
  4820. 501 502
  4821. 504 505
  4822. 508 509
  4823. 511 512
  4824. 514 515
  4825. 517 518
  4826. 520 521
  4827. 523 524
  4828. 526 527
  4829. 532 533
  4830. 538 539
  4831. 541 542
  4832. 544 545
  4833. 547 548
  4834. 551 552
  4835. 554 555
  4836. 557 558
  4837. 560 561
  4838. 565 566
  4839. 568 569
  4840. 571 572
  4841. 574 575
  4842. 580 581
  4843. 583 584
  4844. 586 587
  4845. 589 590
  4846. 592 593
  4847. 595 596
  4848. 601 602
  4849. 604 605
  4850. 608 609
  4851. 612 613
  4852. 615 616
  4853. 618 619
  4854. 621 622
  4855. 624 625
  4856. 628 629
  4857. 631 632
  4858. 634 635
  4859. 637 638
  4860. 642 643
  4861. 645 646
  4862. 648 649
  4863. 651 652
  4864. 655 656
  4865. 658 659
  4866. 661 662
  4867. 664 665
  4868. 668 669
  4869. 671 672
  4870. 674 675
  4871. 677 678
  4872. 680 681
  4873. 686 687
  4874. 689 690
  4875. 692 693
  4876. 695 696
  4877. 697 698
  4878. 701 702
  4879. 704 705
  4880. 707 708
  4881. 718 719
  4882. 721 722
  4883. 724 725
  4884. 727 728
  4885. 730 731
  4886. 733 734
  4887. 736 737
  4888. 739 740
  4889. 743 744
  4890. 747 748
  4891. 750 751
  4892. 753 754
  4893. 756 757
  4894. 788 789
  4895. 791 792
  4896. 795 796
  4897. 798 799
  4898. 801 802
  4899. 804 805
  4900. 807 808
  4901. 810 811
  4902. 813 814
  4903. 817 818
  4904. 821 822
  4905. 824 825
  4906. 827 828
  4907. 830 831
  4908. 833 834
  4909. 837 838
  4910. 842 843
  4911. 845 846
  4912. 848 849
  4913. 853 854
  4914. 856 857
  4915. 862 863
  4916. 865 866
  4917. 869 870
  4918. 873 874
  4919. 876 877
  4920. 884 885
  4921. 888 889
  4922. 895 896
  4923. 898 899
  4924. 900 901
  4925. 903 904
  4926. 906 907
  4927. 909 910
  4928. 912 913
  4929. 915 916
  4930. 919 920
  4931. 922 923
  4932. 925 926
  4933. 927 928
  4934. 932 933
  4935. 936 937
  4936. 939 940
  4937. 942 943
  4938. 950 951
  4939. 959 960
  4940. 962 963
  4941. 969 970
  4942. 972 973
  4943. 977 978
  4944. 980 981
  4945. 984 985
  4946. 989 990
  4947. 992 993
  4948. 997 998
  4949. 1000 1001
  4950. 1004 1005
  4951. 1008 1009
  4952. 1011 1012
  4953. 1013 1014
  4954. 1023 1024
  4955. 1026 1027
  4956. 1032 1033
  4957. 1035 1036
  4958. 1038 1039
  4959. 1041 1042
  4960. 1044 1045
  4961. 1047 1048
  4962. 1050 1051
  4963. 1053 1054
  4964. 1056 1057
  4965. 1059 1060
  4966. 1062 1063
  4967. 1066 1067
  4968. 1068 1069
  4969. 1071 1072
  4970. 1074 1075
  4971. 1080 1081
  4972. 1083 1084
  4973. 1087 1088
  4974. 1091 1092
  4975. 1094 1095
  4976. 1098 1099
  4977. 1101 1102
  4978. 1105 1106
  4979. 1109 1110
  4980. 1113 1114
  4981. 1115 1116
  4982. 1118 1119
  4983. 1121 1122
  4984. 1123 1124
  4985. 1126 1127
  4986. 1129 1130
  4987. 1132 1133
  4988. 1136 1137
  4989. 1139 1140
  4990. 1142 1143
  4991. 1145 1146
  4992. 1148 1149
  4993. 1151 1152
  4994. 1154 1155
  4995. 1157 1158
  4996. 1160 1161
  4997. 1163 1164
  4998. 1165 1166
  4999. 1169 1170
  5000. 1172 1173
  5001. 1175 1176
  5002. 1178 1179
  5003. 1181 1182
  5004. 1184 1185
  5005. 1187 1188
  5006. 1190 1191
  5007. 1198 1199
  5008. 1201 1202
  5009. 1204 1205
  5010. 1207 1208
  5011. 1210 1211
  5012. 1213 1214
  5013. 1216 1217
  5014. 1220 1221
  5015. 1223 1224
  5016. 1230 1231
  5017. 1236 1237
  5018. 1239 1240
  5019. 1242 1243
  5020. 1245 1246
  5021. 1248 1249
  5022. 1253 1254
  5023. 1256 1257
  5024. 1259 1260
  5025. 1262 1263
  5026. 1266 1267
  5027. 1269 1270
  5028. 1273 1274
  5029. 1276 1277
  5030. 1281 1282
  5031. 1288 1289
  5032. 1291 1292
  5033. 1294 1295
  5034. 1297 1298
  5035. 1301 1302
  5036. 1303 1304
  5037. 1307 1308
  5038. 1310 1311
  5039. 1313 1314
  5040. 1316 1317
  5041. 1319 1320
  5042. 1323 1324
  5043. 1326 1327
  5044. 1329 1330
  5045. 1332 1333
  5046. 1336 1337
  5047. 1341 1342
  5048. 1344 1345
  5049. 1346 1347
  5050. 1352 1353
  5051. 1355 1356
  5052. 1358 1359
  5053. 1362 1363
  5054. 1364 1365
  5055. 1367 1368
  5056. 1370 1371
  5057. 1373 1374
  5058. 1377 1378
  5059. 1380 1381
  5060. 1383 1384
  5061. 1386 1387
  5062. 1389 1390
  5063. 1398 1399
  5064. 1403 1404
  5065. 1406 1407
  5066. 1409 1410
  5067. 1412 1413
  5068. 1416 1417
  5069. 1419 1420
  5070. 1421 1422
  5071. 1424 1425
  5072. 1427 1428
  5073. 1430 1431
  5074. 1434 1435
  5075. 1437 1438
  5076. 1440 1441
  5077. 1443 1444
  5078. 1446 1447
  5079. 1449 1450
  5080. 1452 1453
  5081. 1455 1456
  5082. 1458 1459
  5083. 1461 1462
  5084. 1465 1466
  5085. 1470 1471
  5086. 1473 1474
  5087. 1478 1479
  5088. 1481 1482
  5089. 1484 1485
  5090. 1487 1488
  5091. 1491 1492
  5092. 1495 1496
  5093. 1498 1499
  5094. 1501 1502
  5095. 1505 1506
  5096. 1508 1509
  5097. 1511 1512
  5098. 1515 1516
  5099. 1518 1519
  5100. 1521 1522
  5101. 1524 1525
  5102. 1527 1528
  5103. 1530 1531
  5104. 1533 1534
  5105. 1536 1537
  5106. 1542 1543
  5107. 1547 1548
  5108. 1551 1552
  5109. 1558 1559
  5110. 1562 1563
  5111. 1567 1568
  5112. 1569 1570
  5113. 1573 1574
  5114. 1575 1576
  5115. 1581 1582
  5116. 1586 1587
  5117. 1590 1591
  5118. 1594 1595
  5119. 1600 1601
  5120. 1604 1605
  5121. 1606 1607
  5122. 1609 1610
  5123. 1612 1613
  5124. 1614 1615
  5125. 1617 1618
  5126. 1622 1623
  5127. 1625 1626
  5128. 1630 1631
  5129. 1634 1635
  5130. 1638 1639
  5131. 1641 1642
  5132. }
  5133.