Search found 15681 matches

by doublemax
Mon Mar 08, 2021 7:25 pm
Forum: Platform Related Issues
Topic: Changing wxToggleButton behaviour
Replies: 17
Views: 256

Re: Changing wxToggleButton behaviour

Sorry, i'm out of ideas. I don't know anything about GTK, so i don't know what exactly this assert message indicates. Try opening a bug report at http://trac.wxwidgets.org
by doublemax
Mon Mar 08, 2021 6:45 pm
Forum: Platform Related Issues
Topic: Changing wxToggleButton behaviour
Replies: 17
Views: 256

Re: Changing wxToggleButton behaviour

The sample is fine, thx. But unfortunately it doesn't crash for me, neither under Windows, nor under Ubuntu. But i tested with the latest wxWidgets from Github.

Do you still get the same assert with the same call stack?
What happens if you just remove the mp_button->Update(); call?
by doublemax
Sun Mar 07, 2021 10:02 pm
Forum: C++ Development
Topic: Problem with handling buttons with wxID_APPLY.
Replies: 6
Views: 86

Re: Problem with handling buttons with wxID_APPLY.

If the call to ShowModal() returns, the dialog will be closed. If you want to perform some action when the user clicks apply, but don't want the dialog to close, you need to do it inside the dialog code.
by doublemax
Sun Mar 07, 2021 9:09 pm
Forum: C++ Development
Topic: Problem with handling buttons with wxID_APPLY.
Replies: 6
Views: 86

Re: Problem with handling buttons with wxID_APPLY.

Code: Select all

this->EndModal(wxID_APPLY);
You need to call this when the user clicks on the "Apply" button and you want to close the dialog.
by doublemax
Sun Mar 07, 2021 8:18 pm
Forum: C++ Development
Topic: Infinite event loop
Replies: 4
Views: 56

Re: Infinite event loop

What can cause a infinite loop of EVT_DATAVIEW_SELECTION_CHANGED?
Doing something that causes another EVT_DATAVIEW_SELECTION_CHANGED event.
by doublemax
Sun Mar 07, 2021 5:41 pm
Forum: C++ Development
Topic: Problem with handling buttons with wxID_APPLY.
Replies: 6
Views: 86

Re: Problem with handling buttons with wxID_APPLY.

The problem lies in the dialog code, not the part you're showing.

For values other than wxID_OK and wxID_CANCEL, you need to set the return value of ShowModal() explicitly with wxDialog::EndModal().
https://docs.wxwidgets.org/trunk/classw ... fafcfb21f0
by doublemax
Sun Mar 07, 2021 12:14 pm
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 141

Re: I cant open two different windows

hi i dont want to creare new thread. i want to ask in wxwidets its some function like show messages ? i want to create something like messenger and i want wxTextCtrl send to some global chat.. where should i start ? That's a very broad question. You can start by studying the "sockets" sample that c...
by doublemax
Sat Mar 06, 2021 10:15 pm
Forum: C++ Development
Topic: Cannot change wxMenu item label.
Replies: 12
Views: 205

Re: Cannot change wxMenu item label.

By the time OnSampleListViewContextMenuSelect is executed, the popup menu is already closed to about to be closed. It doesn't make sense to make any changes to the menu there. In OnShowSampleListViewContextMenu you must check if the item is already favorited or not, and dynamically decide which menu...
by doublemax
Sat Mar 06, 2021 5:31 pm
Forum: C++ Development
Topic: Multi touch screen
Replies: 4
Views: 813

Re: Multi touch screen

https://docs.wxwidgets.org/trunk/classwx_gesture_event.html I only know that the MSW implementation doesn't work at all, i don't know about the state under the other platforms. https://groups.google.com/g/wx-dev/c/JdeuH95_bGQ/m/tcJCXMZUDgAJ Check the "event" sample that comes with wxWidgets, it has ...
by doublemax
Sat Mar 06, 2021 2:32 pm
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 141

Re: I cant open two different windows

thanks now its working and what thoes mean ? this ID ? its just ID for button ? An "id" is used to uniquely "id"entify an object, in this case a wxButton. EVT_BUTTON(ID_BUTTON_REGISTER, AmiFrame::register_button) wxButton *register_button = new wxButton(this, ID_BUTTON_REGISTER, "Register", wxPoint...
by doublemax
Sat Mar 06, 2021 10:32 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 141

Re: I cant open two different windows

i try to with wxid any and its same login opening register everytime but i domt know why No, you should *not* use wxID_ANY. wxID_ANY in an event table, it means "matches for any ID". And when passing it to constructor, it means "create a new ID". Where ever idMenuQuit and idMenuAbout are defined, j...
by doublemax
Sat Mar 06, 2021 12:45 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 141

Re: I cant open two different windows

EVT_BUTTON(wxID_ANY, AmiFrame::register_button) wxButton *register_button = new wxButton(this, wxID_ANY, "Register", wxPoint(400, 300), wxSize(70,50), 0); You need to use a unique ID instead of wxID_ANY. I would also suggest to use a different ID for the login button, wxID_OPEN does not really fit ...
by doublemax
Thu Mar 04, 2021 9:08 pm
Forum: C++ Development
Topic: CommondDialog from DLL
Replies: 40
Views: 382

Re: CommondDialog from DLL

It seems that in your screenshot, the "Show info" button has Windows95 look (i.e., a 3D one) but the font picker has the proper themed (i.e., flat) look? Are my eyes deceiving me? I'm not sure, but i think this deserves more attention, especially since the original post mentions a "CommDlgExtendedE...
by doublemax
Thu Mar 04, 2021 7:18 pm
Forum: C++ Development
Topic: Advice on using the new keyword.
Replies: 4
Views: 87

Re: Advice on using the new keyword.

ONEEYEMAN wrote:
Thu Mar 04, 2021 6:19 pm
MS ID system will let ypou create only MAX_INT number of them.
The IDs are not the main problem, the 10000 GDI handle limit is ;)
by doublemax
Thu Mar 04, 2021 7:16 pm
Forum: Platform Related Issues
Topic: Changing wxToggleButton behaviour
Replies: 17
Views: 256

Re: Changing wxToggleButton behaviour

Your definition of "minimal" is slightly different than mine ;) "minimal" means it should not contain anything that's not needed to reproduce the issue, e.g. the whole wxTimer stuff. And we also don't know yet if setting any (good) bitmap can trigger the assert, or if it only happens when setting a ...