Discussion of article "Graphical Interfaces VIII: The Tree View Element (Chapter 2)"

 

New article Graphical Interfaces VIII: The Tree View Element (Chapter 2) has been published:

The previous chapter of part VIII on graphical interfaces has focused on the elements of static and drop-down calendar. The second chapter will be dedicated to an equally complex element — a tree view, that is included in every complete library used for creating graphical interfaces. A tree view implemented in this article contains multiple flexible settings and modes, thus allowing to adjust this element of control to your needs.

The components of the tree view item are listed below.

  1. Background
  2. Sign of local list of items. Arrows and plus/minus pictograms are used to display the status (expanded/collapsed).
  3. Item label. For example, it may be required to visually classify an item to a certain category. 
  4. Item description as a text.



 

Fig. 3. Components of a tree view item.

Author: Anatoli Kazharski

 

Good afternoon.


This article is 4 years old. My comment will be the first one.

1. Is there some quick way how to update the list of files in a directory?

2. I'm having trouble selecting the null item in the list in the Files directory. The m_navigator.SelectedFile() Returns an empty value ""

(Example on gif, when you click on the button, the status bar shows the file name).


Anatoly, Thank you very much for your work!

Files:
qqqq.gif  541 kb
 

Есть какой-то быстрый способ как обновить список файлов в директории?

Is there a quick way to update the list of files in the directory?
How Can I change the treeview quickly?
 
i think that there's a problem on delete function on the treeview , cuz whrn i try to delete it , i got an Error invalid pointer access in 'WndEvents.mqh' (524,36) ...