Search found 1836 matches

by PB
Thu Feb 21, 2019 9:20 pm
Forum: Compiler / Linking / IDE Related
Topic: Trying to compile hello world example with visual studio 2017
Replies: 9
Views: 295

Re: Trying to compile hello world example with visual studio 2017

I believe that oneeyeman meant version 3.1.2: 3.1.3 is current GIT master, still unreleased (but usable). Anyway, 3.1.2 has a major advantage over 3.0.x: it has better documentation for MSVC as well as one more easy way to add wxWidgets to your project, see e.g. here: http://wxwidgets.org/blog/2018/...
by PB
Thu Feb 21, 2019 5:41 pm
Forum: C++ Development
Topic: wxDataViewListCtrl diffent alignment for col header & items
Replies: 6
Views: 51

Re: wxDataViewListCtrl diffent alignment for col header & items

I don't have any experience with DVLC but at least with text columns it works as expected (wxWidgets 3.1.2, MSW): dvc-align.png #include <wx/wx.h> #include <wx/dataview.h> class MyFrame : public wxFrame { public: MyFrame() : wxFrame(NULL, wxID_ANY, "Test") { wxDataViewListCtrl* dvlc = new wxDataView...
by PB
Thu Feb 21, 2019 11:54 am
Forum: C++ Development
Topic: Cannot convert wxString to char*
Replies: 3
Views: 31

Re: Cannot convert wxString to char*

What encoding does the webserver expect? On web UTF-8 rules but perhaps "legacy" means something else? Obviously, UTF-8 would be easy with str.ToUTF8(); You can also use a custom encoding with mb_str(), however if the webserver is hardcoded to expect only a certain ANSI encoding such as ISO-8859-1 (...
by PB
Wed Feb 20, 2019 12:42 pm
Forum: C++ Development
Topic: GetParent = 0x0000000
Replies: 3
Views: 40

Re: GetParent = 0x0000000

You cannot cast wxSplitter to wxFrame, it is not derived from it. I never tried but I believe you cannot have a top level window such as a wxFrame be a child of a child control such as a wxSplitter. I am not sure what are you trying to achieve but either use a wxPanel instead of wxFrame or perhaps l...
by PB
Wed Feb 20, 2019 11:12 am
Forum: C++ Development
Topic: GetParent = 0x0000000
Replies: 3
Views: 40

Re: GetParent = 0x0000000

Just glanced at the code and it seems that neither MainFrame or CalcFrame ctor calls wxFrame ctor. Should be e.g. (assuming CalcFrame is derived from wxFrame) CalcFrame::CalcFrame(wxFrame * parent,wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size ) : wxFrame(parent, id, ti...
by PB
Fri Feb 15, 2019 2:58 pm
Forum: C++ Development
Topic: wxXmlDocument and encoding
Replies: 4
Views: 78

Re: wxXmlDocument and encoding

I have no experience with this class but cursory look at the source code indicates that code doing the actual loading uses the encoding parameter only in a Non-Unicode build? https://github.com/wxWidgets/wxWidgets/blob/master/src/xml/xml.cpp#L883 That actually makes sense, as the encoding of the XML...
by PB
Wed Feb 13, 2019 7:08 am
Forum: C++ Development
Topic: Make wxStyledTextCtrl fonts Smooth
Replies: 16
Views: 125

Re: Make wxStyledTextCtrl fonts Smooth

Here is a screenshot of the same font and size in CodeLite (One of the best Scintilla based app) So CodeLite looks OK? CodeLite uses wxWidgets for its UI and I believe it also uses its wxSTC as I remember eranif commenting on its issues including the one resulting in the commit referenced in my fir...
by PB
Wed Feb 13, 2019 7:01 am
Forum: C++ Development
Topic: Make wxStyledTextCtrl fonts Smooth
Replies: 16
Views: 125

Re: Make wxStyledTextCtrl fonts Smooth

evstevemd wrote:but even sublime text looks the same (see the screenshot).
So I believe somemthing is missing in wxWidgets.
Is sublimetext using Scintilla? I think one would need to compare scintilla-based editors to make sure the issue is with wxWidgets (Scintilla wrapper)...
by PB
Wed Feb 13, 2019 6:46 am
Forum: C++ Development
Topic: Make wxStyledTextCtrl fonts Smooth
Replies: 16
Views: 125

Re: Make wxStyledTextCtrl fonts Smooth

As doublemax said, VSCode is an Electron app, so all its UI is rendered by a web browser (chromium).

How do other Scintilla-based applications look, e.g. SciTe and Notepad++?
by PB
Wed Feb 13, 2019 6:23 am
Forum: C++ Development
Topic: Make wxStyledTextCtrl fonts Smooth
Replies: 16
Views: 125

Re: Make wxStyledTextCtrl fonts Smooth

Assuming you are using wxWidgets 3.1.1+ on MSW, have you tried SetFontQuality() with SetTechnology(wxSTC_TECHNOLOGY_DIRECTWRITE)? See this commit
https://github.com/wxWidgets/wxWidgets/ ... ad9647da0a
by PB
Tue Feb 12, 2019 9:13 pm
Forum: C++ Development
Topic: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl
Replies: 11
Views: 131

Re: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl

Oops, sorry I had no idea that this is supported out of the box.
by PB
Tue Feb 12, 2019 5:06 pm
Forum: C++ Development
Topic: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl
Replies: 11
Views: 131

Re: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl

I believe that ONEEYEMAN meant that you may need to do this yourself, handling wxEVT_LISTBOX and de/selecting items based on their state and control keys pressed. BTW, what about using wxCheckListBox instead: many users find selecting multiple items using <Ctrl> or <Shift> difficult, some may not ev...
by PB
Sat Feb 09, 2019 8:24 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 261

Re: wxDataViewListCtrl bug about scrollbar

It's fine, but there is a bug Once again, wxWidgets version? As I already wrote above, I believe there were quite a few changes regarding the last column resizing https://github.com/wxWidgets/wxWidgets/search?o=desc&q=wxdataviewctrl&s=committer-date&type=Commits I.e., can you reproduce "the bug" wi...
by PB
Sat Feb 09, 2019 8:14 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 261

Re: wxDataViewListCtrl bug about scrollbar

What wxWidgets version you have, the behaviour regarding the last column width in wxDVC was changed not so long ago, see e.g. https://github.com/wxWidgets/wxWidgets/commit/2340a16d180472b1efc4009a693d7aaf0771f21c https://github.com/wxWidgets/wxWidgets/commit/3a24beca62c1130b887bb53ef40de5076a11e257 ...
by PB
Sat Feb 09, 2019 8:00 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 261

Re: wxDataViewListCtrl bug about scrollbar

I just skimmed through the post, but where is the bug? According to the screenshot, there is no reason to display scrollbars, all the columns are fully displayed (fit to the control's width), the value of the last one being ellipsized (you can see the right border of the last column)? The horizontal...