Search found 56 matches
- Thu Jan 11, 2024 5:24 pm
- Forum: C++ Development
- Topic: Sizer on wxDialog does not seem to pick up wxDataViewCtrl in it
- Replies: 2
- Views: 5248
Re: Sizer on wxDialog does not seem to pick up wxDataViewCtrl in it
I am not really familiar with wxDVC, but I think it is because it does not provide a reasonable default best size. So, the workaround would be either: 1. Do something like pDataViewCtrl->SetMinSize(FromDIP(wxSize(-1, *SomeReasonableHeight*))). 2. Use SetSizer() instead of SetSizerAndFit() and it wi...
- Thu Jan 11, 2024 4:14 pm
- Forum: C++ Development
- Topic: Sizer on wxDialog does not seem to pick up wxDataViewCtrl in it
- Replies: 2
- Views: 5248
Sizer on wxDialog does not seem to pick up wxDataViewCtrl in it
I have created a wxDialog that has a wxDataViewCtrl in it and two wxButton s When I launch the dialog, it almost seems like the main sizer is not aware of the wxDataViewCtrl and is sizing itself based of the two buttons present on it. However, if I do a test by including a wxListCtrl , the sizer pic...
- Sat Jul 15, 2023 4:06 pm
- Forum: C++ Development
- Topic: How to enable scrollbars once controls overflow in popup window
- Replies: 4
- Views: 404
Re: How to enable scrollbars once controls overflow in popup window
I figured it out :D When adding the wxScrolledWindow to the main sizer of the popup window, I had to add it with Proportion(1) so it fills out the client area. My code looks like this now: /* Scrolled notifications panel */ pNotificationsScrolledWindow = new wxScrolledWindow(this, wxID_ANY); pNotifi...
- Sat Jul 15, 2023 3:57 pm
- Forum: C++ Development
- Topic: How to enable scrollbars once controls overflow in popup window
- Replies: 4
- Views: 404
Re: How to enable scrollbars once controls overflow in popup window
Hi Doublemax The scroll bars don't show up at all once the number of panels exceed the area. In the first screenshot, you can see the last panel is cutoff, but no scroll bars are showing Ah, thank you. So should these two lines of code be moved up to there the wxScrolledWindow is initialized? pNotif...
- Sat Jul 15, 2023 3:04 pm
- Forum: C++ Development
- Topic: How to enable scrollbars once controls overflow in popup window
- Replies: 4
- Views: 404
How to enable scrollbars once controls overflow in popup window
Hi there I have a popup window that gets content added to it as the program is running (for now I have a button on my frame for testing that adds the content) Initially everything fits and is visible. But after a certain point the content exceeds the height of the popup window and needs to be scroll...
- Mon Mar 13, 2023 9:32 am
- Forum: C++ Development
- Topic: wxGrid - trigger the double left click event on a row programmatically
- Replies: 2
- Views: 351
Re: wxGrid - trigger the double left click event on a row programmatically
I think you can use wxQueueEvent https://docs.wxwidgets.org/3.0/group__group__funcmacro__events.html#gae921d7bd0e52fedbf3f253d2c408bce1 wxQueueEvent takes the destination (i.e. your Grid) as first parameter and second parameter the event. I am not familiar with wxGrid, but you can find what event ne...
- Tue Feb 07, 2023 12:47 pm
- Forum: C++ Development
- Topic: wxDataViewTreeTable adding Columns help
- Replies: 10
- Views: 813
Re: wxDataViewTreeTable adding Columns help
Hi,
There is a even more minimalist dataview example here: https://github.com/ifexception/wxdataview-example
Maybe that will help?
Thanks
There is a even more minimalist dataview example here: https://github.com/ifexception/wxdataview-example
Maybe that will help?
Thanks
- Tue Oct 05, 2021 2:01 pm
- Forum: C++ Development
- Topic: Make long text wrap correctly when frame is resized?
- Replies: 2
- Views: 947
Re: Make long text wrap correctly when frame is resized?
Hmmm, didn't think about using a wxHtmlWindow. Let me try that rather...
- Mon Oct 04, 2021 7:32 pm
- Forum: C++ Development
- Topic: Make long text wrap correctly when frame is resized?
- Replies: 2
- Views: 947
Make long text wrap correctly when frame is resized?
Hi all I have (basically) a wxPanel with a few controls on it and one of those is a wxStaticText in a wxStaticBoxSizer which is in a wxWrapSizer. When I resize to a smaller dimension, the text gets cut off rather than being placed below as space gets smaller. And I want to keep the right side button...
- Wed Sep 09, 2020 10:05 am
- Forum: C++ Development
- Topic: How to specify format for wxAutomationObject date property
- Replies: 2
- Views: 491
Re: How to specify format for wxAutomationObject date property
It was a PEBKAC error...
I did not realize I could get a wxDateTime on the wxVariant. Thank you for your help @PB
I did not realize I could get a wxDateTime on the wxVariant. Thank you for your help @PB
- Wed Sep 09, 2020 8:06 am
- Forum: C++ Development
- Topic: How to specify format for wxAutomationObject date property
- Replies: 2
- Views: 491
How to specify format for wxAutomationObject date property
I am reading meetings from Outlook using wxAutomationObject's and one of those properties is a DateTime, so to speak (it comes as a string). The problem is that when reading it via wxAutomationObject.GetProperty, the format of date comes out as so: Mon Sep 7 12:00:00 2020 The equivalent VBA code (ru...
- Wed Sep 02, 2020 9:55 am
- Forum: C++ Development
- Topic: wxStaticText not centering in dialog after other control hidden
- Replies: 2
- Views: 479
Re: wxStaticText not centering in dialog after other control hidden
Thank you @doublemax!
Calling Layout() at the end of the code resolved the problem
Calling Layout() at the end of the code resolved the problem
- Tue Sep 01, 2020 6:49 pm
- Forum: C++ Development
- Topic: wxStaticText not centering in dialog after other control hidden
- Replies: 2
- Views: 479
wxStaticText not centering in dialog after other control hidden
I am trying to center a wxStaticText on a wxDialog after a control (wxActivityIndicator) was hidden. The problem is that if adding the wxStaticText after having started and stopped the wxActivityIndicator and then hiding it, the wxStaticText gets placed in the top left corner of the wxDialog. But I ...
- Mon Aug 24, 2020 9:25 pm
- Forum: C++ Development
- Topic: wxAutomationObject CoInitialize has not been called error in wxThread
- Replies: 5
- Views: 912
Re: wxAutomationObject CoInitialize has not been called error in wxThread
@PB Thank you for your assistance though :) @doublemax It was indeed the context! I don't understand why the constructor and Entry() run in a seemingly different contexts, but calling wxOleInitialize() in Entry() did not throw any errors and worked as expected. I presume you meant OnExit()? And in O...
- Mon Aug 24, 2020 12:50 pm
- Forum: C++ Development
- Topic: wxAutomationObject CoInitialize has not been called error in wxThread
- Replies: 5
- Views: 912
Re: wxAutomationObject CoInitialize has not been called error in wxThread
Oh, that makes sense. I didn't know wxWidgets would initialize it for you. Thus I have added wxOleInitialize() and wxOleUnitialize() in my wxThread class constructor and destructor, respectively, and I still get the same error. Calling the actual Windows functions (OleInitialize() and OleUninitializ...