FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
[WD21] Navigating TreeView Control
[WD21] Navigating TreeView Control
Iniciado por Christine Wagner, 20,jun. 2017 09:36 - 2 respuestas
Conéctese…
Christine Wagner
#1
Publicado el 20,junio 2017 - 09:36
I'm using a TreeView to navigate between different topics. The TreeView has only three levels. Here is an example
Topics Open Topics Topic 1 Topic 2 Closed Topics Topic 3 Topic 4 The Topics may have the same name, so I'm using the duplicate functionality. On Click I'm showing the details of the topic on the right side of the window.
Everything works so far.
Now my problem:
We want to allow the user to navigate this tree using PageUp and PageDown (as is default in the rest of our application). I created a Button with PageDown as Shortcut. So far so good.
But I found no possibility to get the next node of the tree. The code should be something like
sCurPath is string = TreeSelect(TREE,true) //TODO get next node TreeSelectPlus(TREE,sNextPath) Any idea how to implement this "TODO get next node"?
Best regards
Christine Wagner
Informar
0
0
Fabrice Harari
#2
Publicado el 20,junio 2017 - 13:49
Hi Christine,
you can create a SelectNextLine function by doing:
- a TreeListItem to get the tree content in an orderly manner,
- then loop in the result to find your current position
- get the next one
- do a TreeSelectPlus of it
Best regards
Informar
0
1
Christine Wagner
#3
Publicado el 23,junio 2017 - 17:03
Hi Fabrice,
thank you for your answer. I tried to get it to work, but time ran out. So now we decided to skip this navigation. Perhaps I will try it again at a later time.
Best regards
Christine Wagner
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto