Search found 13 matches

by widgetsfox
Sun Apr 23, 2017 10:56 pm
Forum: C++ Development
Topic: C++ samples\dataview: wxDataViewTreeCtrl and AppendTextColumn(...)
Replies: 1
Views: 1023

C++ samples\dataview: wxDataViewTreeCtrl and AppendTextColumn(...)

Hello, that question is the same related to wxPython, see here . I hope that the chances to get an answer is better with an C++ example. I'm working with OS Win 7/wxWidgets v. 3.1.0. You can find that example "wxDataViewCtrl sample" in the folder samples\dataview, dataview.cpp. It consits ...
by widgetsfox
Sun Apr 23, 2017 10:43 pm
Forum: C++ Development
Topic: wxDataViewTreeCtrl exception with text renderer
Replies: 12
Views: 4388

Re: wxDataViewTreeCtrl exception with text renderer

Hello, from my point of view the advantage of the wxDataViewTreeCtrl is that you don't need a model - as doublemax stated there is the inernal one wxDataViewTreeStore. Modifiy the code of the first example "MyMusicTreeModel", which is based on a wxDataViewCtrl with its model "MyMusicT...
by widgetsfox
Thu Apr 20, 2017 8:42 pm
Forum: General Development
Topic: wxPython: wxDataViewTreeCtrl and AppendTextColumn(...)
Replies: 0
Views: 6138

wxPython: wxDataViewTreeCtrl and AppendTextColumn(...)

Hello again,

looking for a simple example which adds some columns (e. g. via AppendTextColumn(...)) to an wxDataViewTreeCtrl. Is the header shown by default? Maybe that's my problem. Working with OS Win 7/wxPython (classic) 3.0.2.0.


Many thanks and greetings
widgetsfox
by widgetsfox
Mon Feb 27, 2017 6:29 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder and wxGridBagSizer: Setting properties
Replies: 0
Views: 6041

wxFormBuilder and wxGridBagSizer: Setting properties

Hello,

I'm trying to understand how the properties of an wxGridBagSizer can be used in wxFormBuilder.
How can I e. g. set wxGBPosition and wxGBSpan?
I'm working with OS Win 7, wxWidgets v. 3.1.0 and wxFormBuilder v3.5 - RC 1.


Many thanks and greetings
widgetsfox
by widgetsfox
Mon Dec 12, 2016 11:08 pm
Forum: C++ Development
Topic: XRC: IDs, XRCID values, Bind(...) with ID range
Replies: 3
Views: 6617

Re: XRC: IDs, XRCID values, Bind(...) with ID range

Hello David, many thanks for your answers, very valuable. I have three buttons on a frame, named "btpTestRange[0]", "btpTestRange[1]" and "btpTestRange[2]". The IDs I get via XRCID are: XRCID("btpTestRange[0]") = -31987 XRCID("btpTestRange[start]") =...
by widgetsfox
Mon Dec 12, 2016 8:50 pm
Forum: C++ Development
Topic: wxDataViewCtrl: Simple example, getting wxWiki example working
Replies: 1
Views: 1135

wxDataViewCtrl: Simple example, getting wxWiki example working

Hello again, I'm looking for an really simple wxDataViewCtrl example. The one in the sample folder (location: samples/dataview) is too complex to get started. And I'm not able to compile the wxWiki example ( https://wiki.wxwidgets.org/WxDataViewCtrl ). The first problem is WX_DECLARE_HASH_SET. I'm w...
by widgetsfox
Tue Nov 29, 2016 12:04 am
Forum: C++ Development
Topic: XRC: IDs, XRCID values, Bind(...) with ID range
Replies: 3
Views: 6617

XRC: IDs, XRCID values, Bind(...) with ID range

Hello, I'm trying to get my first XRC test app running (OS Win 7/wxWidgets v. 3.1.0). Some questions: Why are my via the wxFormBuilder (v3.5 - RC1) defined IDs (property id ) not stored in the XRC file? The random (but unique numbers) I get via macro XRCID("wxWidgetName") are negative - wh...
by widgetsfox
Sun Nov 27, 2016 1:49 pm
Forum: C++ Development
Topic: wxButton SetLabelMarkup(...): Multiline label with <br>
Replies: 3
Views: 1572

Re: wxButton SetLabelMarkup(...): Multiline label with <br>

Hello ONEEYEMAN, many thanks for your answer. Yep, sorry, forgot to mention that I'm working with wxWidgets v. 3.1.0. Concerning the mentiond sample - do you mean the Button example of the wxMSW widgets demo project? How can I test a line feed there? With <br> ( Interpret markup checked) I get an &q...
by widgetsfox
Sat Nov 26, 2016 9:27 pm
Forum: C++ Development
Topic: wxButton SetLabelMarkup(...): Multiline label with <br>
Replies: 3
Views: 1572

wxButton SetLabelMarkup(...): Multiline label with <br>

Hello, is there any way to use a multiline label in a wxButton with SetLabelMarkup(...) and <br> (OS Win 7/wxWidgets v. 3.1.0)? The result of my tests it that the label isn't shown when <br> is included in the string. \n or \r\n works, but the following text is indented, like CODE: ----- wxString sT...
by widgetsfox
Sat Nov 26, 2016 1:44 am
Forum: C++ Development
Topic: wxButton: One event handler, multiple buttons - which triggered the event?
Replies: 4
Views: 2918

Re: wxButton: One event handler, multiple buttons - which triggered the event?

Hello all,

many thanks for your answers.

@Manolo:
When you Bind(), you can specify what ID range may trigger the bound handler.
Can you pls. be so kind an give me an example of the correct syntax?


Many thanks and greetings
widgetsfox
by widgetsfox
Thu Nov 24, 2016 8:47 pm
Forum: C++ Development
Topic: wxButton: One event handler, multiple buttons - which triggered the event?
Replies: 4
Views: 2918

wxButton: One event handler, multiple buttons - which triggered the event?

Hello, just starting with wxWidgets. Some dynamic created buttons share the same event handler via ->Bind(...) . How can I determine which one triggered the event, e. g. by using a number? I'm already able to get the triggering wxButton pButton inside the event via event.GetEventObject() and its ass...
by widgetsfox
Thu Sep 15, 2016 6:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Visual Studio Community 2015: Linker errors and first questions
Replies: 3
Views: 1396

Re: Visual Studio Community 2015: Linker errors and first questions

Hello doublemax,

many thanks for that info, especially the hint concerning the "minimal_vc14.sln" sample in <wxdir>/samples/minimal/.

I was able to get that sample running.


Many thanks and greetings
widgetsfox
by widgetsfox
Wed Sep 14, 2016 11:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Visual Studio Community 2015: Linker errors and first questions
Replies: 3
Views: 1396

Visual Studio Community 2015: Linker errors and first questions

Hello, I'm just starting to work with Visual Studio Community 2015 and wxWidgets (Windows 7). First I downloaded and extracted: 1. wxWidgets-3.1.0-headers 2. wxMSW-3.1.0_vc140_Dev My folder is MY_DRIVE:\MY_PATH\wxWidgets-3.1.0. I copied the content of wxWidgets-3.1.0-headers to the above folder: MY_...