Search found 45 matches

by buttonsrtoys
Thu Jun 14, 2018 12:58 pm
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 555

Re: wxDataViewColumn with more than one wxDataViewChoiceRenderer?

All I meant was what I stated in my OP, which is I need each row of my column to support a different choice. E.g., row 1 might have Default/Custom, row 2 might have Red/Green/Blue. If I'm following our exchange, there's no subclass of wxDataViewRenderer that supports this? So, I should bail on using...
by buttonsrtoys
Thu Jun 14, 2018 10:54 am
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 555

Re: wxDataViewColumn with more than one wxDataViewChoiceRenderer?

Ah. OK, calling wxDVR::StartEditing() created the editor as you predicted.

I'm OK with Windows-only.

Because there's no clean way to make the choices row-dependent, I should bail on wxDataViewColumns? I'm OK with that. Just clarifying.
by buttonsrtoys
Wed Jun 13, 2018 10:29 pm
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 555

Re: wxDataViewColumn with more than one wxDataViewChoiceRenderer?

Thanks for the ideas doublemax! Unfortunately, GetEditorCtrl() returned null :(
by buttonsrtoys
Wed Jun 13, 2018 7:48 pm
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 555

Re: wxDataViewColumn with more than one wxDataViewChoiceRenderer?

Thanks doublemax. I subclassed as you suggested and override ::StartEditing(), but I'm stuck on how to change the list of choices. I'm probably missing something, but the wxDataViewChoiceRenderer constructor accepts a wxArrayString as a list of choices, but there's no "SetChoices" method to subseque...
by buttonsrtoys
Wed Jun 13, 2018 4:29 pm
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 555

wxDataViewColumn with more than one wxDataViewChoiceRenderer?

The code below creates two columns of widgets in a wxDataViewListCtrl. The first is a column of toggles and the second is a column of choices that present a drop-down that gives the options "Default"/"Custom". Works fine except I'm realizing I need different choices for each row. E.g., row 1 might h...
by buttonsrtoys
Thu Jun 07, 2018 6:57 pm
Forum: C++ Development
Topic: wxTreeListCtrl columns without titles?
Replies: 1
Views: 184

wxTreeListCtrl columns without titles?

wxTreeListCtrl::AppendColumn(..) requires a wxString "title" parameter that gets added to the top of the TreeList column. I want to omit titles atop my columns. I tried passing a wxEmptyString for the title. I got no title but also got a blank row atop my TreeList where the title would have been. Is...
by buttonsrtoys
Sun Mar 25, 2018 2:21 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilding event for selecting text?
Replies: 3
Views: 413

Re: wxFormBuilding event for selecting text?

Thanks to both of you for the info. Regarding why I want this, my TextCtrl is an output log of sorts, which outputs various states of my app's internals. Occasionally it lists some commands that I see users copy and past into another TextCtrl. I wanted to add the feature that helps with this process...
by buttonsrtoys
Sat Mar 24, 2018 11:33 am
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilding event for selecting text?
Replies: 3
Views: 413

wxFormBuilding event for selecting text?

I have a wxTextCtrl in wxFB and would like to trigger an event when text is double-clicked on and selected but don't see a OnDoubleClick or OnSelected under the events tab for wxTextCtrl. Can I generate these under wxFB? I can add them to my subclass but would like to stub out the function using wxF...
by buttonsrtoys
Tue Mar 13, 2018 2:19 pm
Forum: C++ Development
Topic: How to code a custom "console" within a GUI?
Replies: 5
Views: 568

Re: How to code a custom "console" within a GUI?

@Nunki, thanks for the thoughts. I'd like to use a wxScrolledWindow but don't see it in wxFormBuilder. Where is it?
by buttonsrtoys
Wed Mar 07, 2018 8:16 pm
Forum: C++ Development
Topic: How to code a custom "console" within a GUI?
Replies: 5
Views: 568

How to code a custom "console" within a GUI?

I have a simple debug "console" at the bottom of my GUI that I can show/hide. It's designed for debugging so the developer to query the state of the app by entering commands. Below is a screen grab. My question - I built this with two wxTextCtrl widgets. It would be nice to combine these into a sing...
by buttonsrtoys
Tue Feb 27, 2018 4:57 pm
Forum: C++ Development
Topic: wxFB: How to automatically resize Frame when panel hides/shows?
Replies: 1
Views: 266

wxFB: How to automatically resize Frame when panel hides/shows?

Using wxFormBuilder, I designed a simple app with a single frame that has three panels. The bottom panel is a debugger window that I want to hide/unhide using a "Debug Window" button. Below is a screen grab of my current design. I specified the Frame size min and max size with the hopes that it woul...
by buttonsrtoys
Sun Feb 11, 2018 12:17 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder - how to specify Inherited Class name?
Replies: 6
Views: 892

Re: wxFormBuilder - how to specify Inherited Class name?

Oooohhh... Thanks! Related question - I did a few fests with modifying the generated code of the inherited class and wxFB seemed to do a good job of preserving my changes while generating new code. (For clarity, I'm referring to code in the inherited class, not the base class, which I'm not touching...
by buttonsrtoys
Sun Feb 11, 2018 1:56 am
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder - how to specify Inherited Class name?
Replies: 6
Views: 892

Re: wxFormBuilder - how to specify Inherited Class name?

Thanks for the thoughts. I had selected the checkbox for my form in the list, but as you can see in my screengrab, the fields for entering the inherited class name are grayed out. I tried clicking on them to enter a class name, but the field's disabled. Is there something else I need to do?
by buttonsrtoys
Fri Feb 09, 2018 10:02 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder - how to specify Inherited Class name?
Replies: 6
Views: 892

Re: wxFormBuilder - how to specify Inherited Class name?

Oops! Wrong pic.
CaptureWxFormBuilder.JPG
CaptureWxFormBuilder.JPG (41.79 KiB) Viewed 885 times
by buttonsrtoys
Fri Feb 09, 2018 9:45 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder - how to specify Inherited Class name?
Replies: 6
Views: 892

wxFormBuilder - how to specify Inherited Class name?

Using wxFB, I select Tools > Generate Inherited Class. The dialog has fields to specify the inherited class name, but they're grayed out. CaptureWxFB.JPG So, the default file name is using the project name and top frame name, which isn't the end of the world, but it would be nice to explicitly set t...