wxWidgets/samples/dataview
Václav Slavík 60bd6842e4 Fix handling of ampersands in wxDataViewCtrl markup
Handle "&" in exactly the same way as "&" in wxMarkupParser, i.e. do not
map the former to "&&" to prevent it from being interpreted as a mnemonic as
this is incompatible with using markup for anything but the control labels,
e.g. for wxDataViewCtrl items text, in which mnemonics are not recognized.
And even when using markup for control labels, it was a questionable decision
as it's really not clear at all why should the XML entity and the raw
character itself be handled differently.

Also split wxMarkupText into two classes, wxMarkupText that handles
mnemonics in the markup (which is typically a label) and a very
similar, but not derived, wxItemMarkupText that handles mnemonics-less
markup for list etc. items, uses DrawItemText() and supports
ellipsizing.

Illustrate the use of ampersands in the dataview sample.
2017-04-07 18:45:39 +02:00
..
dataview_vc7.vcproj
dataview_vc8.vcproj
dataview_vc9.vcproj
dataview.bkl
dataview.cpp Fix harmless warnings in samples (wxGTK) 2017-03-20 23:32:52 +01:00
descrip.mms
makefile.bcc
makefile.gcc Link with oleacc.lib when using MSW gcc makefiles 2017-01-04 11:50:18 +01:00
Makefile.in
makefile.unx
makefile.vc Fix build with RTTI turned off using MSVC makefiles 2017-01-04 12:01:14 +01:00
mymodels.cpp Fix handling of ampersands in wxDataViewCtrl markup 2017-04-07 18:45:39 +02:00
mymodels.h
null.xpm
wx_small.xpm