Search found 1503 matches

by catalin
Thu Jun 06, 2019 1:00 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl: Getting data as html, copy html data to clipboard
Replies: 2
Views: 83

Re: [wxMSW][wx3.0.3] wxRichTextCtrl: Getting data as html, copy html data to clipboard

1. [...] Email's body data can be copied/pasted between them as HTML/richtext. I want same thing. In my case, it copies and paste as text only. 2. Getting data from wxRichTextCtrl also gives text only without format. I need it as html data. IIRC support for HTML clipboard format is not implemented ...
by catalin
Wed May 15, 2019 2:07 pm
Forum: General Development
Topic: WxWidgets App with multiples windows
Replies: 2
Views: 216

Re: WxWidgets App with multiples windows

Is the value held in test3 valid? You should always get a valid tree item id using event.GetItem().
by catalin
Wed May 15, 2019 12:23 pm
Forum: C++ Development
Topic: wxTextFile BOM
Replies: 1
Views: 57

Re: wxTextFile BOM

You have to do it manually AFAIK. Probably nothing changed about this since 2014.
by catalin
Wed May 15, 2019 10:38 am
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 251

Re: Windows 10 Dark Mode

PB wrote:
Mon May 13, 2019 5:40 pm
MS wants everyone to go UWP and likely will not spend any money on teaching the old dog new tricks...
Actually it seems that Microsoft wants to close the UWP, Win32 divide. But indeed, at lest for now, UWP-only features are not available through wxW.
by catalin
Mon May 13, 2019 12:03 pm
Forum: C++ Development
Topic: GetCaret()->Hide() makes the app crash at start-up
Replies: 3
Views: 94

Re: GetCaret()->Hide() makes the app crash at start-up

This sounds very much as if 'GetCaret()' reliably returned null.

As already answered, there are probably better ways to hide the caret, but there should really be no mystery why the app crashed, and a debugger reliably helps with that part.
by catalin
Mon May 13, 2019 11:58 am
Forum: C++ Development
Topic: Dynamically add controls into wxFlexGridsizer inside wxScrolledWindow - no resize
Replies: 5
Views: 141

Re: Dynamically add controls into wxFlexGridsizer inside wxScrolledWindow - no resize

I wonder how you (or the UI builder's creators) manage to output such convoluted code. But the first thing that is obviously wrong is the parent of the UI elements ("&d" everywhere). From your description there is an intermediary scrolled window there, in which case it should be the parent of all el...
by catalin
Mon May 13, 2019 11:48 am
Forum: C++ Development
Topic: What is the preferred way of getting a gui value from other std::thread
Replies: 3
Views: 97

Re: What is the preferred way of getting a gui value from other std::thread

One way to do it: from the secondary thread send a wxThreadEvent to the main thread requesting the needed info; secondary thread waits at a wxMessageQueue; main thread posts the info to the wxMessageQueue instance; secondary thread is unlocked and processes the info. Formats of request, returned inf...
by catalin
Tue May 07, 2019 5:14 am
Forum: Compiler / Linking / IDE Related
Topic: MSVC 2017 fails to load symbols during Debugging
Replies: 2
Views: 163

Re: MSVC 2017 fails to load symbols during Debugging

I did put pdb along with the DLLs (I'm building a DLL-based application) in the same directory as the executable, but I still see the default MSVC screen ("No source code found") trying to step inside wx call. As the error clearly states, it cannot find the source code . pdb files do not contain so...
by catalin
Sun Apr 21, 2019 6:14 pm
Forum: Platform Related Issues
Topic: wxNotebook not shown on Windows.
Replies: 2
Views: 98

Re: wxNotebook not shown on Windows.

The parent of the notebook must be 'this', not 'parent'.
by catalin
Wed Apr 17, 2019 12:56 pm
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 275

Re: How to stop windows from showing program as "not responding"

ValeV wrote:
Wed Apr 17, 2019 12:37 pm
I think the thread can be closed
You can set it to "Solved" by accepting one of the replies (see the 'v'-like button next to each reply).
by catalin
Wed Apr 17, 2019 8:43 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 275

Re: How to stop windows from showing program as "not responding"

That is because you can only do non-GUI work in a secondary thread (no matter what type of threads you use).
https://docs.wxwidgets.org/trunk/overview_thread.html
by catalin
Wed Apr 17, 2019 8:09 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 275

Re: How to stop windows from showing program as "not responding"

It might be slightly more complicated than that, as you probably need to sync with the worker thread when the work has ended, and/or show a progress dialog while the work is being done, possibility to cancel etc - there are some UI "good practices" for such things. But in a few words that should wor...
by catalin
Tue Apr 16, 2019 8:27 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 275

Re: How to stop windows from showing program as "not responding"

can I stop windows from marking program as "not responding"? You definitely can. There are other programs that don't behave like that, right? The best way to stop it is to move the time consuming work into a secondary thread. Anything other than that would be (until proven otherwise) a poor solutio...
by catalin
Thu Apr 11, 2019 2:40 am
Forum: C++ Development
Topic: can i put two wxGrid inside a wxPanel
Replies: 4
Views: 144

Re: can i put two wxGrid inside a wxPanel

Actually, the "healthiest" way to go about ids is to use -1 (wxID_ANY) when creating every widget (-1 means that wxW will assign the next available id to it), and then if you need to store the id, use GetId() to retrieve it (i.e. grid->GetId()).
by catalin
Sun Apr 07, 2019 5:11 am
Forum: C++ Development
Topic: can i put two wxGrid inside a wxPanel
Replies: 4
Views: 144

Re: can i put two wxGrid inside a wxPanel

Yes.
Did you try it before asking?