How do I pre populate the Poppath Gadget

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
Redlion
Posts: 96
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

How do I pre populate the Poppath Gadget

Post 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
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How do I pre populate the Poppath Gadget

Post 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?
Post Reply