Search found 102 matches

by deepti
Fri Feb 01, 2019 12:43 pm
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 404

Re: wxDialog not increasing in size to show all controls

Hi @doublemax,

please find attached the files containing dialog class and the constructor definition.
by deepti
Fri Feb 01, 2019 11:32 am
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 404

wxDialog not increasing in size to show all controls

Hi All, I have a wxDialog instance as created below: But the problem is that none of the wxStaticText instances are shown! The wxScrolledWindow is needed since many wxPanel of type "panelVersionInfo" need to be added dynamically. VersionsDialog::VersionsDialog(wxWindow* parent) : wxDialog(parent, -1...
by deepti
Thu Jan 31, 2019 5:56 pm
Forum: C++ Development
Topic: wxDialog size not correct - all controls are not shown
Replies: 7
Views: 189

Re: wxDialog size not correct - all controls are not shown

ONEEYEMAN wrote: So you create a panel and scroll window in the constructor and noting else, right? No OK/Cancel buttons, no other controls?
Yes, just that much.

But calling just Layout() for the dialog is not helping :( Its still the same.
by deepti
Thu Jan 31, 2019 5:37 pm
Forum: C++ Development
Topic: wxDialog size not correct - all controls are not shown
Replies: 7
Views: 189

Re: wxDialog size not correct - all controls are not shown

Sure. Here is the code in the constructor: m_panelVersionSettings = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); wxBoxSizer* boxSizerVersion = new wxBoxSizer(wxVERTICAL); m_panelVersionSettings->SetSizer(boxSizerVersion); m_VersionsScrolledWindow = new wxScrolledWi...
by deepti
Thu Jan 31, 2019 4:43 pm
Forum: C++ Development
Topic: wxDialog size not correct - all controls are not shown
Replies: 7
Views: 189

Re: wxDialog size not correct - all controls are not shown

Hi @Oneyeman, Thank you for your response. I have the following lines when controls are added dynamically. m_VersionsControlsbox->SetSizeHints(m_VersionsScrolledWindow); m_VersionsScrolledWindow->FitInside(); m_VersionsControlsbox->FitInside(m_VersionsScrolledWindow); m_VersionsScrolledWindow->Layou...
by deepti
Thu Jan 31, 2019 12:10 pm
Forum: C++ Development
Topic: wxDialog size not correct - all controls are not shown
Replies: 7
Views: 189

wxDialog size not correct - all controls are not shown

Hi All, The following is the structure of my wxDialog instance. wxPanel | wxScrolledWindow | wxPanel | wxGridSizer | Other controls like wxStaticText, wxButton etc. So, I have a wxPanel p (which has an associated wxBoxSizer s1) - wxScrolledWindow 'scrwnd' is created with 'p' as parent (scrwnd has an...
by deepti
Wed Jan 30, 2019 4:14 pm
Forum: C++ Development
Topic: wxRadioBox without default selection
Replies: 3
Views: 143

Re: wxRadioBox without default selection

Thank you so much for the replies
by deepti
Tue Jan 29, 2019 6:17 pm
Forum: C++ Development
Topic: wxRadioBox without default selection
Replies: 3
Views: 143

wxRadioBox without default selection

Hi All, Is it possible to implement a wxRadioBox without any default selection? I am basically looking to implement a control such that the user is always forced to choose a selection and is not allowed to proceed otherwise. wxRadioBox and wxCheckedlistbox are 2 such controls i could think of. Is th...
by deepti
Thu Jan 24, 2019 2:35 pm
Forum: C++ Development
Topic: Multi-threaded wxWidgets application
Replies: 1
Views: 148

Multi-threaded wxWidgets application

Hi All, I have a wxDialog instance, which has a few buttons like "Remove", "Disable" etc. On click of each of these buttons, i need to start a thread, which does some time-consuming calculations (file size etc). When the thread finishes execution, it needs to post an event, which will be handled by ...
by deepti
Thu Dec 13, 2018 6:21 am
Forum: C++ Development
Topic: wxThreadEvent::SetString not working correctly on Mac
Replies: 1
Views: 108

wxThreadEvent::SetString not working correctly on Mac

Hi All, I have this piece of code which queues a wxThreadEvent , as shown below: In the event handler, i am just displaying the input parameter string "text". It works fine on Windows. But on Mac, only the first character of the "text" is displayed. Even a simple string such as "abc" , if used in ev...
by deepti
Fri Nov 30, 2018 6:44 pm
Forum: C++ Development
Topic: Show wxListCtrl item row as disabled
Replies: 2
Views: 167

Show wxListCtrl item row as disabled

Hi All,

I have a wxListCtrl with checkboxes. On click of a checkbox, the corresponding row should be shown as disabled/greyed out. And when unchecked, it should be displayed normally again.
Is there a way we can achieve this?
Please help..
by deepti
Wed Nov 07, 2018 6:16 am
Forum: C++ Development
Topic: wxStaticLine does not show up in a wxFlexGridSizer
Replies: 6
Views: 364

Re: wxStaticLine does not show up in a wxFlexGridSizer

thank you so much.. specifying a size works! :)
by deepti
Fri Nov 02, 2018 7:19 am
Forum: C++ Development
Topic: wxStaticLine does not show up in a wxFlexGridSizer
Replies: 6
Views: 364

Re: wxStaticLine does not show up in a wxFlexGridSizer

Hi @doublemax, Thank you for your reply. Sorry for a delayed response since i was off work for quite sometime. m_DetailsControlsbox is a vertical sizer. Have tried a few things with wxEXPAND flag, proportion set to 1, AddGrowableCol, etc. But none of them seems to work! .. the wxStaticLine does not ...
by deepti
Tue Oct 23, 2018 4:49 am
Forum: C++ Development
Topic: wxStaticLine does not show up in a wxFlexGridSizer
Replies: 6
Views: 364

Re: wxStaticLine does not show up in a wxFlexGridSizer

Hello,

Thanks for your reply.
I see this issue on Windows 10, wxWidgets 3.1.0 version.
by deepti
Mon Oct 22, 2018 5:14 pm
Forum: C++ Development
Topic: wxStaticLine does not show up in a wxFlexGridSizer
Replies: 6
Views: 364

wxStaticLine does not show up in a wxFlexGridSizer

Hi, When I use a wxStaticLine within a wxFlexGridSizer, it never gets displayed. But, if i add it directly to a wxBoxSizer, with no other control next to it, it gets displayed correctly. What is it that I am doing wrong? So, the following code does NOT work: wxFlexGridSizer* fgs_0 = new wxFlexGridSi...