Search found 39 matches
- Tue Dec 01, 2020 6:55 pm
- Forum: C++ Development
- Topic: wxGLAttributes object is empty
- Replies: 1
- Views: 325
wxGLAttributes object is empty
static wxGLAttributes MakeAttribs() { wxGLAttributes ret; ret.PlatformDefaults().EndList(); return ret; } arcViewport::arcViewport(wxFrame *parent) : wxGLCanvas(parent, MakeAttribs(), wxID_ANY), glCtx(this, nullptr, nullptr) { Bind(wxEVT_PAINT, &arcViewport::OnPaint, this); } The error happens ...
- Fri Aug 23, 2019 8:18 am
- Forum: Component Writing
- Topic: Blender DAG node graph
- Replies: 15
- Views: 29938
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...
- Thu Aug 22, 2019 9:09 pm
- Forum: Component Writing
- Topic: Blender DAG node graph
- Replies: 15
- Views: 29938
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.
- Thu Aug 22, 2019 8:48 pm
- Forum: Component Writing
- Topic: Blender DAG node graph
- Replies: 15
- Views: 29938
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...
- Thu Aug 22, 2019 3:55 pm
- Forum: Component Writing
- Topic: Blender DAG node graph
- Replies: 15
- Views: 29938
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 ...
- Thu Aug 22, 2019 12:04 pm
- Forum: Component Writing
- Topic: Blender DAG node graph
- Replies: 15
- Views: 29938
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...
- Tue May 28, 2019 5:46 pm
- Forum: C++ Development
- Topic: Render a window in a wxDataViewCustomRenderer?
- Replies: 5
- Views: 1181
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...
- Tue May 28, 2019 3:25 pm
- Forum: C++ Development
- Topic: Render a window in a wxDataViewCustomRenderer?
- Replies: 5
- Views: 1181
Re: Render a window in a wxDataViewCustomRenderer?
Aight, seems to be good, I'm assuming I have to draw the text separately.
- Tue May 28, 2019 1:33 pm
- Forum: C++ Development
- Topic: Render a window in a wxDataViewCustomRenderer?
- Replies: 5
- Views: 1181
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?
Or, another way to think about it is that I need a permanent editor control?
- Mon May 27, 2019 8:00 am
- Forum: Component Writing
- Topic: How to attempt creating a timeline like in After Effects?
- Replies: 5
- Views: 16343
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!
- Sun May 26, 2019 6:47 pm
- Forum: Component Writing
- Topic: How to attempt creating a timeline like in After Effects?
- Replies: 5
- Views: 16343
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.
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.
- Sun May 26, 2019 10:25 am
- Forum: Component Writing
- Topic: How to attempt creating a timeline like in After Effects?
- Replies: 5
- Views: 16343
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.
- Fri May 24, 2019 8:10 am
- Forum: Component Writing
- Topic: How to attempt creating a timeline like in After Effects?
- Replies: 5
- Views: 16343
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...
- Mon Apr 08, 2019 6:31 am
- Forum: C++ Development
- Topic: wxCommandProcessor wrongly updates menu strings.
- Replies: 3
- Views: 698
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.
It's a weird default, though.
- Sun Apr 07, 2019 9:47 pm
- Forum: C++ Development
- Topic: wxCommandProcessor wrongly updates menu strings.
- Replies: 3
- Views: 698
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 tim...