platdetails.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: platdetails.h
  3. // Purpose: Platform details page of the Doxygen manual
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @page page_port Platform Details
  9. @tableofcontents
  10. wxWidgets defines a common API across platforms, but uses the native graphical
  11. user interface (GUI) on each platform, so your program will take on the native
  12. look and feel that users are familiar with. Unfortunately native toolkits and
  13. hardware do not always support the functionality that the wxWidgets API
  14. requires. This chapter collects notes about differences among supported
  15. platforms and ports.
  16. @section page_port_wxgtk wxGTK
  17. wxGTK is a port of wxWidgets using the GTK+ library. It makes use of GTK+'s
  18. native widgets wherever possible and uses wxWidgets' generic controls when
  19. needed. GTK+ itself has been ported to a number of systems, but so far only the
  20. original X11 version is supported. Support for other GTK+ backends is planned,
  21. such as the new DirectFB backend.
  22. All work is being done on GTK+ version 2.0 and above. Support for GTK+ 1.2 will
  23. be deprecated in a later release.
  24. You will need GTK+ 2.6 or higher which is available from:
  25. http://www.gtk.org
  26. The newer version of GTK+ you use, the more native widgets and features will be
  27. utilized. We have gone to great lengths to allow compiling wxWidgets
  28. applications with the latest version of GTK+, with the resulting binary working
  29. on systems even with a much earlier version of GTK+. You will have to ensure
  30. that the application is launched with lazy symbol binding for that.
  31. In order to configure wxWidgets to compile wxGTK you will need use the
  32. @c --with-gtk argument to the @c configure script. This is the default for many
  33. systems.
  34. GTK+ 1.2 can still be used, albeit discouraged. For that you can pass
  35. @c --with-gtk=1 to the @c configure script.
  36. Support for GTK+ 3 is available starting with wxWidgets 2.9.4, use @c configure
  37. option @c --with-gtk=3 to enable it.
  38. For further information, please see the files in @c docs/gtk in the
  39. distribution.
  40. @section page_port_wxosx wxOSX
  41. @subsection page_port_wxosx_carbon wxOSX/Carbon
  42. wxOSX/Carbon is a port of wxWidgets for the Macintosh OS platform. Currently
  43. OS X 10.5 or higher are supported. wxOSX/Carbon can be compiled both using
  44. Apple's command line developer tools as well as Apple's Xcode IDE. wxOSX/Carbon
  45. supports both the Intel and PowerPC architectures and can be used to produce
  46. "universal binaries" in order create application which can run both
  47. architecture. Unfortunately, wxOSX/Carbon does not support any 64-bit
  48. architecture since Apple decided not to port its Carbon API entirely to 64-bit.
  49. @note Carbon has been deprecated by Apple as of OS X 10.5 and will likely be
  50. removed entirely in a future OS version. It's recommended you look into
  51. switching your app over to wxOSX/Cocoa as soon as possible.
  52. For further information, please see the files in @c docs/osx in the
  53. distribution.
  54. @subsection page_port_wxosx_cocoa wxOSX/Cocoa
  55. wxOSX/Cocoa is another port of wxWidgets for the Macintosh OS platform.
  56. Currently OS X 10.5 or higher are supported. In contrast to wxOSX/Carbon,
  57. it uses the Cocoa API in place of Carbon. Much work has gone into this port
  58. and many controls are functional, but the port has not reached the maturity of
  59. the wxOSX/Carbon port yet. It is possible to use wxOSX/Cocoa on 64-bit
  60. architectures.
  61. In order to configure wxWidgets to compile wxOSX/Cocoa you will need to type:
  62. @verbatim configure --with-osx_cocoa @endverbatim
  63. For further information, please see the files in @c docs/osx in the
  64. distribution.
  65. @note There was a previous effort towards a Cocoa port called wxCocoa, which
  66. was implemented totally with Cocoa API unlike the OSX/Cocoa port which uses OS
  67. X C APIs to share code, and while it is no longer being actively developed,
  68. docs for it are available in @c docs/cocoa in the distribution.
  69. @section page_port_wxos2 wxOS2
  70. wxOS2 is a port of wxWidgets for the IBM OS/2 Warp3 and Warp4 platforms.
  71. This port is currently under construction and in beta phase.
  72. For further information, please see the files in @c docs/os2
  73. in the distribution.
  74. @section page_port_wxx11 wxX11
  75. wxX11 is a port of wxWidgets using X11 (The X Window System) as the underlying
  76. graphics backend. wxX11 draws its widgets using the wxUniversal widget set
  77. which is now part of wxWidgets. wxX11 is well-suited for a number of special
  78. applications such as those running on systems with few resources (PDAs) or for
  79. applications which need to use a special themed look.
  80. In order to configure wxWidgets to compile wxX11 you will need to type:
  81. @verbatim configure --with-x11 --with-universal @endverbatim
  82. For further information, please see the files in @c docs/x11 in the
  83. distribution. There is also a page on the use of wxWidgets for embedded
  84. applications on the wxWidgets web site.
  85. @section page_port_wxmotif wxMotif
  86. wxMotif is a port of wxWidgets for X11 systems using Motif libraries. Motif
  87. libraries provide a clean and fast user interface at the expense of the beauty
  88. and candy of newer interfaces like GTK.
  89. For further information, please see the files in @c docs/motif in the
  90. distribution.
  91. @section page_port_wxmsw wxMSW
  92. wxMSW is a port of wxWidgets for the Windows platforms including Windows 95,
  93. 98, ME, 2000, NT, XP and Vista in ANSI and Unicode modes (for Windows 9x and ME
  94. through the MSLU extension library). wxMSW ensures native look and feel for XP
  95. when using wxWidgets version 2.3.3 or higher. wxMSW can be compiled with a
  96. great variety of compilers including Microsoft Studio VC++, Borland 5.5,
  97. MinGW32, Cygwin and Watcom as well as cross-compilation with a Linux-hosted
  98. MinGW32 tool chain.
  99. For further information, please see the files in docs/msw in the distribution.
  100. @subsection page_port_wxmsw_themedborders Themed Borders
  101. Starting with wxWidgets 2.8.5, you can specify the @c wxBORDER_THEME style to
  102. have wxWidgets use a themed border. Using the default XP theme, this is a thin
  103. 1-pixel blue border, with an extra 1-pixel border in the window client
  104. background colour (usually white) to separate the client area's scrollbars from
  105. the border.
  106. If you don't specify a border style for a wxTextCtrl in rich edit mode,
  107. wxWidgets now gives the control themed borders automatically, where previously
  108. they would take the Windows 95-style sunken border. Other native controls such
  109. as wxTextCtrl in non-rich edit mode, and wxComboBox already paint themed
  110. borders where appropriate. To use themed borders on other windows, such as
  111. wxPanel, pass the @c wxBORDER_THEME style, or (apart from wxPanel) pass no
  112. border style.
  113. In general, specifying @c wxBORDER_THEME will cause a border of some kind to be
  114. used, chosen by the platform and control class. To leave the border decision
  115. entirely to wxWidgets, pass @c wxBORDER_DEFAULT. This is not to be confused
  116. with specifying @c wxBORDER_NONE, which says that there should definitely be
  117. @e no border.
  118. @subsubsection page_port_wxmsw_themedborders_details Internal Border Implementation
  119. The way that wxMSW decides whether to apply a themed border is as follows. The
  120. theming code calls wxWindow::GetBorder() to obtain a border. If no border style
  121. has been passed to the window constructor, GetBorder() calls GetDefaultBorder()
  122. for this window. If wxBORDER_THEME was passed to the window constructor,
  123. GetBorder() calls GetDefaultBorderForControl().
  124. The implementation of wxWindow::GetDefaultBorder() on wxMSW calls
  125. wxWindow::CanApplyThemeBorder() which is a virtual function that tells
  126. wxWidgets whether a control can have a theme applied explicitly (some native
  127. controls already paint a theme in which case we should not apply it ourselves).
  128. Note that wxPanel is an exception to this rule because in many cases we wish to
  129. create a window with no border (for example, notebook pages). So wxPanel
  130. overrides GetDefaultBorder() in order to call the generic
  131. wxWindowBase::GetDefaultBorder(), returning wxBORDER_NONE.
  132. @subsection page_port_wxmsw_wince wxWinCE
  133. wxWinCE is the name given to wxMSW when compiled on Windows CE devices; most of
  134. wxMSW is common to Win32 and Windows CE but there are some simplifications,
  135. enhancements, and differences in behaviour.
  136. For building instructions, see docs/msw/wince in the distribution, also the
  137. section about Visual Studio 2005 project files below. The rest of this section
  138. documents issues you need to be aware of when programming for Windows CE
  139. devices.
  140. @subsubsection page_port_wxmsw_wince_ General Issues for wxWinCE
  141. Mobile applications generally have fewer features and simpler user interfaces.
  142. Simply omit whole sizers, static lines and controls in your dialogs, and use
  143. comboboxes instead of listboxes where appropriate. You also need to reduce the
  144. amount of spacing used by sizers, for which you can use a macro such as this:
  145. @code
  146. #if defined(__WXWINCE__)
  147. #define wxLARGESMALL(large,small) small
  148. #else
  149. #define wxLARGESMALL(large,small) large
  150. #endif
  151. // Usage
  152. topsizer->Add( CreateTextSizer( message ), 0, wxALL, wxLARGESMALL(10,0) );
  153. @endcode
  154. There is only ever one instance of a Windows CE application running, and
  155. wxWidgets will take care of showing the current instance and shutting down the
  156. second instance if necessary.
  157. You can test the return value of wxSystemSettings::GetScreenType() for a
  158. qualitative assessment of what kind of display is available, or use
  159. wxGetDisplaySize() if you need more information.
  160. You can also use wxGetOsVersion to test for a version of Windows CE at run-time
  161. (see the next section). However, because different builds are currently
  162. required to target different kinds of device, these values are hard-wired
  163. according to the build, and you cannot dynamically adapt the same executable
  164. for different major Windows CE platforms. This would require a different
  165. approach to the way wxWidgets adapts its behaviour (such as for menubars) to
  166. suit the style of device.
  167. See the "Life!" example (demos/life) for an example of an application that has
  168. been tailored for PocketPC and Smartphone use.
  169. @note Don't forget to have this line in your .rc file,
  170. as for desktop Windows applications:
  171. @verbatim #include "wx/msw/wx.rc" @endverbatim
  172. @subsubsection page_port_wxmsw_wince_sdk Testing for WinCE SDKs
  173. Use these preprocessor symbols to test for the different types of devices:
  174. @li @b __SMARTPHONE__ Generic mobile devices with phone buttons and a small display
  175. @li @b __PDA__ Generic mobile devices with no phone
  176. @li @b __HANDHELDPC__ Generic mobile device with a keyboard
  177. @li @b __WXWINCE__ Microsoft-powered Windows CE devices, whether PocketPC, Smartphone or Standard SDK
  178. @li @b WIN32_PLATFORM_WFSP Microsoft-powered smartphone
  179. @li @b __POCKETPC__ Microsoft-powered PocketPC devices with touch-screen
  180. @li @b __WINCE_STANDARDSDK__ Microsoft-powered Windows CE devices, for generic Windows CE applications
  181. @li @b __WINCE_NET__ Microsoft-powered Windows CE .NET devices (_WIN32_WCE is 400 or greater)
  182. wxGetOsVersion() will return these values:
  183. @li @b wxWINDOWS_POCKETPC The application is running under PocketPC.
  184. @li @b wxWINDOWS_SMARTPHONE The application is running under Smartphone.
  185. @li @b wxWINDOWS_CE The application is running under Windows CE (built with the Standard SDK).
  186. @subsubsection page_port_wxmsw_wince_sizing Window sizing in wxWinCE
  187. Top level windows (dialogs, frames) are created always full-screen. Fit() of
  188. sizers will not rescale top level windows but instead will scale window
  189. content.
  190. If the screen orientation changes, the windows will automatically be resized so
  191. no further action needs to be taken (unless you want to change the layout
  192. according to the orientation, which you could detect in idle time, for
  193. example). When input panel (SIP) is shown, top level windows (frames and
  194. dialogs) resize accordingly (see wxTopLevelWindow::HandleSettingChange()).
  195. @subsubsection page_port_wxmsw_wince_toplevel Closing Top-level Windows in wxWinCE
  196. You won't get a wxCloseEvent when the user clicks on the X in the titlebar on
  197. Smartphone and PocketPC; the window is simply hidden instead. However the
  198. system may send the event to force the application to close down.
  199. @subsubsection page_port_wxmsw_wince_hibernation Hibernation in wxWinCE
  200. Smartphone and PocketPC will send a @c wxEVT_HIBERNATE to the application
  201. object in low memory conditions. Your application should release memory and
  202. close dialogs, and wake up again when the next @c wxEVT_ACTIVATE or
  203. @c wxEVT_ACTIVATE_APP message is received. (@c wxEVT_ACTIVATE_APP is generated
  204. whenever a @c wxEVT_ACTIVATE event is received in Smartphone and PocketPC,
  205. since these platforms do not support @c WM_ACTIVATEAPP.)
  206. @subsubsection page_port_wxmsw_wince_hwbutt Hardware Buttons in wxWinCE
  207. Special hardware buttons are sent to a window via the @c wxEVT_HOTKEY event
  208. under Smartphone and PocketPC. You should first register each required button
  209. with wxWindow::RegisterHotKey(), and unregister the button when you're done
  210. with it. For example:
  211. @code
  212. win->RegisterHotKey(0, wxMOD_WIN, WXK_SPECIAL1);
  213. win->UnregisterHotKey(0);
  214. @endcode
  215. You may have to register the buttons in a @c wxEVT_ACTIVATE event handler since
  216. other applications will grab the buttons.
  217. There is currently no method of finding out the names of the special buttons or
  218. how many there are.
  219. @subsubsection page_port_wxmsw_wince_dialogs Dialogs in wxWinCE
  220. PocketPC dialogs have an OK button on the caption, and so you should generally
  221. not repeat an OK button on the dialog. You can add a Cancel button if
  222. necessary, but some dialogs simply don't offer you the choice (the guidelines
  223. recommend you offer an Undo facility to make up for it). When the user clicks
  224. on the OK button, your dialog will receive a @c wxID_OK event by default. If
  225. you wish to change this, call wxDialog::SetAffirmativeId() with the required
  226. identifier to be used. Or, override wxDialog::DoOK() (return @false to have
  227. wxWidgets simply call Close to dismiss the dialog).
  228. Smartphone dialogs do @e not have an OK button on the caption, and are closed
  229. using one of the two menu buttons. You need to assign these using
  230. wxTopLevelWindow::SetLeftMenu and wxTopLevelWindow::SetRightMenu(), for
  231. example:
  232. @code
  233. #ifdef __SMARTPHONE__
  234. SetLeftMenu(wxID_OK);
  235. SetRightMenu(wxID_CANCEL, _("Cancel"));
  236. #elif defined(__POCKETPC__)
  237. // No OK/Cancel buttons on PocketPC, OK on caption will close
  238. #else
  239. topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxEXPAND | wxALL, 10 );
  240. #endif
  241. @endcode
  242. For implementing property sheets (flat tabs), use a wxNotebook with
  243. @c wxNB_FLAT|wxNB_BOTTOM and have the notebook left, top and right sides
  244. overlap the dialog by about 3 pixels to eliminate spurious borders. You can do
  245. this by using a negative spacing in your sizer Add() call. The cross-platform
  246. property sheet dialog wxPropertySheetDialog is provided, to show settings in
  247. the correct style on PocketPC and on other platforms.
  248. Notifications (bubble HTML text with optional buttons and links) will also be
  249. implemented in the future for PocketPC.
  250. Modeless dialogs probably don't make sense for PocketPC and Smartphone, since
  251. frames and dialogs are normally full-screen, and a modeless dialog is normally
  252. intended to co-exist with the main application frame.
  253. @subsubsection page_port_wxmsw_wince_ppc Menubars and Toolbars in PocketPC
  254. On PocketPC, a frame must always have a menubar, even if it's empty. An empty
  255. menubar/toolbar is automatically provided for dialogs, to hide any existing
  256. menubar for the duration of the dialog.
  257. Menubars and toolbars are implemented using a combined control, but you can use
  258. essentially the usual wxWidgets API; wxWidgets will combine the menubar and
  259. toolbar. However, there are some restrictions:
  260. @li You must create the frame's primary toolbar with wxFrame::CreateToolBar(),
  261. because this uses the special wxToolMenuBar class (derived from wxToolBar)
  262. to implement the combined toolbar and menubar. Otherwise, you can create
  263. and manage toolbars using the wxToolBar class as usual, for example to
  264. implement an optional formatting toolbar above the menubar as Pocket Word
  265. does. But don't assign a wxToolBar to a frame using SetToolBar - you should
  266. always use CreateToolBar for the main frame toolbar.
  267. @li Deleting and adding tools to wxToolMenuBar after Realize is called is not
  268. supported.
  269. @li For speed, colours are not remapped to the system colours as they are in
  270. wxMSW. Provide the tool bitmaps either with the correct system button
  271. background, or with transparency (for example, using XPMs).
  272. @li Adding controls to wxToolMenuBar is not supported. However, wxToolBar
  273. supports controls.
  274. Unlike in all other ports, a wxDialog has a wxToolBar automatically created for
  275. you. You may either leave it blank, or access it with wxDialog::GetToolBar()
  276. and add buttons, then calling wxToolBar::Realize(). You cannot set or recreate
  277. the toolbar.
  278. @subsubsection page_port_wxmsw_wince_smart Menubars and Toolbars in Smartphone
  279. On Smartphone, there are only two menu buttons, so a menubar is simulated using
  280. a nested menu on the right menu button. Any toolbars are simply ignored on
  281. Smartphone.
  282. @subsubsection page_port_wxmsw_wince_closing Closing Windows in wxWinCE
  283. The guidelines state that applications should not have a Quit menu item, since
  284. the user should not have to know whether an application is in memory or not.
  285. The close button on a window does not call the window's close handler; it
  286. simply hides the window. However, the guidelines say that the Ctrl+Q
  287. accelerator can be used to quit the application, so wxWidgets defines this
  288. accelerator by default and if your application handles wxID_EXIT, it will do
  289. the right thing.
  290. @subsubsection page_port_wxmsw_wince_ctx Context Menus in wxWinCE
  291. To enable context menus in PocketPC, you currently need to call
  292. wxWindow::EnableContextMenu(), a wxWinCE-only function. Otherwise the context
  293. menu event (wxContextMenuEvent) will never be sent. This API is subject to
  294. change.
  295. Context menus are not supported in Smartphone.
  296. @subsubsection page_port_wxmsw_wince_ctrl Control Differences on wxWinCE
  297. These controls and styles are specific to wxWinCE:
  298. @li wxTextCtrl The @c wxTE_CAPITALIZE style causes a CAPEDIT control to be
  299. created, which capitalizes the first letter.
  300. These controls are missing from wxWinCE:
  301. @li MDI classes MDI is not supported under Windows CE.
  302. @li wxMiniFrame Not supported under Windows CE.
  303. Tooltips are not currently supported for controls, since on PocketPC controls
  304. with tooltips are distinct controls, and it will be hard to add dynamic tooltip
  305. support.
  306. Control borders on PocketPC and Smartphone should normally be specified with
  307. @c wxBORDER_SIMPLE instead of @c wxBORDER_SUNKEN. Controls will usually adapt
  308. appropriately by virtue of their GetDefaultBorder() function, but if you wish
  309. to specify a style explicitly you can use @c wxDEFAULT_CONTROL_BORDER which
  310. will give a simple border on PocketPC and Smartphone, and the sunken border on
  311. other platforms.
  312. @subsubsection page_port_wxmsw_wince_help Online Help in wxWinCE
  313. You can use the help controller wxWinceHelpController which controls simple
  314. @c .htm files, usually installed in the Windows directory. See the Windows CE
  315. reference for how to format the HTML files.
  316. @subsubsection page_port_wxmsw_wince_install Installing your PocketPC and Smartphone Applications
  317. To install your application, you need to build a CAB file using the parameters
  318. defined in a special .inf file. The CabWiz program in your SDK will compile the
  319. CAB file from the .inf file and files that it specifies.
  320. For delivery, you can simply ask the user to copy the CAB file to the device
  321. and execute the CAB file using File Explorer. Or, you can write a program for
  322. the desktop PC that will find the ActiveSync Application Manager and install
  323. the CAB file on the device, which is obviously much easier for the user.
  324. Here are some links that may help.
  325. @li A setup builder that takes CABs and builds a setup program is at
  326. http://www.eskimo.com/~scottlu/win/index.html.
  327. @li Sample installation files can be found in
  328. <tt>Windows CE Tools/wce420/POCKET PC 2003/Samples/Win32/AppInst</tt>.
  329. @li An installer generator using wxPython can be found at
  330. http://ppcquicksoft.iespana.es/ppcquicksoft/myinstall.html.
  331. @li Miscellaneous Windows CE resources can be found at
  332. http://www.orbworks.com/pcce/resources.html.
  333. @li Installer creation instructions with a setup.exe for installing to PPC can be found at
  334. http://www.pocketpcdn.com/articles/creatingsetup.html.
  335. @li Microsoft instructions are at
  336. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnce30/html/appinstall30.asp?frame=true
  337. @li Troubleshooting WinCE application installations:
  338. http://support.microsoft.com/default.aspx?scid=KB;en-us;q181007
  339. You may also check out <tt>demos/life/setup/wince</tt> which contains scripts
  340. to create a PocketPC installation for ARM-based devices. In particular,
  341. @c build.bat builds the distribution and copies it to a directory called
  342. @c Deliver.
  343. @subsubsection page_port_wxmsw_wince_filedlg wxFileDialog in PocketPC
  344. Allowing the user to access files on memory cards, or on arbitrary parts of the
  345. filesystem, is a pain; the standard file dialog only shows folders under My
  346. Documents or folders on memory cards (not the system or card root directory,
  347. for example). This is a known problem for PocketPC developers.
  348. If you need a file dialog that allows access to all folders, you can use
  349. wxGenericFileDialog instead. You will need to include @c wx/generic/filedlgg.h.
  350. @subsubsection page_port_wxmsw_wince_evc Embedded Visual C++ Issues
  351. <b>Run-time type information</b>
  352. If you wish to use runtime type information (RTTI) with eVC++ 4, you need to
  353. download an extra library, @c ccrtrtti.lib, and link with it. At the time of
  354. writing you can get it from here:
  355. @verbatim
  356. http://support.microsoft.com/kb/830482/en-us
  357. @endverbatim
  358. Otherwise you will get linker errors similar to this:
  359. @verbatim
  360. wxwince26d.lib(control.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
  361. @endverbatim
  362. <b>Windows Mobile 5.0 emulator</b>
  363. Note that there is no separate emulator configuration for Windows Mobile 5.0:
  364. the emulator runs the ARM code directly.
  365. <b>Visual Studio 2005 project files</b>
  366. Unfortunately, Visual Studio 2005, required to build Windows Mobile 5.0
  367. applications, doesn't do a perfect job of converting the project files from
  368. eVC++ format.
  369. When you have converted the wxWidgets workspace, edit the configuration
  370. properties for each configuration and in the Librarian, add a relative path
  371. @verbatim ..\..\lib @endverbatim
  372. to each library path. For example:
  373. @verbatim ..\$(PlatformName)\$(ConfigurationName)\wx_mono.lib @endverbatim
  374. Then, for a sample you want to compile, edit the configuration properties
  375. and make sure
  376. @verbatim ..\..\lib\$(PlatformName)\$(ConfigurationName) @endverbatim
  377. is in the Linker/General/Additional Library Directories property. Also change
  378. the Linker/Input/Additional Dependencies property to something like
  379. @verbatim
  380. coredll.lib wx_mono.lib wx_wxjpeg.lib wx_wxpng.lib wx_wxzlib.lib wx_wxexpat.lib commctrl.lib winsock.lib wininet.lib
  381. @endverbatim
  382. since the library names in the wxWidgets workspace were changed by VS 2005.
  383. Alternately, you could edit all the names to be identical to the original eVC++
  384. names, but this will probably be more fiddly.
  385. @subsubsection page_port_wxmsw_wince_issues Remaining Issues
  386. These are some of the remaining problems to be sorted out, and features
  387. to be supported.
  388. @li <b>Windows Mobile 5 issues.</b> It is not possible to get the HMENU for
  389. the command bar on Mobile 5, so the menubar functions need to be rewritten
  390. to get the individual menus without use of a menubar handle. Also the
  391. new Mobile 5 convention of using only two menus (and no bitmap buttons) needs to be
  392. considered.
  393. @li <b>Sizer speed.</b> Particularly for dialogs containing notebooks,
  394. layout seems slow. Some analysis is required.
  395. @li <b>Notification boxes.</b> The balloon-like notification messages, and their
  396. icons, should be implemented. This will be quite straightforward.
  397. @li <b>SIP size.</b> We need to be able to get the area taken up by the SIP (input panel),
  398. and the remaining area, by calling SHSipInfo. We also may need to be able to show and hide
  399. the SIP programmatically, with SHSipPreference. See also the <em>Input Dialogs</em> topic in
  400. the <em>Programming Windows CE</em> guide for more on this, and how to have dialogs
  401. show the SIP automatically using the @c WC_SIPREF control.
  402. @li <b>wxStaticBitmap.</b> The About box in the "Life!" demo shows a bitmap that is
  403. the correct size on the emulator, but too small on a VGA Pocket Loox device.
  404. @li <b>wxStaticLine.</b> Lines don't show up, and the documentation suggests that
  405. missing styles are implemented with @c WM_PAINT.
  406. @li <b>HTML control.</b> PocketPC has its own HTML control which can be used for showing
  407. local pages or navigating the web. We should create a version of wxHtmlWindow that uses this
  408. control, or have a separately-named control (wxHtmlCtrl), with a syntax as close as possible
  409. to wxHtmlWindow.
  410. @li <b>Tooltip control.</b> PocketPC uses special TTBUTTON and TTSTATIC controls for adding
  411. tooltips, with the tooltip separated from the label with a double tilde. We need to support
  412. this using SetToolTip.(Unfortunately it does not seem possible to dynamically remove the tooltip,
  413. so an extra style may be required.)
  414. @li <b>Focus.</b> In the wxPropertySheetDialog demo on Smartphone, it's not possible to navigate
  415. between controls. The focus handling in wxWidgets needs investigation. See in particular
  416. src/common/containr.cpp, and note that the default OnActivate handler in src/msw/toplevel.cpp
  417. sets the focus to the first child of the dialog.
  418. @li <b>OK button.</b> We should allow the OK button on a dialog to be optional, perhaps
  419. by using @c wxCLOSE_BOX to indicate when the OK button should be displayed.
  420. @li <b>Dynamic adaptation.</b> We should probably be using run-time tests more
  421. than preprocessor tests, so that the same WinCE application can run on different
  422. versions of the operating system.
  423. @li <b>Modeless dialogs.</b> When a modeless dialog is hidden with the OK button, it doesn't restore the
  424. frame's menubar. See for example the find dialog in the dialogs sample. However, the menubar is restored
  425. if pressing Cancel (the window is closed). This reflects the fact that modeless dialogs are
  426. not very useful on Windows CE; however, we could perhaps destroy/restore a modeless dialog's menubar
  427. on deactivation and activation.
  428. @li <b>Home screen plugins.</b> Figure out how to make home screen plugins for use with wxWidgets
  429. applications (see http://www.codeproject.com/ce/CTodayWindow.asp for inspiration).
  430. Although we can't use wxWidgets to create the plugin (too large), we could perhaps write
  431. a generic plugin that takes registry information from a given application, with
  432. options to display information in a particular way using icons and text from
  433. a specified location.
  434. @li <b>Further abstraction.</b> We should be able to abstract away more of the differences
  435. between desktop and mobile applications, in particular for sizer layout.
  436. @li <b>Dialog captions.</b> The blue, bold captions on dialogs - with optional help button -
  437. should be catered for, either by hard-wiring the capability into all dialogs and panels,
  438. or by providing a standard component and sizer.
  439. @section page_port_nativedocs Native Toolkit Documentation
  440. It's sometimes useful to interface directly with the underlying toolkit
  441. used by wxWidgets to e.g. use toolkit-specific features.
  442. In such case (or when you want to e.g. write a port-specific patch) it can be
  443. necessary to use the underlying toolkit API directly:
  444. - wxMSW port uses win32 API: see MSDN docs at http://msdn2.microsoft.com/en-us/library/ms649779.aspx
  445. - wxGTK port uses GTK+ and other lower-level libraries; see
  446. - GTK+ docs at http://library.gnome.org/devel/gtk/unstable/
  447. - GDK docs at http://library.gnome.org/devel/gdk/unstable/
  448. - GLib docs at http://library.gnome.org/devel/glib/unstable/
  449. - GObject docs at http://library.gnome.org/devel/gobject/unstable/
  450. - Pango docs at http://library.gnome.org/devel/pango/unstable/
  451. - wxMac port uses the Carbon API: see Carbon docs at http://developer.apple.com/carbon
  452. - wxCocoa port uses the Cocoa API: see Cocoa docs at http://developer.apple.com/cocoa
  453. */