9,504 questions
0
votes
1
answer
134
views
Horizontal scrollbar on tkinter treeview is not working
I am using tkinter, pandas and treeview.
The treeview is to display an excel file via filedialog with 15 columns, which is very lengthy, hence I needed a horizontal scrollbar.
However the scrollbar ...
0
votes
1
answer
84
views
How can I Set Focus to an item property in a TreeView
Set Focus to an item property in a TreeView
The TreeView looks like:
<TreeView
Name="Tree"
BorderThickness="0"
ItemsSource="{Binding Items}">
<...
0
votes
1
answer
100
views
WPF TreeView how to align the control?
I want to build a web page–like effect that displays a directory tree with multi-level nesting. The left side should show the directory names, and the right side should display operation buttons ...
1
vote
1
answer
161
views
LeetCode 199. Binary Tree Right Side View constant memory complexity
I'm trying to solve LeetCode 199.
Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
I've ...
4
votes
2
answers
161
views
ToolTip.Popup event not firing with ToolTip.Show() in .NET Framework
I have an old WinForms application with a normal TreeView, where I need to show customized tooltips for individual nodes.
I am using a ToolTip component (OwnerDraw=true and IsBalloon=false), and I ...
5
votes
1
answer
168
views
How to get folders and their subfolders with their paths?
// data fetched from database, it's dynamic
$treeData = [
['id' => 1, 'name' => 'Root A', 'parent_id' => 0],
['id' => 2, 'name' => 'Child A', 'parent_id' => 1],
['id' =&...
4
votes
1
answer
106
views
Customized tooltip for TreeView nodes fails due to the Popup event not firing
We have an old (very old) WinForms application that depended on some 3rd party components that we are no longer allowed to use. One of those components was used to display tooltips on individual nodes ...
1
vote
1
answer
118
views
C# WPF strict MVVM: Basic TreeView SelectedItem ViewModel Problem
I’m trying to bind the SelectedItem of a WPF TreeView to a property in my MainViewModel in a pure MVVM setup (no code-behind).
Since TreeView.SelectedItem is not a dependency property, I created an ...
0
votes
1
answer
50
views
I am attempting to bind a WPF TreeViewItem to a TreeView and I'm getting an empty TreeView and two binding failures
I am building the framework of a MVVM app. I'm currently working on a simple TreeView contained in a UserControl. I have set the context to my ViewModel and have been able to successfully bind ...
0
votes
1
answer
206
views
Memory exception when adding a node to a Win32 TreeView (in code that has been working for 2+ years!)
I am getting a memory exception in (unchanged) code that has been working for 2+ years (code is unchanged, in a Git repo).
Here's the code that is causing the exception:
HTREEITEM getTreeNode(HWND ...
1
vote
1
answer
112
views
Delphi TTreeeView Horizontal Scroll and custom item draw
We have implementation that uses OnCustomDrawItemEvent of treeview to draw items.
NodeRect := Node.DisplayRect(true);
TextRect(NodeRect,NodeRect.Left, NodeRect.Top, sometext);
The issue is that some ...
1
vote
2
answers
155
views
Treeview with checkboxes in Delphi and use of csPartial
I want to achieve the following (using Delphi 12.2):
A TreeView with Checkboxes and two levels (each parent node has two or more child nodes, but no grandchild nodes).
Click a parent node: it becomes ...
0
votes
1
answer
95
views
Changing the tree node text color conditionally
The following Javascript code used when initializing the tree region to colorize the tree node texts.
function( options ) {
options.makeNodeAdapter = function(data, types, hasIdentity) {
...
1
vote
1
answer
68
views
Hierarchical treeview from mysql data
I need help to build a hierarchical treeview taking data from a mysql table with these columns: ID, ID_parent, Description. I managed to fill only the first level list and I need to create a function ...
0
votes
1
answer
121
views
Selection item in treeview tkinter python
I want to get the index of a row in a Tkinter treeview without clicking on the row.
I have a three-column treeview that displays correctly.
In the first column, I have values, each unique.
For example,...