Search found 115 matches

by deepti
Tue Sep 04, 2018 6:56 pm
Forum: C++ Development
Topic: Destroy call on wxHyperlinkCtrl crashes the application
Replies: 6
Views: 432

Re: Destroy call on wxHyperlinkCtrl crashes the application

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?
by deepti
Tue Sep 04, 2018 6:51 pm
Forum: C++ Development
Topic: Destroy call on wxHyperlinkCtrl crashes the application
Replies: 6
Views: 432

Re: Destroy call on wxHyperlinkCtrl crashes the application

Thank you @doublemax.
Use wxAppConsole::ScheduleForDestruction to destroy the pane:
Are you referring to scheduling the destruction of the "Remove" hyperlink here?
by deepti
Tue Sep 04, 2018 5:51 pm
Forum: C++ Development
Topic: Can we get handle to wxDialog from its ID?
Replies: 2
Views: 395

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!
by deepti
Tue Sep 04, 2018 5:37 pm
Forum: C++ Development
Topic: Destroy call on wxHyperlinkCtrl crashes the application
Replies: 6
Views: 432

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...
by deepti
Tue Aug 28, 2018 5:30 am
Forum: Platform Related Issues
Topic: Tooltip not working on Mac
Replies: 5
Views: 764

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...
by deepti
Mon Aug 27, 2018 5:40 pm
Forum: Platform Related Issues
Topic: Tooltip not working on Mac
Replies: 5
Views: 764

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...
by deepti
Mon Aug 27, 2018 3:08 pm
Forum: C++ Development
Topic: wxRichTextCtrl - loading HTML file is not working
Replies: 3
Views: 395

Re: wxRichTextCtrl - loading HTML file is not working

Oops! okay..
but is there any other way to get HTML content into a wxRichTextCtrl?
by deepti
Mon Aug 27, 2018 2:28 pm
Forum: C++ Development
Topic: wxRichTextCtrl - loading HTML file is not working
Replies: 3
Views: 395

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...
by deepti
Mon Aug 27, 2018 10:34 am
Forum: Platform Related Issues
Topic: Tooltip not working on Mac
Replies: 5
Views: 764

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);
by deepti
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: 785

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!
by deepti
Mon Aug 27, 2018 5:16 am
Forum: Compiler / Linking / IDE Related
Topic: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
Replies: 4
Views: 1012

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...
by deepti
Sun Aug 26, 2018 2:30 pm
Forum: Compiler / Linking / IDE Related
Topic: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)
Replies: 4
Views: 1012

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...
by deepti
Sun Aug 26, 2018 9:00 am
Forum: C++ Development
Topic: wxBoxSizer - background color
Replies: 2
Views: 590

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...