wxListBox when maximized Topic is solved
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
wxListBox when maximized
Hello Folk,
I have a wxListBox item that does not resize when I maximize the main application frame.
I have also placed the listbox on a notebook panel in a box sizer.
I am willing to provide the code if necessary.
Thank You.
I have a wxListBox item that does not resize when I maximize the main application frame.
I have also placed the listbox on a notebook panel in a box sizer.
I am willing to provide the code if necessary.
Thank You.
Last edited by archman007 on Tue Jan 14, 2020 11:33 pm, edited 1 time in total.
Re: wxListBox when mazimized
Does it resize when you resize the window manually?
And yes, please show some code, especially everything sizer-related.
And yes, please show some code, especially everything sizer-related.
Use the source, Luke!
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when mazimized
The app does not resize the window manually nor on maximize.
I am attaching the associated project.
Thanks
I am attaching the associated project.
Thanks
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when mazimized
I am consistently getting a HTTP error when I try to add attachments. I have tried several browsers. How do I overcome this.
Re: wxListBox when mazimized
No idea, i never had this. Put the code on pastebin and post the link here. It shouldn't be that much anyway.archman007 wrote: ↑Tue Jan 14, 2020 2:24 pm I am consistently getting a HTTP error when I try to add attachments. I have tried several browsers. How do I overcome this.
Use the source, Luke!
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when mazimized
Paste bin code is https://pastebin.com/PQke2MkR
Please let me know if additional information is required.
Thank You
Please let me know if additional information is required.
Thank You
Re: wxListBox when mazimized
Oh dear, a resource file is probably the worst to analyze by just reading it...
I can't spot anything wrong right away (but it's easy to miss something somewhere), but my first suspicion would be the "OnPanel1Resize" size event handler. You need to call event.Skip() inside, otherwise the sizer layout code will not be executed.
I can't spot anything wrong right away (but it's easy to miss something somewhere), but my first suspicion would be the "OnPanel1Resize" size event handler. You need to call event.Skip() inside, otherwise the sizer layout code will not be executed.
Use the source, Luke!
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when mazimized
I apologize for assuming you had a way to work with just the wxs file.
I ma attaching a more complete zip file. If you need additional code I will zip the entire project.
Please try this.
https://pastebin.com/2wzguUmU
I will persist until I meet all requirements.
Thank You
I ma attaching a more complete zip file. If you need additional code I will zip the entire project.
Please try this.
https://pastebin.com/2wzguUmU
I will persist until I meet all requirements.
Thank You
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when maximized
doublemax.
As soon as i put the envnt.Skip() in the onResize event program was working as desired.
No further need for additional debugging and I accepted your answer.
As soon as i put the envnt.Skip() in the onResize event program was working as desired.
No further need for additional debugging and I accepted your answer.
Re: wxListBox when maximized
Good. Do you actually need the resize handler for anything? I assume not. In that case you should remove/disable it completely. Otherwise you might be starting to put that code into every window, which is not necessary.archman007 wrote: ↑Tue Jan 14, 2020 11:45 pm As soon as i put the envnt.Skip() in the onResize event program was working as desired.
Use the source, Luke!
- archman007
- Experienced Solver
- Posts: 55
- Joined: Mon Jan 13, 2020 1:06 pm
- Location: Jacksonville, Fl 32210
- Contact:
Re: wxListBox when maximized
Next on my list is to remove the Resize handlers. Because I finally achieved the functionality I desire I am a feeling better about my project.
Thanks
Thanks