custom contextual menus
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
custom contextual menus
I am interested in learning about how to create a custom contextual menu so I can manage and integrate repetitive tasks without having to
access the standard menu bar. I should also say that my goal would be to use the same code across platforms, at least for windows and MAC OSX
I looked into the dictionary and could find no information on this, I also checked the PDF users manual and searched but was unable to find any meaningful information.
If anyone knows of a resource not listed that could guide me in the right direction, please let me know.
Tim
access the standard menu bar. I should also say that my goal would be to use the same code across platforms, at least for windows and MAC OSX
I looked into the dictionary and could find no information on this, I also checked the PDF users manual and searched but was unable to find any meaningful information.
If anyone knows of a resource not listed that could guide me in the right direction, please let me know.
Tim
Re: custom contextual menus
No way.I should also say that my goal would be to use the same code across platforms, at least for windows and MAC OS X.
In Windows, it is a Registry entry with a command line. Mac OS X needs a custom plugin and under Linux it depends which desktop environment you use (Gnome, KDE, …).
It is doable but with custom platform specific code.
Windows
Mac OS X [1] [2]
Linux (Gnome) [1] [2]
Under Linux I would investigate the gnome-open-terminal plugin for Nautilus.
Robert
-
- VIP Livecode Opensource Backer
- Posts: 10057
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: custom contextual menus
Tim, did you mean within your app or system-wide?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: custom contextual menus
Hi, thanks for the reply, I was hoping to find a method of using it from within a standalone app, I was looking at some other methods of doing that, I just could not find anything in black and white, on creating a custom contextual menu item, thanks for any suggestion, I appreciate it,
Re: custom contextual menus
Tim,
we still have no idea about what you want to do with these contextmenus?
See Richards question!
Best
Klaus
we still have no idea about what you want to do with these contextmenus?
See Richards question!
Best
Klaus
Re: custom contextual menus
Oh yes, I see, pardon, now that I look at it again, so a contextual menu only inside my app, will only be available to my app, and no where else.
where as system wide, (say a utility for launching an app or performing a scripted function) would be available even as sort of a standalone context menu.
I can see a use for both of those situations, I think being able to define a scripted function to be added to a contextual menu, would be the ideal approach.
for example, if I have a list of data in txt format, and I want to launch and then define that action, so that it is available to the contextual menu,
crude apple script, I imagine there should be some equiv live code script for doing the same thing.
where as system wide, (say a utility for launching an app or performing a scripted function) would be available even as sort of a standalone context menu.
I can see a use for both of those situations, I think being able to define a scripted function to be added to a contextual menu, would be the ideal approach.
for example, if I have a list of data in txt format, and I want to launch and then define that action, so that it is available to the contextual menu,
crude apple script, I imagine there should be some equiv live code script for doing the same thing.
Code: Select all
set urlList (variable of urls from urlList.txt) set numURLs to (count urlList)
set url List to myvarlist.txt tell application "Safari|Firefox"
activate
tell application "System Events"
keystroke (item 1 of urlList)
key code 36
repeat with i from 2 to (numURLs)
Re: custom contextual menus
RRobert wrote:No way.I should also say that my goal would be to use the same code across platforms, at least for windows and MAC OS X.
In Windows, it is a Registry entry with a command line. Mac OS X needs a custom plugin and under Linux it depends which desktop environment you use (Gnome, KDE, …).
It is doable but with custom platform specific code.
Windows
Mac OS X [1] [2]
Linux (Gnome) [1] [2]
Under Linux I would investigate the gnome-open-terminal plugin for Nautilus.
Thanks Robert, I missed your reply, I can see how that would work, and thanks for the links I will investigate those now
Robert