Creating Fancy dialog and window in C++ [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
开发者_C百科 Improve this questionI wants to make a GUI application with some fancy graphics, like flipping the window, creating translucent window on window/Linux platform. What will be the steps for these, if I am using window/linux platform and C++ programming language using wxWidget or Juce. As I know idea how to create such window, But i have some knowledge about wxWidget and Juce.
Thanks!
On wxWidgets, I found an interesting message that states:
Since wxFrame (which is usually the class you use for the main application), is derived from wxTopLevelWindow, you can use
wxTopLevelWindow::SetTransparent(int alpha)
method, where: an alpha value of 0 sets the window to be fully transparent, and a value of 255 sets the window to be fully opaque.
There's a demo available here that seems to use this technique (search for Alpha.zip). I was able to compile it with:
g++ AlphaApp.cpp AlphaMain.cpp GUIDialog.cpp -o alpha `wx-config --libs` `wx-config --cxxflags`
精彩评论