开发者

Creating Fancy dialog and window in C++ [closed]

开发者 https://www.devze.com 2023-03-15 12:30 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

I 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`
0

精彩评论

暂无评论...
验证码 换一张
取 消