PtFileSel in single level

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks

Can you post an example of your code ?
-Misha.
“Otto Mixa” <ottomixa@email.cz> wrote in message
news:3E281AD0.6080401@email.cz

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks

It would be great if you send the entire app to me.
-Misha.
“Otto Mixa” <ottomixa@email.cz> wrote in message
news:3E281F58.5050800@email.cz

Its generated from PhAB, so which pieces you want post from me?


Misha Nefedov wrote:
Can you post an example of your code ?
-Misha.
“Otto Mixa” <> ottomixa@email.cz> > wrote in message
news:> 3E281AD0.6080401@email.cz> …

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks


\

Its generated from PhAB, so which pieces you want post from me?


Misha Nefedov wrote:

Can you post an example of your code ?
-Misha.
“Otto Mixa” <> ottomixa@email.cz> > wrote in message
news:> 3E281AD0.6080401@email.cz> …

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks
\

Sorry, I just realized what the problem is.
The /dev, /fs, /proc do not exist on you hard drive file system, so it is
expected for these directories to not have the ‘…’ entry.
In your code you can detect when the ‘…’ is not present (use Pt_CB_FS_STATE
to find out when the directory reading is completed) and then use the
PtFSAddFirst() to add the ‘…’ entry into your PtFileSel widget.
-Misha.

“Otto Mixa” <ottomixa@email.cz> wrote in message
news:3E281AD0.6080401@email.cz

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks

Thanks a lot,
I will try manage my code for handle this kind of handicap :slight_smile:
Otto


“Misha Nefedov” <mnefedov@qnx.com> wrote in message
news:b09773$fnl$1@inn.qnx.com

Sorry, I just realized what the problem is.
The /dev, /fs, /proc do not exist on you hard drive file system, so it is
expected for these directories to not have the ‘…’ entry.
In your code you can detect when the ‘…’ is not present (use
Pt_CB_FS_STATE
to find out when the directory reading is completed) and then use the
PtFSAddFirst() to add the ‘…’ entry into your PtFileSel widget.
-Misha.

“Otto Mixa” <> ottomixa@email.cz> > wrote in message
news:> 3E281AD0.6080401@email.cz> …
Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks

Hello,
I tried it with PtFSAllocItem and PtFSAddFirst in Pt_CB_FS_STATE, but my
problem is when I’m trying in Pt_FS_STATE_START section any item isn’t
added, if I’m move code to Pt_FS_STATE_END than item is added,but if I’m
move cursor to this item ahole app. is terminated.
Can you please help me?
Thanks a lot.

Misha Nefedov wrote:

Sorry, I just realized what the problem is.
The /dev, /fs, /proc do not exist on you hard drive file system, so it is
expected for these directories to not have the ‘…’ entry.
In your code you can detect when the ‘…’ is not present (use Pt_CB_FS_STATE
to find out when the directory reading is completed) and then use the
PtFSAddFirst() to add the ‘…’ entry into your PtFileSel widget.
-Misha.

“Otto Mixa” <> ottomixa@email.cz> > wrote in message
news:> 3E281AD0.6080401@email.cz> …

Hello,
I’m trying play with PtFileSel widget and in single level mode I have
got small problem… in all directories I have got … to go back level
up exept directories /dev , /fs , /proc .Is that have got some reason or
I have got something wrongly set up.
Thanks
\