Search found 48 matches

by kathbeau
Tue Apr 02, 2019 8:48 pm
Forum: C++ Development
Topic: Still want to tell wxScrolledWindow to scroll controls into view?
Replies: 4
Views: 134

Re: Still want to tell wxScrolledWindow to scroll controls into view?

Normally i would suggest a wxHtmlListBox or wxSimpleHtmlListBox for your case. But the problem in the GUI is the wxTextCtrl (any editable control would be a problem). Can you get rid of it? As this seems to be medical/patient data, i guess it's important that no data gets changed accidentally. Coul...
by kathbeau
Tue Apr 02, 2019 6:40 pm
Forum: C++ Development
Topic: Still want to tell wxScrolledWindow to scroll controls into view?
Replies: 4
Views: 134

Re: Still want to tell wxScrolledWindow to scroll controls into view?

You should keep in mind that Windows (not wxWidgets) has a limit of 10000 handles per application. Yikes! I did not know that... and it is entirely possible that a use case could exceed that limit. (I have a configuration that defines 803 dictionary items, leading to 803 panels in the notebook. In ...
by kathbeau
Tue Apr 02, 2019 3:56 pm
Forum: C++ Development
Topic: Still want to tell wxScrolledWindow to scroll controls into view?
Replies: 4
Views: 134

Still want to tell wxScrolledWindow to scroll controls into view?

My wxScrolledWindow contains wxPanels, each of which holds a collection of wxStaticText and wxTextCtrl objects. This collection can include hundreds of panels. The user has the ability to open a context menu on the text control of any of the panels and instruct it to move the panel to the top of the...
by kathbeau
Sun Mar 31, 2019 12:28 am
Forum: C++ Development
Topic: How to tell wxScrolledWindow to scroll a control into view?
Replies: 4
Views: 106

Re: How to tell wxScrolledWindow to scroll a control into view?

Okay, that helped. At least the scrollbar isn't misbehaving... and this tip is likely going to help me in other areas.

Thank you, doublemax!
by kathbeau
Sat Mar 30, 2019 8:27 pm
Forum: C++ Development
Topic: How to tell wxScrolledWindow to scroll a control into view?
Replies: 4
Views: 106

Re: How to tell wxScrolledWindow to scroll a control into view?

Thank you... I had the code arranged that way at one point, and just now put it back. But it did not change the effect. A related question: I have found that grabbing a side of the form and moving it, even just a tiny bit, "fixes" everything. I tried following an OnSize event handler down into the w...
by kathbeau
Sat Mar 30, 2019 6:37 pm
Forum: C++ Development
Topic: How to tell wxScrolledWindow to scroll a control into view?
Replies: 4
Views: 106

How to tell wxScrolledWindow to scroll a control into view?

I have a wxScrolledWindow with a wxBoxSizer (wxVertical), onto which I have added hundreds of sub-panels, each containing multiple controls. With help from the people here, I have successfully implemented a feature that lets a user move selected sub-panels to the top of the scrolled window. The sub-...
by kathbeau
Sat Mar 16, 2019 1:02 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

Re: How to change z-order of wxTextCtrl? SOLVED

Here was my two-fold problem: 1. MoveBefore/AfterInTabOrder works as a swap mechanism; I was attempting to perform a jump. 2. The method I was using to identify sibling panels wasn't right... note the use of display_panel->GetPrevSibling. But now I have everything working as I want it to. void TXMLD...
by kathbeau
Fri Mar 15, 2019 9:47 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

Re: How to change z-order of wxTextCtrl?

Okay, so I have changed the custom sizer to a custom panel: class TDisplayDataPanel : public wxPanel And I place each instance in the same wxBoxSizer I was using when the custom object was a sizer. Now everything is working exactly as I had it working before... good! And I still cannot get the tab o...
by kathbeau
Fri Mar 15, 2019 9:01 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

Re: How to change z-order of wxTextCtrl?

I'm not sure you understand the purpose of the sizer. Sizer is not a window. It does not have anything to display. So, why do you need to have extra class to represent sizer? I do understand the concept, but I'm still getting the hang of how all the pieces fit together. FWIW, despite a similar warn...
by kathbeau
Fri Mar 15, 2019 7:45 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

Re: How to change z-order of wxTextCtrl?

And thats why I'd like to see how you created those controls and the dialog/frame in general. Well, it's a lot of code, but here you go: First is the class that creates the custom sizers. #ifndef DISPLAYDATASIZER_H #define DISPLAYDATASIZER_H #pragma once #include <wx/sizer.h> class TXMLDataForm; cl...
by kathbeau
Fri Mar 15, 2019 6:06 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

Re: How to change z-order of wxTextCtrl?

The window you want to change "tab order"...must be siblings, they must have the same parent. Right. But at creation they are being assigned some sort of z-order, because when I build the MyCustomSizer objects and place them in the main sizer, pressing the Tab key advances down through the sizers' ...
by kathbeau
Fri Mar 15, 2019 5:13 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 256

How to change z-order of wxTextCtrl?

I have a wxBoxSizer into which I add many instances of custom wxBoxSizer objects, each of which contains labels and one wxTextCtrl. I have implemented a feature that lets the user right-click on one of the custom objects' wxTextCtrl and select "move item to the top". Wonder of wonders, it worked! Bu...
by kathbeau
Thu Mar 14, 2019 10:29 pm
Forum: C++ Development
Topic: MyTextCtrl context menu is followed by a default pop menu
Replies: 2
Views: 92

Re: MyTextCtrl context menu is followed by a default pop menu

Don't call event.Skip() in OnPopupMenu().
Oh good grief. I could have sworn I tried that. Thank you!

Kathleen
by kathbeau
Thu Mar 14, 2019 8:57 pm
Forum: C++ Development
Topic: MyTextCtrl context menu is followed by a default pop menu
Replies: 2
Views: 92

MyTextCtrl context menu is followed by a default pop menu

I have a wxScrolledWindow, with a wxBoxSizer. I create a series of custom wxBoxSizer objects, each with multiple controls, and set these into the scrolled window sizer. Each of these custom objects represents a data item, including its structure, rules and current value. One of the controls on the c...
by kathbeau
Fri Mar 08, 2019 9:32 pm
Forum: C++ Development
Topic: Too many calls to wxGenericProgressDialog.Pulse slows processing
Replies: 17
Views: 371

Re: Too many calls to wxGenericProgressDialog.Pulse slows processing

So as not to look like a slacker who just posts a question and never lets you know how it turned out, I want to say thank you to PB and doublemax for the code and commentary. I decided to simplify and create my own "progress dialog" which includes a Pulse(...) function that allows me to handle Skip ...