Search found 144 matches

by Tapsa
Sun Aug 02, 2015 1:01 pm
Forum: C++ Development
Topic: layout management
Replies: 9
Views: 1843

Re: layout management

Thanks, I'll keep that in mind.
by Tapsa
Sat Aug 01, 2015 9:45 am
Forum: C++ Development
Topic: layout management
Replies: 9
Views: 1843

Re: layout management

I know it's an old thread, but is this achievable?
by Tapsa
Fri Jul 31, 2015 6:48 pm
Forum: C++ Development
Topic: What is the 2.8 equivalent of wxBG_STYLE_PAINT?
Replies: 2
Views: 589

Re: What is the 2.8 equivalent of wxBG_STYLE_PAINT?

Thanks, it worked on my wxPanel.
I hope that this is not just some temporary luck.
by Tapsa
Fri Jul 31, 2015 11:35 am
Forum: C++ Development
Topic: What is the 2.8 equivalent of wxBG_STYLE_PAINT?
Replies: 2
Views: 589

What is the 2.8 equivalent of wxBG_STYLE_PAINT?

I want to use buffered flicker free DC. Documentation advises me to call this, but wxBG_STYLE_PAINT is not in wxWidgets source codes. wxWindow::SetBackgroundStyle(wxBG_STYLE_PAINT); Without calling that, the flicker is obvious and the background of my wxPanel is never cleared. I show graphics in sma...
by Tapsa
Wed Jul 29, 2015 5:14 pm
Forum: C++ Development
Topic: What control to add to box sizer to show wxClientDC?
Replies: 2
Views: 428

Re: What control to add to box sizer to show wxClientDC?

Thanks, I'll try wxPanel.
I assume that wxGenericStaticBitmap is not part of 2.8 version.
by Tapsa
Wed Jul 29, 2015 4:23 pm
Forum: C++ Development
Topic: What control to add to box sizer to show wxClientDC?
Replies: 2
Views: 428

What control to add to box sizer to show wxClientDC?

I can swap the bitmap of a toolbar item, but how do I show bitmap in place of wxStaticText and such? GetToolBar()->SetToolNormalBitmap(ToolBar_Hex, SLPtoBitMap(50705, 0)); wxClientDC dc(this); dc.DrawBitmap(SLPtoBitMap(50705, 1), 0, 0, true); The bitmap flashes in the upper left corner of this (the ...
by Tapsa
Mon Jul 06, 2015 8:35 am
Forum: C++ Development
Topic: How to derive wxVListBox?
Replies: 3
Views: 589

Re: How to derive wxVListBox?

Thanks a lot!
I tried to use DrawText, but it drew everything on the same spot.
by Tapsa
Sun Jul 05, 2015 8:43 pm
Forum: C++ Development
Topic: How to derive wxVListBox?
Replies: 3
Views: 589

How to derive wxVListBox?

From the documentation I understand that I need to implement OnDrawItem and wxVListBox. I have no clue how to implement OnDrawItem. How can I have it return strings, like OnGetItemText with wxListCtrl? Do I need to specify my own colors for selection states as well? I have a working derived class fr...
by Tapsa
Tue Jun 30, 2015 8:55 am
Forum: C++ Development
Topic: Question about wxListCtrl refresh performance
Replies: 2
Views: 611

Re: Question about wxListCtrl refresh performance

:) I forgot that. Though it seems to be as fast so the difference is negligible.
by Tapsa
Tue Jun 30, 2015 8:37 am
Forum: C++ Development
Topic: Question about wxListCtrl refresh performance
Replies: 2
Views: 611

Question about wxListCtrl refresh performance

When I call this, is it actually refreshing items that are not visible, and thus wasting enormous amounts of time?

Code: Select all

list->RefreshItems(list->GetTopItem(), list->GetItemCount() - 1);
I can see some flickering on the wxListCtrl, but it seems to refresh really fast.
by Tapsa
Sun Jun 28, 2015 6:27 am
Forum: C++ Development
Topic: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?
Replies: 8
Views: 1522

Re: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?

Fantastic! :D It seems to fire exactly when I need it to. Not firing on mouse hover :)
by Tapsa
Sat Jun 27, 2015 9:11 pm
Forum: C++ Development
Topic: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?
Replies: 8
Views: 1522

Re: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?

Did you treat it as a wxListEvent or wxCommandEvent? It looks like both can be applied and the result is same. It's time for me to write some wrapper function then. This is my simple list control class. Perhaps it's those style flags :? class AGEListView: public wxListCtrl { public: AGEListView(wxWi...
by Tapsa
Sat Jun 27, 2015 6:57 pm
Forum: C++ Development
Topic: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?
Replies: 8
Views: 1522

Re: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?

While that kinda solves my original question, that event doesn't catch selection changes when deselecting or when selecting many items with shift button down. I was looking for one event to rule them all. I guess I can write a wrapper that connects all the necessary events. During my short affair wi...
by Tapsa
Sat Jun 27, 2015 6:24 pm
Forum: C++ Development
Topic: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?
Replies: 8
Views: 1522

Re: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?

Thanks. I got the next item code to work (though from an event hooked to wxListBox). I get error: 'wxEVT_LIST_ITEM_SELECTED' was not declared in this scope with the following code and I do have <wx/listctrl.h> included. Connect(Graphics_Graphics_ListV->GetId(), wxEVT_LIST_ITEM_SELECTED , wxListEvent...
by Tapsa
Sat Jun 27, 2015 1:55 pm
Forum: C++ Development
Topic: What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?
Replies: 8
Views: 1522

What is the wxListCtrl equivalent of wxEVT_COMMAND_LISTBOX_SELECTED?

And if I want my derived control to save selected items, how can I know that shift key was used to selected several items at once?
I assume that selection event has stored the selected index that I could use, but probably skipping items selected using shift key.