Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filling Outline control with dir. structure
Message
From
12/04/1998 13:38:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/04/1998 05:11:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00087549
Message ID:
00091384
Views:
30
>Hi Dezider,
>You have already answered yourself I think. Then do something like this :
>- Just create first level + one dummy node for nodes deeper than one

Another approach: have different icons for directories and files (and no dummy node). So if user clicks on a directory, check if it's filled already; if it isn't apply the technique (lock screen, add nodes on the level below, expand, unlock screen); if it is filled, just DoDefault().

It simply amounts to knowing if a node is expandable or not - in Cetin's method, it is if it has a dummy node. In mine, it is if it's a directory. BTW, if you're building from Adir(), beware of . and .. directories - they will be included in the array, and you'll have to skip them - you don't need them since you already have higher level nodes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform