Search found 122 matches

by Wolfgang
Mon Oct 21, 2019 6:07 pm
Forum: C++ Development
Topic: Focus problem
Replies: 2
Views: 26

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: 76

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: 76

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: 84

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: 76

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: 157

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: 157

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: 157

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.
by Wolfgang
Thu Oct 10, 2019 6:24 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

Re: itemcoloring listview

Ok, managed the report view, but is it somehow possible to set item 1 column 1 on black colour and item 1 column 2 on blue, and then item 2 column1 on green and then item 2 column 2 on red?
by Wolfgang
Thu Oct 10, 2019 3:17 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

Re: itemcolorin listview

No, reportview did not work, with it. Just caused problems.

Is there any way that some of the items, have other colours?

Or only in with wxLC_REPORT?
by Wolfgang
Thu Oct 10, 2019 12:19 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

itemcoloring listview

Hello I tried a wxcombopopup with a listview everything works fine. Now I tried to colour a item, also it does not show an error it also does not work either wxString strcolor = "3366FF"; wxColour ncol, acol, nocol; ncol.Set("#" + strcolor); iface_bun->SetItemTextColour(count - 1, ncol);
by Wolfgang
Thu Oct 03, 2019 9:34 am
Forum: C++ Development
Topic: SetBackgroundColour for wxStatiticText
Replies: 2
Views: 67

Re: SetBackgroundColour for wxStatiticText

PB wrote:
Thu Oct 03, 2019 7:08 am
BTW, do you think that posting your errors in German is generally useful on an English speaking forum?

Sorry, I just copied and pasted it. And i read english almost like I read german, so that's why it did not even jump to my eyes.
by Wolfgang
Thu Oct 03, 2019 6:49 am
Forum: C++ Development
Topic: SetBackgroundColour for wxStatiticText
Replies: 2
Views: 67

SetBackgroundColour for wxStatiticText

Inside the creation I use the following, and it is working m_c1 = new wxStaticText(panel, Bu_c1, sp_text[96]); wxColour col; col.Set("#" + strcolor); if (col.IsOk()) { m_c1->SetOwnBackgroundColour(col); } Inside the eventhandlerfunction it does not work. First the relevant code for the function: m_c...
by Wolfgang
Tue Oct 01, 2019 4:24 am
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 232

Re: wxcombobox with several rows

Thanks for SetColumnWidth(-1, someWidth) I missed the -1 possibility. I also tried it with the report mode, in report mode, I get the item with small white background the rest of the item width is gray. If the mouse goes through the items it selects the item with blue, but doesnot set back the blue ...
by Wolfgang
Mon Sep 30, 2019 7:46 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 232

Re: wxcombobox with several rows

Ok, I managed it with a normal lis and calculated the space for the popup, do not have a line in between, but that is not sooo importend. What does not look sooo good, is that the standard lenth of the item cannot be made smaller at least I did not find anything which works. And if there is only sta...