Search found 212 matches

by Kvaz1r
Sun Jul 14, 2019 7:41 am
Forum: C++ Development
Topic: wxRichTextCtrl Text Not Centering
Replies: 6
Views: 651

Re: wxRichTextCtrl Text Not Centering

It seems like a bug (alignment don't applied to one-line text) so I would create new ticket on https://trac.wxwidgets.org.
by Kvaz1r
Fri Jul 12, 2019 6:42 pm
Forum: C++ Development
Topic: Window Sizing
Replies: 8
Views: 381

Re: Window Sizing

You should to handle wxSizeEvent.
by Kvaz1r
Fri Jul 12, 2019 3:51 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 1392

Re: wxPdfDocument wich fonts can I use?

I copied font file into project directory and did so:

Code: Select all

pdf.AddFont("PT","",wxS("PTM55FT.ttf"));
pdf.SetFont(wxS("PT"),wxS(""),12);
'?' instead of text could be happened because font don't recognize unicode symbols.
by Kvaz1r
Wed Jul 10, 2019 7:00 pm
Forum: C++ Development
Topic: User Input
Replies: 11
Views: 810

Re: User Input

Provide full code for reproducing the behaviour.

Btw there is samples folder that contains examples of using for biggest part of the library.
by Kvaz1r
Mon Jul 08, 2019 5:57 pm
Forum: C++ Development
Topic: Colour List
Replies: 9
Views: 527

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: 170

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: 509

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: 330

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: 872

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: 331

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: 872

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: 283

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: 511

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: 511

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: 287

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?