Page 1 of 1

How do I pre populate the Poppath Gadget

Posted: Fri Mar 29, 2024 12:18 pm
by Redlion
Hi,

Just trying to get the Poppath gadget working in RapaGUI (OS4), I would like to have the PopPath gadget show the current directory when it first comes up.

When you click the browse button to the side then select a directory and press OK, it will only show the directory you selected and not the whole path.

Is there a way to make it show the full path of the selected directory.

Ive tried

Code: Select all

moai.set("parentdir", "Path", "DH4:")
I even tried to insert it on creation of the Dialogue

But it does not work.

Anyone got any clues.

Cheers
Leo

Re: How do I pre populate the Poppath Gadget

Posted: Mon Apr 08, 2024 7:48 pm
by airsoftsoftwair
The fact that relative paths will appear in the Poppath gadget in case you select a relative path in the file requester is just how MUI behaves here. Of course I could change that by making Poppath always use absolute paths but this would mean fiddling with MUI classes default behaviour and I'm not sure if it's a good idea.

However, manually setting Poppath.Path works fine here and it can easily be used to work around the issue by listening to Poppath.Path changes and then changing relative to absolute paths. Can you post an MCVE that sets Poppath.Path but doesn't work?