Search found 115 matches

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: 957

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: 957

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: 957

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: 957

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: 766

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: 766

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: 583

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...
by deepti
Thu Dec 13, 2018 6:21 am
Forum: C++ Development
Topic: wxThreadEvent::SetString not working correctly on Mac
Replies: 1
Views: 330

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 &...
by deepti
Fri Nov 30, 2018 6:44 pm
Forum: C++ Development
Topic: Show wxListCtrl item row as disabled
Replies: 2
Views: 592

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: 1054

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: 1054

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: 1054

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: 1054

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...
by deepti
Fri Oct 05, 2018 11:08 am
Forum: Platform Related Issues
Topic: Dialogs end up behind wxFRAME_FLOAT_ON_PARENT frames
Replies: 1
Views: 814

Dialogs end up behind wxFRAME_FLOAT_ON_PARENT frames

Hi All, When you create a frame in Mac using the wxFRAME_FLOAT_ON_PARENT style any modal dialogs you pop up with the frame as the parent actually show up BEHIND the frame? On windows this work situation works properly. I am seeing this issue on Mac High Sierra, wxWidgets 3.1.0. I see there was a tic...
by deepti
Wed Sep 26, 2018 7:59 pm
Forum: Platform Related Issues
Topic: wxMessageBox and wxMessageDialog - go behind the dialog only on Mac
Replies: 7
Views: 3094

Re: wxMessageBox and wxMessageDialog - go behind the dialog only on Mac

BTW: Does the messagebox/dialog come to the front when you click it?
Yes it does..

So, i made the dialog Modal and it works. It was modeless because there was no need for it to be modal. But, just to solve this issue, i made it modal :-|