Search found 38 matches

by Midnightas
Fri Aug 23, 2019 8:18 am
Forum: Component Writing
Topic: Blender DAG node graph
Replies: 11
Views: 1486

Re: Blender DAG node graph

One way to do this using the renderer/editor division of labor. wxWidgets uses this for wxGrid, wxDataViewCtrl, and wxPropgrid. The idea is to bring up the editor (the spin control, text control, combo box, or whatever control used to edit the data) only when it is needed. That way you don't have t...
by Midnightas
Thu Aug 22, 2019 9:09 pm
Forum: Component Writing
Topic: Blender DAG node graph
Replies: 11
Views: 1486

Re: Blender DAG node graph

No, I'm talking about native boxes where the user can input data themselves, not wxStaticText. Just like in the Blender picture above.
by Midnightas
Thu Aug 22, 2019 8:48 pm
Forum: Component Writing
Topic: Blender DAG node graph
Replies: 11
Views: 1486

Re: Blender DAG node graph

Hi, Also, remember - if you are doing Windows you will limit yourself with 32K controls (windows window id limitation). Which in practice will be even less since you will have other windows, menus, dialogs, etc. wxShapeFramework might be a good choice. If not - there are others: see complete list h...
by Midnightas
Thu Aug 22, 2019 3:55 pm
Forum: Component Writing
Topic: Blender DAG node graph
Replies: 11
Views: 1486

Re: Blender DAG node graph

If yes, go 100% custom drawn. When using panels you're limited by their rectangular shape and you might get redraw / flicker issues. I don't need the prettiness, native doesn't really often intersect with "pretty". I simply need an intuitive UI. Going custom also means I'd have to remake every sing...
by Midnightas
Thu Aug 22, 2019 12:04 pm
Forum: Component Writing
Topic: Blender DAG node graph
Replies: 11
Views: 1486

Blender DAG node graph

Here's an example: https://code.blender.org/wp-content/uploads/2012/05/funky_selection_theme_colors.png I've thought of a couple ways to do this: 1. Each node is a wxPanel that is absolutely positioned (even though technically wxWidgets doesn't allow overlapping panels, I had them work in all backen...
by Midnightas
Tue May 28, 2019 5:46 pm
Forum: C++ Development
Topic: Render a window in a wxDataViewCustomRenderer?
Replies: 5
Views: 518

Re: Render a window in a wxDataViewCustomRenderer?

Well, ideally the editor control should stay there all the time, though it doesn't seem I can cleanly do that. I need a custom renderer as depending on the item I'd want a different control to be shown. The reason I asked for text rendering is so that I can draw a combobox with the selected text drw...
by Midnightas
Tue May 28, 2019 3:25 pm
Forum: C++ Development
Topic: Render a window in a wxDataViewCustomRenderer?
Replies: 5
Views: 518

Re: Render a window in a wxDataViewCustomRenderer?

Aight, seems to be good, I'm assuming I have to draw the text separately.
by Midnightas
Tue May 28, 2019 1:33 pm
Forum: C++ Development
Topic: Render a window in a wxDataViewCustomRenderer?
Replies: 5
Views: 518

Render a window in a wxDataViewCustomRenderer?

Afaik the Render method in wxDataViewCustomRenderer expects you to draw items with a wxDC, while I need to add a native window (in my case, either a wxStaticText or wxComboBox).

Or, another way to think about it is that I need a permanent editor control?
by Midnightas
Mon May 27, 2019 8:00 am
Forum: Component Writing
Topic: How to attempt creating a timeline like in After Effects?
Replies: 5
Views: 1243

Re: How to attempt creating a timeline like in After Effects?

Well, that's mostly a stylistic choice and isn't necessary, though it would look nice, thanks!
by Midnightas
Sun May 26, 2019 6:47 pm
Forum: Component Writing
Topic: How to attempt creating a timeline like in After Effects?
Replies: 5
Views: 1243

Re: How to attempt creating a timeline like in After Effects?

An idea popped into my head, can I maybe use a custom renderer with a custom column type of something like "value"?
Depending on the item something else would be rendered, but "Mode" for layers is a simple blending mode option, which can be expressed as some number.
by Midnightas
Sun May 26, 2019 10:25 am
Forum: Component Writing
Topic: How to attempt creating a timeline like in After Effects?
Replies: 5
Views: 1243

Re: How to attempt creating a timeline like in After Effects?

Hmm, not sure if this can be completely made with wxDVC, as the keyframed values like "Position" and whatnot are aligned with the "Mode" column, but have a different type than "Mode" for parents.
by Midnightas
Fri May 24, 2019 8:10 am
Forum: Component Writing
Topic: How to attempt creating a timeline like in After Effects?
Replies: 5
Views: 1243

How to attempt creating a timeline like in After Effects?

https://helpx.adobe.com/content/dam/help/en/after-effects/using/layer-properties/_jcr_content/main-pars/image/anchor-point.png Here's an image as some visuals are necessary for something as complicated as the above. On the left we have a layer's "parameters", it's visibility, locked, solo, etc. On ...
by Midnightas
Mon Apr 08, 2019 6:31 am
Forum: C++ Development
Topic: wxCommandProcessor wrongly updates menu strings.
Replies: 3
Views: 302

Re: wxCommandProcessor wrongly updates menu strings.

Fixed, apparently I have to pass true to wxCommand's constructor as it's first argument.
It's a weird default, though.
by Midnightas
Sun Apr 07, 2019 9:47 pm
Forum: C++ Development
Topic: wxCommandProcessor wrongly updates menu strings.
Replies: 3
Views: 302

wxCommandProcessor wrongly updates menu strings.

I have a wxMenu*, a wxMenuBar* and a wxCommandProcessor, and I'm trying to submit a new command: // During initialization. menuedit->Append(wxID_UNDO); menuedit->Append(wxID_REDO); menubar->Append(menuedit, "&Edit"); cmdproc.SetEditMenu(menuedit); cmdproc.Initialize(); // When it's time to submit. S...
by Midnightas
Wed Mar 21, 2018 9:17 pm
Forum: C++ Development
Topic: A window is directly in front of a wxAUI pane caption
Replies: 2
Views: 429

Re: A window is directly in front of a wxAUI pane caption

Alright, although this bug seems to have fixed itself mysteriously.