Search found 34 matches

by JOHI
Sun Mar 10, 2024 10:06 am
Forum: C++ Development
Topic: wxStatusbar not updated with help text by wxMenu as popup.
Replies: 5
Views: 214

Re: wxStatusbar not updated with help text by wxMenu as popup.

Hello,
Are you sure this is an issue and not as working as designed?
Br,
by JOHI
Tue Mar 05, 2024 8:37 pm
Forum: C++ Development
Topic: wxStatusbar not updated with help text by wxMenu as popup.
Replies: 5
Views: 214

Re: wxStatusbar not updated with help text by wxMenu as popup.

System: Windows 11 WxWidgets: 3.2.4. TreeCtrlExample: Same issue; a help text appears in wxStatusbar only when the same menu option is provided via main menu. file_menu->Append(TreeTest_About, "&About jogi","This comment is shown"); The above line is required to make: void My...
by JOHI
Sun Mar 03, 2024 7:44 pm
Forum: C++ Development
Topic: wxStatusbar not updated with help text by wxMenu as popup.
Replies: 5
Views: 214

wxStatusbar not updated with help text by wxMenu as popup.

Hello, My wxStatusbar is updated with the correct help text if wxMenu is part of my frame window main menu. However if I create a wxMenu for my tree control and use it as a popup, the statusbar remains empty. Is there a way to reflect the help text of the menu items in the wxStatusbar when wxMenu is...
by JOHI
Sun Feb 25, 2024 7:35 am
Forum: Compiler / Linking / IDE Related
Topic: CDB - Code::blocks - No longer compatible?
Replies: 2
Views: 166

CDB - Code::blocks - No longer compatible?

I reach out to the forum as the Code::Blocks forum was unable to answer my question. I develop VC2019 Win11 WxWidgets-3.2.4 Code::Blocks I use basically as a resources workshop (wxSmith for design of dialogs) I am able to compile my project under Code::Blocks where I added the VC2019 compiler. If I ...
by JOHI
Sat Feb 17, 2024 8:15 pm
Forum: C++ Development
Topic: Broadcast of wxCommandEvent to all windows in application.
Replies: 3
Views: 228

Re: Broadcast of wxCommandEvent to all windows in application.

@pb & @utelle
Thank you very much for the swift response confirming what expected based on some code analysis.
Best regards,
Johi.
by JOHI
Sat Feb 17, 2024 8:45 am
Forum: C++ Development
Topic: Broadcast of wxCommandEvent to all windows in application.
Replies: 3
Views: 228

Broadcast of wxCommandEvent to all windows in application.

I wonder what the best way is to broadcast a wxCommandEvent message to all (top) windows in the application. (I assume it is possible but did not find the solution in the documentation until now) wxEvent.Skip() is a way to make sure the message is being processed by the next handler but until now I ...
by JOHI
Sat Feb 03, 2024 9:05 am
Forum: Compiler / Linking / IDE Related
Topic: Error cannot open vc_lib.obj with build
Replies: 8
Views: 11567

Re: Error cannot open vc_lib.obj with build

Just had the same problem and solved it:
One should put reference to lib directories in "Additional Library Directories" and not in "Additional Dependencies" section of Linker settings in Visual Studio.
Best regards,
Johi.
by JOHI
Sun Apr 17, 2022 6:51 pm
Forum: C++ Development
Topic: wxRegEx fails on tabs
Replies: 5
Views: 675

Re: wxRegEx fails on tabs

wxRegEx do the same as regex101 isn't No they seem to do not, that is the essence of what I fail to understand. so: Reg101: \t as regular expression. test string: tab (copy paste character notepad) => one match. I try to make my point more clear using Raw string for the regular expression: Then: wx...
by JOHI
Sun Apr 17, 2022 12:19 pm
Forum: C++ Development
Topic: wxRegEx fails on tabs
Replies: 5
Views: 675

Re: wxRegEx fails on tabs

@Kvaz1r: Thank you for the insight: a workaround I already found and implemented. But I stil do not understand wy wxRegEx fails to process \\t? \\t results in a regular expression containing \t after compilation. I expect \t then (IMHO) be processed by wxRegEx as placeholder for a tab character. If ...
by JOHI
Sun Apr 17, 2022 6:12 am
Forum: C++ Development
Topic: wxRegEx fails on tabs
Replies: 5
Views: 675

wxRegEx fails on tabs

Regex101 accepts a string with only a tab in it as compliant with the expression ^\t$. However, the following code fails to do the same. buf = _T("\t"); wxRegEx expr(_T("^\\t$")); if (!expr.Matches(buf)) return false; Tried a number of variants. As soon as I introduce tabs, match...
by JOHI
Sun Mar 13, 2022 8:17 pm
Forum: C++ Development
Topic: wxMenubar updateUI handler for main menus
Replies: 5
Views: 571

Re: wxMenubar updateUI handler for main menus

Thanks for the tip.
This solves my problem.
Best regards,
Johi.
by JOHI
Sun Mar 13, 2022 9:37 am
Forum: C++ Development
Topic: wxMenubar updateUI handler for main menus
Replies: 5
Views: 571

Re: wxMenubar updateUI handler for main menus

Hello, Apologies for the unclear question. - user opens/selects document 1 => user should see menu choices 1 & 2 - user opens/selects document 2 =< user should see menu choices 3 & 4 Update of menu structure during load => tree control and other windows flicker. My solution: only update menu...
by JOHI
Sun Feb 20, 2022 7:21 pm
Forum: C++ Development
Topic: Avoid message queue flooding
Replies: 7
Views: 687

Re: Avoid message queue flooding

I remember that Petzold wrote may years ago that windows combines the pending WM_PAINT for a single window. As I was not sure, i looked it up and found a post illustrating exactly that : "https://stackoverflow.com/questions/25713183/wm-paint-message-is-queued-message-or-nonqueued-messages"...
by JOHI
Sun Feb 20, 2022 10:03 am
Forum: C++ Development
Topic: wxMenubar updateUI handler for main menus
Replies: 5
Views: 571

wxMenubar updateUI handler for main menus

I need to display the a submenu (m_file_info in code below) of a wxMenuBar created dynamically. wxMenu objects attached to the wxMenubar have EVT_UPDATE_UI handlers to update their attached menu status. But what if one wants to change the structure of the submenu once the user selects the wxMenubar?...
by JOHI
Sun Feb 20, 2022 9:46 am
Forum: C++ Development
Topic: Does wxTimer run on a different Thread than the UI?
Replies: 2
Views: 349

Re: Does wxTimer run on a different Thread than the UI?

Your main thread has an event handler. The event handler processes messages from a que. The timer event comes on that que as all others do. So you IMHO you will not have synchronisation problems. However, i think it makes more sense to create your timer object in your main thread. It might be good t...