PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WD21] Navigating TreeView Control
[WD21] Navigating TreeView Control
Started by Christine Wagner, Jun., 20 2017 9:36 AM - 2 replies
Connect yourself…
Christine Wagner
#1
Posted on June, 20 2017 - 9:36 AM
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
Report
0
0
Fabrice Harari
#2
Posted on June, 20 2017 - 1:49 PM
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
Report
0
1
Christine Wagner
#3
Posted on June, 23 2017 - 5:03 PM
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text