Search found 438 matches

by ollydbg23
Mon Jul 10, 2023 8:43 am
Forum: C++ Development
Topic: wxDataViewCtrl how to Hide the RootItem
Replies: 18
Views: 6157

Re: wxDataViewCtrl how to Hide the RootItem

"MyMusicTreeModel" needs to be modified for this. unsigned int MyMusicTreeModel::GetChildren( const wxDataViewItem &parent, wxDataViewItemArray &array ) const { MyMusicTreeModelNode *node = (MyMusicTreeModelNode*) parent.GetID(); if (!node) { return GetChildren( wxDataViewItem(m_r...
by ollydbg23
Mon Jul 10, 2023 8:26 am
Forum: C++ Development
Topic: wxDataViewCtrl how to Hide the RootItem
Replies: 18
Views: 6157

Re: wxDataViewCtrl how to Hide the RootItem

Hello, I'm also a beginner of using wxDataViewCtrl, and I'm try the way doublemax suggest. I mean I would like to show only the tree node "Pop music" and "Classical music", but NOT the "root" (My Music) node in the dataview sample. but I see a similar issue reported by ...
by ollydbg23
Thu Jul 06, 2023 2:01 am
Forum: C++ Development
Topic: How to drag and move an item(a row) in the wxDataViewCtrl class
Replies: 0
Views: 71644

How to drag and move an item(a row) in the wxDataViewCtrl class

Hi, I try to use the wxDataViewCtrl, and the sample code "dataview" is the few code reference I can use. In-fact, I see this "dataview" sample is one of the most complex sample I see in wx sample codes. What I need is to move a low from one "container" to another "...
by ollydbg23
Sun Jul 02, 2023 1:41 am
Forum: C++ Development
Topic: ask for suggestion: drag and drop support for the treelist like control
Replies: 7
Views: 1062

Re: ask for suggestion: drag and drop support for the treelist like control

I'm looking at the document: wxWidgets: wxTreeListCtrl Class Reference , it looks like the wxTreeListCtrl is what I need, but this control does not have the row drag and drop feature. :( While, this control is internally implemented by the wxWidgets: wxDataViewCtrl Class Reference , and wxDataViewCt...
by ollydbg23
Sun Jul 02, 2023 1:17 am
Forum: C++ Development
Topic: ask for suggestion: drag and drop support for the treelist like control
Replies: 7
Views: 1062

Re: ask for suggestion: drag and drop support for the treelist like control

Hi, Isn't it what you want on the left? Just make tree control and list control side by side. Thank you. Well, from your suggestion, I would like to make the height of the tree node exactly the height of the list control. If I drag the tree node or the list row, I would also move the corresponding ...
by ollydbg23
Sat Jul 01, 2023 1:18 pm
Forum: C++ Development
Topic: ask for suggestion: drag and drop support for the treelist like control
Replies: 7
Views: 1062

Re: ask for suggestion: drag and drop support for the treelist like control

ONEEYEMAN wrote: Sat Jul 01, 2023 11:07 am Hi,
Did you try the widgets sample for tree control?

Thank you
Yes. I have tried the "treectrl" sample. But this sample can not show the "property1, property2" columns in my previous reply. It can only shows the hierarchy of the node. So, I can't use the wxTreeCtrl.
by ollydbg23
Sat Jul 01, 2023 4:21 am
Forum: C++ Development
Topic: ask for suggestion: drag and drop support for the treelist like control
Replies: 7
Views: 1062

Re: ask for suggestion: drag and drop support for the treelist like control

Hi, Why not using wxTreeCtrl and wxListCtrl inside wxSplitter? Thank you Oh, no, I can't use this method. Originally, I have using wxGrid, but I see wxGrid can't drag and drop, see this ticket: wxGrid row move by draging support patchs · Issue #10177 · wxWidgets/wxWidgets . And my wxGrid could some...
by ollydbg23
Sat Jul 01, 2023 3:40 am
Forum: C++ Development
Topic: Can the StyledTextCtrl control highlight the cursor position?
Replies: 2
Views: 1127

Re: Can the StyledTextCtrl control highlight the cursor position?

1, you can ask question on scintilla's forum, that forum may give your more information.
2, I don't see multiple caret, but it looks like if you would like to multiple select text or edit on multiple places, you will have multiple caret shown on the control.

Good luck.
by ollydbg23
Sat Jul 01, 2023 3:27 am
Forum: C++ Development
Topic: ask for suggestion: drag and drop support for the treelist like control
Replies: 7
Views: 1062

ask for suggestion: drag and drop support for the treelist like control

Hi, I would like to create a treelist like control. In the left, it could be a tree(category), and in the right, it could have many columns, and like a list. I have looked at the samples, there are some similar controls: 1, the wxDataViewCtrl, when run the sample, I see the first panel named "M...
by ollydbg23
Sat Jul 01, 2023 3:18 am
Forum: wxWidgets Development (Chinese)
Topic: stc.StyledTextCtrl控件可以对光标位置高亮吗?
Replies: 1
Views: 1995

Re: stc.StyledTextCtrl控件可以对光标位置高亮吗?

你这个需求太高级了,没用过这种功能。不过建议你可以去scintilla的论坛或者邮件列表问问,因为核心控件是这个scintilla。
by ollydbg23
Sat May 27, 2023 11:48 am
Forum: C++ Development
Topic: How to update the VBO data if the OpenGL context is NOT active
Replies: 6
Views: 876

Re: How to update the VBO data if the OpenGL context is NOT active

doublemax wrote: Sat May 27, 2023 11:30 am Yes, i understood all that. But the solution is still the same and rather obvious: You need to change your code accordingly and make changes to the glcontext only when you're allowed to select it.
OK, thanks for the help! I will try to make some fix for my code.
by ollydbg23
Sat May 27, 2023 11:13 am
Forum: C++ Development
Topic: How to update the VBO data if the OpenGL context is NOT active
Replies: 6
Views: 876

Re: How to update the VBO data if the OpenGL context is NOT active

I try to describe my issue in a more compact way. The first thing I'd like to say is that a context contains everything for a OpenGL window(such as wxGLCanvas). Contexts are localized within a particular process of execution (an application, more or less) on an operating system. A process can create...
by ollydbg23
Sat May 27, 2023 1:36 am
Forum: C++ Development
Topic: How to update the VBO data if the OpenGL context is NOT active
Replies: 6
Views: 876

Re: How to update the VBO data if the OpenGL context is NOT active

There is no need to update the visual content if the window is hidden. I agree, there is no need to refresh the window if it is hidden. But In my mind, I think update the VBO is just prepare the content. So, in my code, I usually have some function: void UpdateContent(); // this update the VBO, whi...
by ollydbg23
Fri May 26, 2023 2:10 am
Forum: C++ Development
Topic: How to update the VBO data if the OpenGL context is NOT active
Replies: 6
Views: 876

How to update the VBO data if the OpenGL context is NOT active

Hi, in my program, I have two wxGLCanvas which belong to the wxAuiNotebook, say a glWin0 and glWin1. Each windows has its own OpenGL context. Now, when some things happens, I have to update the content(basically the VBO in each window, and refersh the window). But I have an issue that if the window ...
by ollydbg23
Mon May 08, 2023 10:51 pm
Forum: C++ Development
Topic: a dll loads a bitmap from dll's own resource
Replies: 12
Views: 3040

Re: a dll loads a bitmap from dll's own resource

It may be confusing, but it is what it is...
Thanks. I am wondering why c++ file needs a RT_ prefix for the identifier. But that may be by design.