Improve "shaped" sample documentation

Also link to it from the functions shown in this sample.
This commit is contained in:
Vadim Zeitlin
2022-03-25 01:54:11 +01:00
parent fffe5af903
commit 80a056a58b
3 changed files with 12 additions and 3 deletions

View File

@@ -2395,7 +2395,9 @@ public:
Under wxGTK and wxOSX, you can use ::wxBG_STYLE_TRANSPARENT to obtain
full transparency of the window background. Note that wxGTK supports
this only since GTK 2.12 with a compositing manager enabled, call
IsTransparentBackgroundSupported() to check whether this is the case.
IsTransparentBackgroundSupported() to check whether this is the case,
see the example of doing it in @ref page_samples_shaped "the shaped
sample".
Also, in order for @c SetBackgroundStyle(wxBG_STYLE_TRANSPARENT) to
work, it must be called before Create(). If you're using your own