Search found 8 matches

by curtisnewton
Sat Sep 06, 2014 9:10 am
Forum: C++ Development
Topic: dynamic submenu id?
Replies: 3
Views: 887

Re: dynamic submenu id?

doublemax wrote:You shouldn't use the same id for multiple menu items. Use wxID_ANY, this should assign a new id internally. Then in the event handler you can get the current menu item using event.GetId() and wxMenuBar::FindItem().
ok thx

but using wxID_ANY then how do I know witch ID is assigned to witch menu ?
by curtisnewton
Fri Sep 05, 2014 8:10 pm
Forum: C++ Development
Topic: dynamic submenu id?
Replies: 3
Views: 887

dynamic submenu id?

hello

I create a menu with many submenus (with the same ID) in a for loop (menu is created dyamicaly)
but in the event, how do I differentiate them as the event occur?
I tried GetString() but it returns an empty string
GetInt() returns always 1

thanks
by curtisnewton
Fri Aug 29, 2014 6:03 pm
Forum: C++ Development
Topic: wxListCtrl SetFont does not work
Replies: 4
Views: 830

Re: wxListCtrl SetFont does not work

ok for those interested : fc-list
by curtisnewton
Fri Aug 29, 2014 5:53 pm
Forum: C++ Development
Topic: wxListCtrl SetFont does not work
Replies: 4
Views: 830

Re: wxListCtrl SetFont does not work

Check the font with wxFont::IsOk(). Are you sure the font with the exact name "Courier 10 Pitch" is installed on your system? For example i don't have it on mine. I'll check it out is there a way to have a list of the fonts ? I use linux I have no idea where they are stored I am more used to window...
by curtisnewton
Fri Aug 29, 2014 5:10 pm
Forum: C++ Development
Topic: wxListCtrl SetFont does not work
Replies: 4
Views: 830

wxListCtrl SetFont does not work

hello, I cant change the font of the list ctrl with this code wxFont font(9, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,wxFONTWEIGHT_NORMAL, false, wxT("Courier 10 Pitch")); listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT ); listCtrl ->SetFont(font); any idea w...
by curtisnewton
Thu Aug 28, 2014 4:17 pm
Forum: C++ Development
Topic: how to force sizer to refresh after children resize
Replies: 2
Views: 961

Re: how to force sizer to refresh after children resize

ok i figured it out

i added an extra sizer and i uses setmin/maxsize for the wxpanel
by curtisnewton
Thu Aug 28, 2014 2:14 pm
Forum: General Forum Issues
Topic: post 39989 deleted, why
Replies: 1
Views: 2044

post 39989 deleted, why

my post has just been approved, i got no time to modify it that it is already gone

why ?
by curtisnewton
Thu Aug 28, 2014 2:02 pm
Forum: C++ Development
Topic: how to force sizer to refresh after children resize
Replies: 2
Views: 961

how to force sizer to refresh after children resize

Hello, as i want do have a wxPanel component to be resized on image contentmodification, it works but the parent sizers stays the same so i request the parent to do a layout but the sizer dont change size upon new children size (then the wxPanel is not refreshing anymore) void CameraPreview::OnPaint...