Search found 20 matches

by Kvaz1r
Mon Jan 21, 2019 6:42 pm
Forum: C++ Development
Topic: wxfile name dialog [SOLVED]
Replies: 2
Views: 62

Re: wxfile name dialog [SOLVED]

I tried using the filedialog save property but it jus shows, I input a name and it displays an error. What kind of error did you get? Can you post full code for reproducing? Though, there is enough material with examples of using wxFileDialog you can just copy-paste code from there and fit it for y...
by Kvaz1r
Sat Jan 19, 2019 10:53 am
Forum: Compiler / Linking / IDE Related
Topic: Make error compiling master [SOLVED]
Replies: 2
Views: 94

Re: Make error compiling master [SOLVED]

There is also need to get submodules:
Building from Git Sources
by Kvaz1r
Tue Jan 15, 2019 10:20 am
Forum: C++ Development
Topic: How better to show choice in table format?
Replies: 2
Views: 81

Re: How better to show choice in table format?

You can look thru the sources and try to override this behaviour, but it is possible that the native control does not support what you want to do. Hi, thanks for answer. I thought it's a common issue. I don't think the "problem" in native control since in "active" phase it has a...
by Kvaz1r
Mon Jan 14, 2019 10:14 am
Forum: C++ Development
Topic: How better to show choice in table format?
Replies: 2
Views: 81

How better to show choice in table format?

I need to display some table data when one of column must contain some option to choice. I looked through samples and the closest example is using wxDataViewChoiceRenderer . But as far I understand there isn't an option that cell by default look as contained choice. Below image for better descriptio...
by Kvaz1r
Sat Jan 12, 2019 7:59 am
Forum: General Development
Topic: Component Building.
Replies: 2
Views: 169

Re: Component Building.

It would be better, if you provide a bit more information.
That is:
Operation system and version, compiler and version, tools what you use for build, version of wxWidgets, text of error, steps for reproducing.
by Kvaz1r
Thu Jan 10, 2019 9:31 am
Forum: C++ Development
Topic: can't make use of string data type [SOLVED]
Replies: 1
Views: 119

Re: can't make use of string data type [SOLVED]

Convert from wxString to std::string: Standard std::string using wxString::ToStdString() . The contents of the returned string use the current locale encoding, so this conversion is potentially destructive as well. Btw wxWidgets provides classes and methods for writing and reading files so you can u...
by Kvaz1r
Mon Jan 07, 2019 4:28 pm
Forum: wxCode
Topic: Black lines and text come out gray [SOLVED]
Replies: 3
Views: 271

Re: Black lines and text come out gray [SOLVED]

Hello. Can you provide full (but minimal) code for reproducing behaviour?
by Kvaz1r
Tue Dec 11, 2018 4:45 pm
Forum: C++ Development
Topic: Full Working Example of a wxGrid
Replies: 15
Views: 1428

Re: Full Working Example of a wxGrid

I mean for example that SetColFormatFloat, it does nothing really usefull and since it is not posible to get and set float values to a cell of the grid it apears complete useless to me. Can somebody posibly explain why such functions exist at all? So to make clear what I would like wxGrid to use fo...
by Kvaz1r
Tue Dec 11, 2018 4:37 pm
Forum: C++ Development
Topic: wxtextctrl setvalue/getvalue confusion [SOLVED]
Replies: 7
Views: 386

Re: wxtextctrl setvalue/getvalue confusion [SOLVED]

Hello. Not sure that I undesrstand what you want to achieve. Maybe you can provide some example with expected and actual output?
For displaying "compound" number you can join into one string several values with some delimeter.
by Kvaz1r
Thu Dec 06, 2018 4:28 pm
Forum: wxWidgets Development (Russian)
Topic: EVT_TEXT с задержкой. Есть ли такое в wxTextCtrl
Replies: 7
Views: 315

Re: EVT_TEXT с задержкой. Есть ли такое в wxTextCtrl

В документации нет ничего похожего, хотя лично я не вижу смысла добавлять такой редкий кейс в библиотеку.
Можно попробовать обойтись EVT_TEXT_ENTER, если уверены что пользователь нажмет Enter по завершению редактирования.
by Kvaz1r
Mon Nov 26, 2018 11:17 am
Forum: C++ Development
Topic: wxRadioButton event handler
Replies: 1
Views: 63

Re: wxRadioButton event handler

You should marked your radiobuttons as group. For it - to pass style wxRB_GROUP to constructor of first element of group. Documentation . For example: #include <wx/wx.h> const wxWindowIDRef ID_NONEUSERAUTH = wxWindow::NewControlId();; const wxWindowIDRef ID_PASSUSERAUTH = wxWindow::NewControlId();; ...
by Kvaz1r
Tue Nov 13, 2018 10:16 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl
Replies: 2
Views: 78

Re: [wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl

Why not use wxGrid instead wxDataViewListCtrl if you need hard operations with cells? This control provides much more features.
by Kvaz1r
Sat Nov 10, 2018 7:41 am
Forum: C++ Development
Topic: I want to move a wxStaticBitmap from frame to another Dialog, how to do? [SOLVED]
Replies: 6
Views: 367

Re: I want to move a wxStaticBitmap from frame to another Dialog, how to do? [SOLVED]

lfjking wrote:I don't know the SetContainingSizer what to do and why?

According to documentation:
This normally does not need to be called by user code.

It is called when a window is added to a sizer, and is used so the window can remove itself from the sizer when it is destroyed.
by Kvaz1r
Mon Oct 29, 2018 5:58 pm
Forum: C++ Development
Topic: How to set font for one of toolbutton in wxToolbar?
Replies: 13
Views: 322

Re: How to set font for one of toolbutton in wxToolbar?

Not sure is it really can to be done.

What about method GetControl/1?

Something like

Code: Select all

m_toolBar->FindControl(toolid)->SetFont(ft);


but with all necessary checkings(on NULL).

Though maybe it will work only for controls that was added via AddControl.

Go to advanced search