2010/8/6 Matti <math.e...@t-online.de>

> I don't understand why you want to handle this with menus.
> If you want "to browse the directory structure and to point to the desired
> folder", it's done with a Dialog:
>
>  DIM myPath as String
>  Dialog.Title = "Look for the mobile phone"
>  Dialog.Path = System.Path
>  If Dialog.SelectDirectory() Then Return
>  myPath = Dialog.Path
>  Print myPath
>
> Instead of 'System.Path' you could define any start folder.
> And afterwards you can copy things easily to myPath on the phone.
>
> Or do I misunderstand you completely?
> Matti
>
> Am 06.08.2010 17:36, schrieb M. Cs.:
> > My goal: Let's have a mobile phone, and I would like to send data
> (images,
> > mp3) to the phone, but I don't know how the directory structure of that
> > certain phone would look like. I would like to have a "Send to:" option
> > which is present for e.g  in Konqueror, which would enable me to browse
> the
> > directory structure and to point to the desired folder. I've tried to
> create
> > arrays of Menus, but it isn't possible.
> > Usually I define a fixed number of submenus inside the subroutine:
> >
> > PUBLIC SUB Element_Menu()
> > DIM menu1,menu2,....menuN AS Menu
> > menu1=NEW Menu(container)
> > menu1.Text=....
> > menu1.Action=....
> >
> > END
> >
> > And the Actions are global variables of the containing Form, which are
> > raised inside the subroutine
> > Action_Activate()
> >
> > Is there another approach? This all is only for static number of
> elements.
> > I'd like to create a menu-tree. How if possible?
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by
> >
> > Make an app they can't live without
> > Enter the BlackBerry Developer Challenge
> > http://p.sf.net/sfu/RIM-dev2dev
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Yes, you did:
Let's say I have a TableView with elements (files) which could be copied
onto a USB device. I have a popup menu attached to that TableView, and if
I'd invoke right-click over an element, the program would inspect whether
there are USB devices attached to the PC, and if yes, it would offer to
choose between them (right now it works with max. 2 devices) and it would
build the directory tree of the choosen device and I could point to the
folder 'playlists' for example, and the program would copy the element into
USB's ~/.../playlists folder.
Why? Because it's more elegant way than the dialogs! It already works for
the USB device's root folder but no deeper. Is it clear now?
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to