The hyperlink is not the child of the pane. It is a sibling, in the sense the pane and hyperlink are both in the same sizer.
Will just hiding the hyperlink help in my case? Once the dialog is closed, any control which has not been explicitly destroyed will anyway be destroyed automatically, isn't it?
Search found 115 matches
- Tue Sep 04, 2018 6:56 pm
- Forum: C++ Development
- Topic: Destroy call on wxHyperlinkCtrl crashes the application
- Replies: 6
- Views: 559
- Tue Sep 04, 2018 6:51 pm
- Forum: C++ Development
- Topic: Destroy call on wxHyperlinkCtrl crashes the application
- Replies: 6
- Views: 559
Re: Destroy call on wxHyperlinkCtrl crashes the application
Thank you @doublemax.
Are you referring to scheduling the destruction of the "Remove" hyperlink here?Use wxAppConsole::ScheduleForDestruction to destroy the pane:
- Tue Sep 04, 2018 5:51 pm
- Forum: C++ Development
- Topic: Can we get handle to wxDialog from its ID?
- Replies: 2
- Views: 496
Can we get handle to wxDialog from its ID?
Hi,
Is it possible to get the handle/pointer to a wxDialog, if it's ID is known?
I need a way to close a dialog from another dialog which knows the former's ID.
Thanks in advance!
Is it possible to get the handle/pointer to a wxDialog, if it's ID is known?
I need a way to close a dialog from another dialog which knows the former's ID.
Thanks in advance!
- Tue Sep 04, 2018 5:37 pm
- Forum: C++ Development
- Topic: Destroy call on wxHyperlinkCtrl crashes the application
- Replies: 6
- Views: 559
Destroy call on wxHyperlinkCtrl crashes the application
Hi All, I have an instance of a wxScrolledWindow, which contains several wxBoxSizer instances. Each wxBoxSizer contains a wxCollapsiblePane and a wxHyperlinkCtrl ("Remove" link). Please refer to attachment. That is how it looks like. When the "Remove" hyper-link is clicked, the wxCollapsiblePane ass...
- Tue Aug 28, 2018 5:30 am
- Forum: Platform Related Issues
- Topic: Tooltip not working on Mac
- Replies: 5
- Views: 884
Re: Tooltip not working on Mac
So, it is actually an Information icon, which when hovered over, will provide more info about the control it is associated with. The wxGenericStaticBitmap also didn't work - tool-tips are not shown still. Anything else I could try? This is important, and the usage cannot be changed since that is how...
- Mon Aug 27, 2018 5:40 pm
- Forum: Platform Related Issues
- Topic: Tooltip not working on Mac
- Replies: 5
- Views: 884
Re: Tooltip not working on Mac
Hi, Thanks for your reply. 1. wx version is 3.1.0 2. OS is Mac High Sierra 10.12 3. wx was configured using the following command: ./configure --disable-shared --enable-unicode --with-libjpeg=builtin --with-libpng=builtin --with-cocoa CXXFLAGS="-std=c++11 -stdlib=libc++ " OBJCXXFLAGS="-std=c++11 -st...
- Mon Aug 27, 2018 3:08 pm
- Forum: C++ Development
- Topic: wxRichTextCtrl - loading HTML file is not working
- Replies: 3
- Views: 517
Re: wxRichTextCtrl - loading HTML file is not working
Oops! okay..
but is there any other way to get HTML content into a wxRichTextCtrl?
but is there any other way to get HTML content into a wxRichTextCtrl?
- Mon Aug 27, 2018 2:28 pm
- Forum: C++ Development
- Topic: wxRichTextCtrl - loading HTML file is not working
- Replies: 3
- Views: 517
wxRichTextCtrl - loading HTML file is not working
Hi All, Need yet another help badly! I have a wxRichTextCtrl instance, into which i need to load HTML contents, saved in the file "mail.html". This is code i have, but it says "File could not be loaded", and the wxRichTextCtrl remains empty. What wrong am i doing? Please help! wxRichTextCtrl* richTe...
- Mon Aug 27, 2018 12:39 pm
- Forum: C++ Development
- Topic: Dialog which is similar to a Compose mail template using wxWIdgets
- Replies: 4
- Views: 585
Re: Dialog which is similar to a Compose mail template using wxWIdgets
Thanks a lot Nunki, will check it out.
- Mon Aug 27, 2018 10:34 am
- Forum: Platform Related Issues
- Topic: Tooltip not working on Mac
- Replies: 5
- Views: 884
Tool-tip not working on Mac
Hi All, I have this piece of code. The tool-tip is seen perfectly on Windows, but it just does not show up on Mac.. Please help! wxStaticBitmap* infoBmp = new wxStaticBitmap(win, wxID_STATIC, wxBitmap("./info.png", wxBITMAP_TYPE_PNG), wxDefaultPosition, wxSize(16, 16), 0); infoBmp->SetToolTip(str);
- Mon Aug 27, 2018 10:32 am
- Forum: Platform Related Issues
- Topic: wxStaticBox on Mac shows "Title" even when label is set to empty
- Replies: 5
- Views: 930
Re: wxStaticBox on Mac shows "Title" even when label is set to empty
I just used the code in the patch and it worked.. Thanks a lot!
- Mon Aug 27, 2018 10:31 am
- Forum: Compiler / Linking / IDE Related
- Topic: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
- Replies: 4
- Views: 1153
Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
Thanks a lot, PB!!! Worked perfectly!!Thanks again!
- Mon Aug 27, 2018 5:16 am
- Forum: Compiler / Linking / IDE Related
- Topic: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
- Replies: 4
- Views: 1153
Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
Hi PB, thanks for your reply. I have the same project settings for the Release mode as well. But it gives the same "unresolved symbols" error in the release build as well. If you are using MSVC, I suggest not adding individual libraries by hand to the linker settings, instead just prepend $(WXWIN)\i...
- Sun Aug 26, 2018 2:30 pm
- Forum: Compiler / Linking / IDE Related
- Topic: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
- Replies: 4
- Views: 1153
wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
Hi All, I am in need of some urgent help!! Am trying to create an instance of wxRichTextCtrl. The documentation says that in order to use it, we need to include the header file and link with the appropriate wxWidgets library with richtext suffix, and put the rich text library first in your link line...
- Sun Aug 26, 2018 9:00 am
- Forum: C++ Development
- Topic: wxBoxSizer - background color
- Replies: 2
- Views: 708
wxBoxSizer - background color
Hi All, I have a wxDialog where many wxBoxSizer instances are added. Each wxBoxSizer contains a wxCollapsiblePane instance and a "Remove" button. But, they have a grey background which is looking odd. Is there a way I can change this to the color of the wxPanel underneath, which is white? Please see...