Search found 174 matches

by Wolfgang
Tue Oct 22, 2019 3:21 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

As said everything works as long as I do not use the bind, with the bind there is a problem.
by Wolfgang
Tue Oct 22, 2019 3:13 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

MyFramebearb::MyFramebearb(wxWindow* parent, const wxString& title, int x, int y, int w, int h): wxFrame(parent, wxID_bearb, title, wxPoint(x, y), wxSize(w, h)) { panel = new wxScrolledWindow(this, wxID_ANY, wxPoint(x, y), wxSize(w, h)); mybuild = new wxScrolledWindow(panel, wxID_ANY, wxPoint(x, y)...
by Wolfgang
Tue Oct 22, 2019 2:13 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

inside mainprogramm I open the frame like this:

Code: Select all

                  frame6 = new MyFramebearb(this, sp_text[58], bearbx, bearby, 1530, 700);
               
                    frame6->Show(true);
by Wolfgang
Tue Oct 22, 2019 2:12 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

inside bearb.h
The constructor

Code: Select all

MyFramebearb(wxWindow * parent, const wxString &title, int x, int y, int w, int h);
by Wolfgang
Tue Oct 22, 2019 1:54 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

Code: Select all

MyFramebearb::MyFramebearb(wxWindow * parent, const wxString &title, int x, int y, int w, int h) :
	wxFrame(parent, wxID_bearb, title, wxPoint(x, y), wxSize(w, h))
{
Further, it does not through the exception by the bind, it throughs it by showing the form and then by clicking on the items.
by Wolfgang
Tue Oct 22, 2019 11:59 am
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

To problem1: my_bib[count + addc * 10] = new wxTextCtrl(mybuild, wxID_ANY, myword[count + addc * 10], wxDefaultPosition, wxSize(150, 25), wxTE_PROCESS_ENTER); my_bib[count + addc * 10]->Bind(wxEVT_SET_FOCUS, &MyFramebearb::Onsetf,this); in windows.h operator wxWindowID() const { return m_id; //HERE ...
by Wolfgang
Tue Oct 22, 2019 10:36 am
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Re: Focus problem

To Problem 2: What I forgot to write is, that the scrolling with the mouse wheel should work again, and that does not work. Solved it by setting the focus to the cancel button, and not to the panel, then it works. What I guess, any object which is not above( hierarchy wise) of the current textctrl w...
by Wolfgang
Mon Oct 21, 2019 6:07 pm
Forum: C++ Development
Topic: Focus problem
Replies: 15
Views: 1268

Focus problem

EVT_SET_FOCUS(MyFramebearb::Onsetf) EVT_TEXT_ENTER(wxID_ANY,MyFramebearb::Ontenter) void Onsetf(wxFocusEvent& event); void Ontenter(wxCommandEvent& event); void MyFramebearb::Onsetf(wxFocusEvent& event) { wxInt16 count; count = 0; } while (event.GetId()!= my_bib[count]->GetId()&&count<200){} I have...
by Wolfgang
Wed Oct 16, 2019 5:42 pm
Forum: C++ Development
Topic: own Popup for wxcomboctrl (wxPanel)
Replies: 3
Views: 695

Re: own Popup for wxcomboctrl (wxPanel)

The problem here was same id for comboctrl and for popup, that did not work. After I found that it worked, rest was just test and find the right solution, now it works, with multiple optional rows. In general it helpd me already that I could read that this code was on the right track and should work...
by Wolfgang
Sun Oct 13, 2019 11:08 am
Forum: C++ Development
Topic: own Popup for wxcomboctrl (wxPanel)
Replies: 3
Views: 695

Re: own Popup for wxcomboctrl (wxPanel)

It is not showing an error,but the expected behaviour is not comming as well.
by Wolfgang
Sun Oct 13, 2019 8:40 am
Forum: C++ Development
Topic: '&': illegal operation on bound member function expression
Replies: 5
Views: 655

Re: '&': illegal operation on bound member function expression

There is no error shown, but it does not show the popup window.
Just thinking,could it be that another event catches the click, have to check that one.
by Wolfgang
Sun Oct 13, 2019 5:20 am
Forum: C++ Development
Topic: own Popup for wxcomboctrl (wxPanel)
Replies: 3
Views: 695

own Popup for wxcomboctrl (wxPanel)

I have problem the popup does not all the time show, and if it shows it only appears for a glimpse. With this I define the popup. lv_buname = new wxComboCtrlWithCustomPopupAnim(); lv_buname->SetTextCtrlStyle(wxTE_RIGHT); lv_buname->Create(tb1); lv_buname->UseAltPopupWindow(); lv_buname->SetId(ID_lv_...
by Wolfgang
Fri Oct 11, 2019 9:56 am
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 724

Re: itemcoloring listview

htmlwindow could work, but I had already an idea with making my own listview on a sizer on a panel for it, meaning a reportview,and if more than 30 items,it will create another listview beside the previous on the same sizer. Should work. But is most likely the difficult part.
by Wolfgang
Fri Oct 11, 2019 6:04 am
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 724

Re: itemcoloring listview

The solution of the link is ok, but only working for mSW. What I really need, colouring of items in different colours. I have only one set of items, so more colums are only neccessary for better view, and not because my data comes of more colums. So in fact I have for example the numbers 1 to 70 all...
by Wolfgang
Fri Oct 11, 2019 5:55 am
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 724

Re: itemcoloring listview

ONEEYEMAN wrote:
Thu Oct 10, 2019 9:00 pm
Hi,
What kind of problems? Can you be more descriptive?
Also - what platform are you testing it under?

Thank you.
Solved the first problems I had with reportview, but not the colouring problem, will check the link now.