Commit Graph

18 Commits

Author SHA1 Message Date
Robert Roebling
e78778c8e2 Add ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK does not support wx.CONTROL_UNDETERMINED for checkboxes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-29 16:57:09 +00:00
Vadim Zeitlin
945178c70e Add more tests for wxRendererNative::DrawHeaderButton().
Test using icons and bitmaps in it. Also show the native/default
implementation of this method and not only our overridden version.

See #12047.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-15 10:47:33 +00:00
Vadim Zeitlin
3427bc784e Document wxRendererNative::DrawTitleBarBitmap() and use it properly.
Comment and document the (non obvious) requirement for the PNG image handler
to be enabled when using this function under OS X. In fact, document the
entire function itself which was forgotten previously.

Do enable PNG image handler when using DrawTitleBarBitmap() in the sample.

Closes #11345.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-19 08:59:25 +00:00
Vadim Zeitlin
b50d93d1da Added wxRendererNative::DrawTitleBarBitmap().
This is currently only implemented for wxMSW as there is no advantage to use a
generic implementation compared to using wxArtProvider directly under the
other ports. But for MSW this allows to have perfectly natively looking
titlebar-like buttons.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-05 22:57:04 +00:00
Vadim Zeitlin
8c9d15339b Add demonstration of flags to the render sample.
Allow to select the flags to pass to DrawXXX() functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-05 22:56:43 +00:00
Vadim Zeitlin
737e53350c Add demonstration of a few more wxRenderer methods.
Also show the effect of calling several more DrawXXX() methods in the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-05 22:56:36 +00:00
Vadim Zeitlin
34456d33dc Correct custom renderer method override example in the sample.
The implementation of DrawHeaderButton() in MyRenderer should restore the
text foreground colour and brush to avoid messing up drawing done after it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-05 22:56:31 +00:00
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
51c42fc50a don't use GetThemeMetric(HP_HEADERITEM, TMT_HEIGHT) as it doesn't seem to work; implement GetHeaderButtonHeight() in wxRendererMSW instead of doing it in wxRendererXP using HDM_LAYOUT; added test for this renderer method to the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-03 21:50:28 +00:00
Vadim Zeitlin
45e6e6f8ab call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Robin Dunn
adf07e34d9 Fix DrawHeaderButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-01 16:07:30 +00:00
Vadim Zeitlin
ba46d9ea76 fix compilation error when wxUSE_DYNLIB_CLASS == 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 00:59:50 +00:00
Włodzimierz Skiba
1ca21e6dd6 Follow changes in wxRenderer interface.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-10 12:07:17 +00:00
Paul Cornett
32b9d9ff97 non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-29 19:45:34 +00:00
Václav Slavík
749bfe9a6d compilation fixes for gcc-3.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 12:36:02 +00:00
Julian Smart
be5a51fb59 More name changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Václav Slavík
9c743a7c78 misc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 15:37:32 +00:00
Vadim Zeitlin
c59e508935 added sample showing how to use custom renderers and load them from DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 12:32:14 +00:00