Create Icon


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Create Icon
# 1  
Old 11-12-2006
Create Icon

Dear Gurus,

I have a question.

I have juz created an icon for my user.

When I try to run the application (ie double-click) there are nothing being activated.

This is the content of the TEST_APP.dt

ACTION TEST_APP
{
LABEL TEST_APP
TYPE COMMAND
EXEC_STRING /spsummit/scripts/TEST_APP.csh
ICON DtScrn
WINDOW_TYPE NO_STDIO (what does this means?)

}

Any suggestions? Smilie

Thanks.

wee
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is it possible to change shell icon?

I have an application that runs through bash shell and i want to change the shell icon , so when i copy my application to another computer the shell can still run , can i do that ? because i try with .desktop its failed (0 Replies)
Discussion started by: caladblog
0 Replies

2. UNIX for Dummies Questions & Answers

launchctl loads app with icon (OS X)

We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. So we decided to use launchctl to load the daemon manually. When we do it this way, though, the... (4 Replies)
Discussion started by: nextyoyoma
4 Replies

3. UNIX for Dummies Questions & Answers

icon

up graded lost log out power off icon how reinstall:wall: (2 Replies)
Discussion started by: flight
2 Replies

4. Post Here to Contact Site Administrators and Moderators

New Icon

Hi, I just observed we have a new icon (the "ULF" thing) for the forum. Its really nice to see continuous changes to make things better; whether it's small or big. Appreciations to all moderators and admins. Regards, Anchal Khare (2 Replies)
Discussion started by: clx
2 Replies

5. UNIX Desktop Questions & Answers

Controlling icon placement?

Hi, I'm using xterm and aixterm with Mwm on AIX, and having trouble controlling icon placement when minimising windows. Basically when I run an xterm or aixterm I want to be able to specify where the icon will be if minimised. The man page mentions the "#geometry Geometry" option to aixterm,... (1 Reply)
Discussion started by: cunningdavid
1 Replies

6. AIX

Aixterm icon placement?

Hi, I'm using xterm and aixterm with Mwm on AIX, and having trouble controlling icon placement when minimising windows. Basically when I run an xterm or aixterm I want to be able to specify where the icon will be if minimised. The man page mentions the "#geometry Geometry" option to aixterm,... (1 Reply)
Discussion started by: cunningdavid
1 Replies

7. Post Here to Contact Site Administrators and Moderators

Add more icon for logout

Suggestion: Can all pages add a icon for logout? I just found that only the main page has it.:) (0 Replies)
Discussion started by: tikual
0 Replies

8. UNIX for Dummies Questions & Answers

Change an Icon

Dear Experts I have made an Icon and now I am going to change a file Icon to new one. I am using Solaris 8. 1- What is the best format to save an Icon 2- How can I change the Icon of a certain type or just one file or folder to the new Icon which I have designed. Any advises would be highly... (1 Reply)
Discussion started by: Reza Nazarian
1 Replies
Login or Register to Ask a Question
tktray(3tk)							      tktray							       tktray(3tk)

NAME
tktray - System Tray Icon Support for Tk on X11 SYNOPSIS
package require Tcl 8.4 package require tktray ?1.0? tktray::icon pathName ?options? pathName balloon message ?msec_timeout? pathName cancel message_handle pathName bbox pathName cget option pathName configure ?options? pathName docked pathName orientation DESCRIPTION
Tktray is an extension that is able to create system tray icons. It follows http://www.freedesktop.org specifications when looking up the system tray manager. This protocol is supported by modern versions of KDE and Gnome panels, and by some other panel-like application. COMMANDS
tktray::icon pathName ?options? Create a new icon for the system tray. The application managing the system tray is notified about the new icon. It normally results in the icon being added to the tray. If there is no system tray at the icon creation time, the icon will be invisible. When a new system tray appears, the icon will be added to it. Since tktray 1.3, if the tray crashes and destroys your icon, it will be recreated on a new system tray when it's available. -class WM_CLASS attribute for icon window. Tray manager may use class name to remember icon position or other attributes. This name may be used for event binding as well. For now, real icon window is distinct from the user-specified widget: it may be recreated and destroyed several times during icon lifetime, when a system tray crashes, terminates, disappears or appears. However, tktray tries to forward click and motion events from this inner window to user widget, so event bindings on widget name should work as they used to. This option applies to a real icon window, not to a user-visible widget, so don't rely on it to set widget defaults from an option database: the standard "TrayIcon" class name is used for it. -docked boolean indicating whether the real icon window should be embedded into a tray when it exists. Think of it as a heavier ver- sion of -visible option: there is a guarantee that no place for icon will be reserved on any tray. -image image to show in the system tray. Since tktray 1.3, image type "photo" is not mandatory anymore. Icon will be automatically redrawn on any image modifications. For Tk, deleting an image and creating an image with the same name later is a kind of image modification, and tktray follows this convention. Photo image operations that modify existing image content are another example of events triggering redisplay. Requested size for icon is set according to the image's width and height, but obeying (or disobeying) this request is left for the tray. -shape used to put a nonrectangular shape on an icon window. Ignored for compatibility. -visible boolean value indicating whether the icon must be visible. The system tray manager continues to manage the icon whether it is visible or not. Thus when invisible icon becomes visible, its position on the system tray is likely to remain the same. Tktray currently tries to find a tray and embed into it as soon as possible, whether -visible is true or not. _XEMBED_INFO property is set for embedded window: a tray should show or hide an icon depending on this property. There may be, and indeed are, incomplete tray implementations ignoring _XEMBED_INFO (ex. docker). Gnome-panel "unmaps" an icon by making it one pixel wide, that might to be what you expect. For those implementations, the place for an icon will be reserved but no image will be displayed: tktray takes care of it. Tktray also blocks mouse event forwarding for invisible icons, so you may be confident that no <Button> bindings will be invoked at this time. pathName balloon message ?msec_timeout? Post a message that any decent tray implementation would show alongside the icon (or a place allocated for it). The message will disappear automatically after $msec_timeout milliseconds. Unfortunately, there is absolutely no way to know if the tray supports this feature, so don't rely on it for any critical information to be delivered. When no timeout or zero timeout is given, the mes- sage should not be hidden without user action (usually a mouse click). The return value is an integer, a message handle that may be used for cancelling the message before timeout expiration, or zero if there is currently no system tray to handle the request. pathName cancel message_handle Cancel an earlier-posted balloon message. Zero message_handle is silently ignored. If there is no message with this handle, or its timeout has expired, or it was posted to another system tray and is unknow to the current one, nothing bad should happen (but it depends on the tray implementation). pathName bbox Get the list of left, top, right and bottom coordinates of the icon relative to the root window of the icon's screen. This command should be used in preference to winfo rootx and winfo rooty to get icon location, though the latter may seem to work on your system. Bounding box information is updated asynchronously. Don't rely on its correctness on script startup, just after icon creation. This command is for event handlers: on <ButtonPress-3> you'd like to have a popup menu, but where it should be posted? Use %W bbox to determine it right at the moment when a click happened. pathName cget option Retrieve current option value as set by the caller. pathName configure ?options? Modify icon's options after it was created. pathName docked Query icon if it's currently embedded into some system tray. Invisible icons may be docked too (and tktray strives for it). If this method returns false, the icon is not visible to anyone, and no chance to get balloon messages displayed. pathName orientation Query orientation of a system tray that is currently embedding the icon. WINDOW MANAGEMENT
Current implementation of tktray is designed to present an interface of a usual toplevel window, but there are some important differences (some of them may come up later). System Tray specification is based on XEMBED protocol, and the later has a problem: when the embedder crashes, nothing can prevent embedded windows from destruction. Since tktray 1.3, no explicit icon recreation code is required on Tcl level. The widget was split in two: one represented by a caller-specified name, and another (currently $path.inner) that exists only when a tray is available (and dies and comes back and so on). This solution has some disadvantages as well. User-created widget is not mapped at all, thus it can't be used any more as a parent for other widgets, showing them instead of an image. A temporal inner window, however, may contain widgets. This version introduces three virtual events: <<IconCreate>> <<IconConfigure>> and <<IconDestroy>>. <<IconCreate>> is generated when dock- ing is requesting for an icon. <<IconConfigure>> is generated when an icon window is resized or changed in some other way. <<IconDestroy>> is generated when an icon is destroyed due to panel crash or undocked with unsetting -docked option. AUTHORS
Anton Kovalenko See http://www.sw4me.com/wiki/Tktray. KEYWORDS
icons, system tray, taskbar COPYRIGHT
Copyright (c) 2005, Anton Kovalenko tktray 1.0 tktray(3tk)