Search found 102 matches

by deepti
Thu Aug 09, 2018 7:45 pm
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 380

Re: wxNotebook with 4 pages - how to manage change in height?

Hi,

Yes, every page has an associated sizer. And the notebook itself also has a sizer associated.

Thank you!
by deepti
Thu Aug 09, 2018 7:16 pm
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 380

wxNotebook with 4 pages - how to manage change in height?

I have an instance of "wxNotebook", with 4 pages in it. Previously, all 4 pages were adjusted to be of the same height by manipulating the height of the controls in each page. But now, I added a few more controls in one of the pages. This increased the height of the remaining 3 pages as well. But it...
by deepti
Fri Jul 27, 2018 2:35 pm
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Yes, I just wanted the panes to extend to the right edge of the window. Got that done, by referring to the code you shared.
Thank you so much @doublemax. You made my life really simple!!
by deepti
Thu Jul 26, 2018 1:45 pm
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Sure, I get your point. Will make changes accordingly. But as you mentioned, the width of the wxCollapsiblePane instance does not change still. Any ideas on that please. I have called the SetMinimumWidth on the collapsible pane directly, it's window (GetPane()) and the sizer. But none of that is hel...
by deepti
Thu Jul 26, 2018 9:45 am
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Thank you for your reply. "Did you try calling SetMinSize() for the wxCollapsiblePane itself?" --yes, I have tried that as well. It does set the initial (when not expanded) width correctly. But when expanded, the size remains the same. It does not show the controls correctly as seen in the screensho...
by deepti
Thu Jul 26, 2018 6:44 am
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Yes, I thought as much too. Thank you for confirming. One more question I now have is, how I can set the minimum width of the wxCollapsiblePane? By calling the SetMinSize(400, 0) function on the sizer containing the wxCollapsiblePane instance, it works fine when I expand the pane. The width is set t...
by deepti
Wed Jul 25, 2018 6:33 am
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Thank you @doublemax!!!! You are a savior!!! You saved my day!! Please accept my greatest thanks :-)) "You should know that during a Layout() call, it's possible that there are size events happening" ---this was it!! I was trying to set the new scroll position before the call to Layout(). Since, tha...
by deepti
Tue Jul 24, 2018 10:21 am
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Re: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Thank you again for your reply. Please find attached the minimal sample .cpp and .h files. Also, I have recorded a video showing the repainting issue. The video can be found at the link below: https://drive.google.com/file/d/1u_55NCgSpGuAUG4fAl9GjIKxLCjOptUG/view?usp=sharing Please do help! Thanks a...
by deepti
Mon Jul 23, 2018 4:37 am
Forum: C++ Development
Topic: Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances
Replies: 12
Views: 683

Refresh/Repainting issue - wxScrolledWindow with many wxCollapsiblePane instances

Hi All, I have my own class "AGE_ScrolledWindow", derived from wxScrolledWindow. Then there is an "Add" button. On click of this button, I add an instance of "wxCollapsiblePane". So, when the user clicks the "Add" button many times, several instances of "wxCollapsiblePane" are created. When a new "w...
by deepti
Thu Jul 19, 2018 6:42 am
Forum: C++ Development
Topic: wxScrolledWindow - scrollbar thumb position staying at the top always
Replies: 4
Views: 304

Re: wxScrolledWindow - scrollbar thumb position staying at the top always

Thank you for your reply @doublemax. I have my own class "AGE_ScrolledWindow", derived from wxScrolledWindow. And have implemented the following in it's OnSize handler. With this, it is scrolling to the bottom whenever a new control is added. void AGE_ScrolledWindow::OnSize(wxSizeEvent& Event) { wxS...
by deepti
Wed Jul 18, 2018 6:21 am
Forum: C++ Development
Topic: wxScrolledWindow - scrollbar thumb position staying at the top always
Replies: 4
Views: 304

Re: wxScrolledWindow - scrollbar thumb position staying at the top always

@doublemax, thank you for your reply. I need the scrollbar thumb position to be updated whenever an "Add" button is clicked, that is, when new controls are added to the wxScrolledWindow instance. Please note that the thumb size is getting updated. Only the position always stay at the top of the scro...
by deepti
Tue Jul 17, 2018 5:45 pm
Forum: C++ Development
Topic: wxScrolledWindow - scrollbar thumb position staying at the top always
Replies: 4
Views: 304

wxScrolledWindow - scrollbar thumb position staying at the top always

Hi All, I have a wxScrolledWindow instance, where I need to dynamically add controls. So, the size of the window changes dynamically. The vertical scrollbar appears, and when new controls are added to the wxScrolledWindow instance, the thumb size also changes. However, the thumb always remains at th...