Search found 212 matches

by Kvaz1r
Mon Jan 14, 2019 10:14 am
Forum: C++ Development
Topic: How better to show choice in table format?
Replies: 2
Views: 242

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

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
Replies: 1
Views: 354

Re: can't make use of string data type

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
Replies: 3
Views: 1398

Re: Black lines and text come out gray

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

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
Replies: 7
Views: 832

Re: wxtextctrl setvalue/getvalue confusion

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

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

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

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?
Replies: 6
Views: 868

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

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

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.
by Kvaz1r
Sat Oct 27, 2018 3:48 pm
Forum: wxWidgets Development (Russian)
Topic: No Target! You should use wx-config program for compilation flags!
Replies: 3
Views: 1768

Re: No Target! You should use wx-config program for compilation flags!

Здравствуйте.
Попробуйте решение отсюда - Code::Blocks WxWidget error - No Target! You should use wx-config program for compilation flags?

Но вообще советую спрашивать в англоязычном разделе.
by Kvaz1r
Sat Oct 27, 2018 11:00 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 666

Re: How to catch a left click on a wxSlider thumb

I've tried the 2 following OnSlider implementations: Code below works for me, try change it for your event: #include <wx/wx.h> class MyFrame : public wxFrame { public: MyFrame() : wxFrame(NULL, wxID_ANY, "Test", wxDefaultPosition, wxSize(600, 400)) { wxBoxSizer* bSizer1 = new wxBoxSizer( wxVERTICAL...
by Kvaz1r
Sat Oct 27, 2018 10:42 am
Forum: C++ Development
Topic: How to catch a left click on a wxSlider thumb
Replies: 8
Views: 666

Re: How to catch a left click on a wxSlider thumb

bertolino wrote: But there is no counterpart to wxEVT_SCROLL_THUMBRELEASE and mouse events are not available for a wxSlider.
They are. Because wxSlider inherit they from wxWindow.
About click events see this SO question - wxWidgets: Detecting click event on custom controls