Problem with poppath

Discuss GUI programming with the RapaGUI plugin here
Post Reply
papiosaur
Posts: 213
Joined: Fri Mar 31, 2023 1:34 pm

Problem with poppath

Post by papiosaur »

Hello,

i've a problem with poppath...

i would like to select a drawer and add it in a lister.

The problem in the poppath i can select a drawer entry AND a file entry... (under MorphOS)

When i add the drawer in the lister i have 2 entries... first for drawer and a second (blank) for the file not selected...

If i click on this second blank entry in the lister, seems i have the root path.....
papiosaur
Posts: 213
Joined: Fri Mar 31, 2023 1:34 pm

Re: Problem with poppath

Post by papiosaur »

Ok i have found the problem

i would like delete the path in the poppath after have added the drawer in the lister with this command:

moai.set("path0", "path", "")

path0 is the id of the poppath

but in fact it create a new blank entry in the lister after the first entry (drawer selected) like the "root" drawer...

Any idea if it's a bug ?

Do you have another solution to remove the path name after have added the path drawer in the list please?
User avatar
jPV
Posts: 675
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Problem with poppath

Post by jPV »

papiosaur wrote: Mon Sep 30, 2024 4:43 pmmoai.set("path0", "path", "")
As you most likely have set a notification for the poppath, it will trigger every time the contents of the poppath string changes. In this case the notification will get triggered when you change the contents to an empty string too.

But luckily you can disable notifications with MOAI.NoNotify when you change contents manually:

Code: Select all

moai.set("path0", "path", "", "nonotify", true)
papiosaur
Posts: 213
Joined: Fri Mar 31, 2023 1:34 pm

Re: Problem with poppath

Post by papiosaur »

Ha ouf!!!

i think there was a problem with RapaGui.

Thanks a lot jPV!!!
Post Reply