Search found 174 matches

by Wolfgang
Thu Oct 10, 2019 6:24 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 724

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

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

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

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

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

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

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...
by Wolfgang
Sun Sep 29, 2019 4:29 am
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

I'm using windows.

One problem I found in listview, the popup does not get automatically bigger as the initial ctrl, what i need.

Screenshots only later, will be away until tomorrow evening.
by Wolfgang
Sat Sep 28, 2019 7:57 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

in report mode I did get the background visible, so that each item background is only white as big as the item is. there was no other changes, and in overall it was not showing so smooth.
by Wolfgang
Sat Sep 28, 2019 6:31 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

class ListViewComboPopup : public wxListView, public wxComboPopup { public: virtual void Init() wxOVERRIDE { m_value = -1; m_itemHere = -1; // hot item in list } virtual bool Create(wxWindow* parent) wxOVERRIDE { return wxListView::Create(parent, 1, wxPoint(0, 0), wxDefaultSize, wxLC_LIST | wxLC_SI...
by Wolfgang
Sat Sep 28, 2019 6:25 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

I did take it out of the combo example
by Wolfgang
Sat Sep 28, 2019 5:22 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

Thanks for the combo ctrl advice,that works.
Also I have some questions for it.

How can I manage that it will automatically extend to show all items?
And how can I place a line between the colums?
by Wolfgang
Thu Sep 26, 2019 8:01 am
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

Re: wxcombobox with several rows

Not really:

What I want, the selected should stand in the ctrl, like it is by the combobox.
However when i click on it and all the options get shown, it should not only be one column, it should be multiple colums. As there are a lot of values, it should be splitted into more colums.
by Wolfgang
Wed Sep 25, 2019 7:43 pm
Forum: C++ Development
Topic: wxcombobox with several rows
Replies: 17
Views: 841

wxcombobox with several rows

I have a comboboax which is filled with app. 60 items, what I need is that all are shown at once, so it should have multiple columns.

Is that somehow possible?
by Wolfgang
Thu Sep 19, 2019 12:07 pm
Forum: C++ Development
Topic: wxtreectrl get item with description
Replies: 1
Views: 166

wxtreectrl get item with description

I know in a trreevent I get the item Description like that: wxTreeItemId test; test = event.GetItem(); MyTreeItemData *item = (MyTreeItemData *)m_treeCtrl->GetItemData(test); wxString help, help1, help2, help3; wxInt16 helpd1, helpd2, helpd3; help = item->GetDesc(); But now I would need to select th...