Search found 133 matches

by Kvaz1r
Mon Jul 08, 2019 5:57 pm
Forum: C++ Development
Topic: Colour List
Replies: 9
Views: 301

Re: Colour List

You can use wxGrid as well.
by Kvaz1r
Mon Jul 08, 2019 11:17 am
Forum: C++ Development
Topic: Creating bitmap from 2 PNG files
Replies: 2
Views: 104

Re: Creating bitmap from 2 PNG files

Yes, of course. You can start from this topic:
How to save some pictures into one image?
by Kvaz1r
Sat Jul 06, 2019 6:31 am
Forum: Compiler / Linking / IDE Related
Topic: Problem with UNICODE and wxWidgets
Replies: 6
Views: 289

Re: Problem with UNICODE and wxWidgets

I also don't use CodeBlocks or wxSmith but you can try change encoding to unicode(encoding settings) and (or) avoid using macro '_' (there is corresponding settings, maybe "Settings->Editor->wxSmith Settings->Other Settings->Non I18N Strings" or something like that)
by Kvaz1r
Wed Jun 26, 2019 3:16 pm
Forum: C++ Development
Topic: Sizer gets too big
Replies: 7
Views: 205

Re: Sizer gets too big

About first issue - you can use not only box sizer but also wxGridSizer or wxFlexGridSizer if they suit more.
Layout management in wxWidgets

About second one...something definitely wrong. Do all sizers sets correctly? What if change SetSizer to SetSizerAndFit?
by Kvaz1r
Tue Jun 25, 2019 7:23 am
Forum: C++ Development
Topic: Char Array Is Getting Corrupted
Replies: 16
Views: 502

Re: Char Array Is Getting Corrupted

If it somehow saves wrong code from crashing, it's not a reason to use it. programmer must write correct code, using simplest data structures. It's exactly a reason. Standard container is always more shorter, reliable and readable. But of course you can use std::array<> instead if your data won't c...
by Kvaz1r
Tue Jun 25, 2019 7:14 am
Forum: C++ Development
Topic: Event Handler with a Returning int
Replies: 7
Views: 216

Re: Event Handler with a Returning int

I'm not sure that you correct understand events concept. Something happened and you need to inform all subscribers. Of course you can pass an integer or any other type in it if event can contain such type. But first question always is how to define the event? So in any case if you want get correct a...
by Kvaz1r
Mon Jun 24, 2019 10:24 am
Forum: C++ Development
Topic: Char Array Is Getting Corrupted
Replies: 16
Views: 502

Re: Char Array Is Getting Corrupted

If you can use std::vector<> - use std::vector<>. You write on C++ so you shouldn't avoid simple stuff just because you can do it.
by Kvaz1r
Sun Jun 23, 2019 8:09 am
Forum: C++ Development
Topic: How to handle wxEVT_TEXT before is happens?
Replies: 4
Views: 159

Re: How to handle wxEVT_TEXT before is happens?

Why not use wxValidator if all that you need it's validation?

wxValidator Overview
by Kvaz1r
Sat Jun 22, 2019 6:56 am
Forum: C++ Development
Topic: Threaded Job/Queue Manager getting stuck?
Replies: 8
Views: 285

Re: Threaded Job/Queue Manager getting stuck?

The complete Job/Queue Manager example provided by https://wiki.wxwidgets.org/Inter-Thread_and_Inter-Process_communication is actually thread unsafe because it uses wxCommandEvents to pass strings between threads? Furthermore, the Queue class's Report() method uses AddPendingEvent() rather than wxQ...
by Kvaz1r
Wed Jun 19, 2019 7:26 am
Forum: Platform Related Issues
Topic: PR errors out on Travis CI
Replies: 3
Views: 266

Re: PR errors out on Travis CI

I don't know why it didn't break for other builds but log says clearly: ./src/gtk/textctrl.cpp:156:57: error: cannot pass objects of non-trivially-copyable type ‘const class wxColour’ through ‘...’ I don't know anything about Gtk so can't tell you how one should transfer color into this function.
by Kvaz1r
Tue Jun 18, 2019 6:56 pm
Forum: C++ Development
Topic: Is there a way to have more then one Custom-Widget in BoxSizer
Replies: 7
Views: 211

Re: Is there a way to have more then one Custom-Widget in BoxSizer

Why it doesn't work just out of the box? Can you show some code?
But to be honest I'm not sure about that design. What are you trying to achieve?
by Kvaz1r
Tue Jun 18, 2019 4:55 pm
Forum: C++ Development
Topic: A Problem to compile a Custom Panel with Event Handler
Replies: 7
Views: 205

Re: A Problem to compile a Custom Panel with Event Handler

Ok, Sorry but any good Manuals or Tutorials which show the Bind Command in relation to wxButtons. (Please with Link). Not for button specific but here is the documentation. Dynamic Event Handling . For button in simplest form it will be like that: m_Button->Bind(wxEVT_BUTTON, [&](wxCommandEvent&) {...
by Kvaz1r
Mon Jun 17, 2019 4:10 pm
Forum: wxCode
Topic: wxPdfDocument joining 2 PDF files. Is it possible?
Replies: 6
Views: 717

Re: wxPdfDocument joining 2 PDF files. Is it possible?

However, wxPdfDocument allows to extract complete pages from existing PDF files and to insert them into new PDF documents. One of the samples coming with wxPdfDocument shows how to do it (see external templates ). Oh, great, I didn't know about that. @cutecode ,sorry for inaccuracy, I should've tak...
by Kvaz1r
Mon Jun 17, 2019 12:55 pm
Forum: wxCode
Topic: wxPdfDocument joining 2 PDF files. Is it possible?
Replies: 6
Views: 717

Re: wxPdfDocument joining 2 PDF files. Is it possible?

No. From conversation in this issue:
wxPdfDocument is a component for generating PDF documents. It is not a component for parsing, displaying or printing PDF documents.
by Kvaz1r
Sun Jun 09, 2019 7:57 pm
Forum: Platform Related Issues
Topic: Weird crash on MSW
Replies: 5
Views: 295

Re: Weird crash on MSW

Try write MCVE and maybe it'll became obvious. I don't think it's possible to say something without code.