Example - setting icons on BD windows

This is not a question. I'm just parking some code for this IE idea - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Different-Icons-for-FP-BD-Project-windows-in-windows-taskbar/idi-p/1003270
So the following VI (LV 2011) detects the activation of VI windows (meaning that they get focus) and if it's a BD window, it changes its window icon.
Some comments on this:
This is just a demo. It's not an actual tool.
As such, it's really not finalized. I only ran it on 32 bit XP. I don't know how it would work on other systems. I didn't add any error handling (like calling GetLastError and FormatMessage). The VI has to be run manually and stay open, etc.
For something like this to really be useful, you actually need a service which will hook the creation of new windows, but you can't do that in LV.
It might be more usable if this was run as an external program, but I'm guessing you can't get the VI activation event remotely and you would still need to know the VI server details of all LV versions.
It might be possible to run this on a private context, but I have no experience with that.
Note - the file is a zip file.

I forget what the limits in Windows are, but they're a lot bigger than the size you need. I just set my classpath to that string in Windows 2000 with no problem. I believe Windows has a limit on the total size of the environment: maybe you have a whole lot of other environment variables set that you could dump. More likely, the problem has nothing to do with a Windows size limit, and you're getting cut off somewhere else.

Similar Messages

  • How to set different icons for different windows which is seen in the top left corner?

    Hi
    How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
    Is there any way to set icon by calling any dlls.
    Thanks & Regards
    Samuel J
    [email protected]

    Hi Sam,
    no problem. See the attachment.
    Mike
    Attachments:
    TestIcon_LV85.zip ‏44 KB

  • Setting up Private Browsing window to open up when Safari icon is clicked on first.

    Setting up Private Browsing window to open up when only Safari icon is clicked on first, and remains after shut down.

    Hi css,
    Welcome to the Apple Support Communities!
    I understand that you would like to click on Safari in your Dock and have it open a new Safari Window. As you said in your post, clicking on Safari in the Dock brings the Safari window forward. There are a couple of possibilities to help resolve this situation. You can control-click (right click if enabled) on Safari in your Dock which will give you the option to open a new window. You can also click and hold on Safari, otherwise known as Press, to display these same options.
    Mac OS X: Additional features of the Dock - Apple Support
    Mouse clicks and key combinations for the Dock
    Control-click
    Reveals contextual menu for item. Menu choices vary per application or file. When used on Dock separator, it reveals Dock preferences. There you can turn magnification and hiding on or off, change the position of the Dock on screen, and change the minimization effect. Choose Dock Preferences to see more options.
    Press
    Reveals contextual menu for item. Menu choices vary per application or file.
    Cheers,
    Joe

  • Setting icon

    Hi guys,
    Does anybody know how to set the icon of a particular file format in java, for example set all my .amc files so that it displays a specfic .ico file?
    I am using windows xp.
    many thanks

    Are you talking about the JFileChooser dialog? If so it is simple, all you have to do is to create your own customized FileView class, like so:
        public class CustomFileView extends FileView {
            public Icon getIcon(File f) {
                // Return the icon you'd like to show for the file
        JFileChooser fc = new JFileChooser();
        fc.setFileView( new CustomFileView() );

  • Forté Icon in the Window Title Bar.

    Hi,
    I would like to know if it is possible to change the Forté little
    Icon in all windows of our application for our company logo.
    Example:
    <<...OLE_Obj...>> <<Forte.zip>>
    Thank.
    Allen Vachon
    INFLUATEC Inc.
    Programmer Analyst
    (819)/(888) 595-1794
    avachoninfluatec.com

    No. The image will remain in memory until either the VI is closed or IMAQ Dispose.vi is called.
    - If IMAQ WindClose is called, the display window will disappear, but the image in memory will be available in memory for further processing.
    If you use IMAQ WindShow, you have the ability to get the status of the display window (showing or hidden).
    - It also allow you to set if the display window is to show or hide.

  • Setting icon size and sorting in 10.9

    I asked this question in the os X forum. Maybe I can get an answer here.
    The following worked in 10.8 but not in 10.9:
    tell its icon view options
    set icon size to 128
    set shows icon preview to true
    set arrangement to arranged by name
    end tell
    icon size is not set and the icons are not rarranged.
    Apparently icon size is now read only. There must be a way to resize the icons.
    Any ideas?

    For example:
    tell application "Finder"
        activate
        try
            set theName to name of Finder window 1
        on error
            return beep 1 -- no open Finder window
        end try
    end tell
    tell application "System Events" to tell process "Finder"
        tell menu 1 of menu bar item "View" of menu bar 1
            if exists menu item "Show View Options" then keystroke "j" using {command down}
        end tell
        repeat until exists (window 1 whose (title is theName) and (subrole is "AXSystemFloatingWindow"))
        end repeat
        tell window 1
            set value of slider 1 of group 1 to 56.0 -- 128 x 128
            tell checkbox "Show icon preview" of group 1
                if value is 0 then click
            end tell
            click pop up button 1
            keystroke "Name" & return -- arrange by name
            click button 1 -- close
        end tell
    end tell
    You should also have a look at Accessibility Preferences and GUI Scripting.
    Message was edited by: Pierre L.

  • Setting position of desktop window

    Hello,
    I'm probably dreaming, but seems to me I've done this before; no success now.
    This works:
    Tell app "Finder"
    open startup disk
    set position of container window of startup disk to {50,50}
    end tell
    This doesn't:
    Tell app "Finder"
    open file "PT.rtf" of startup disk --this opens properly
    set position of (?) to {50,50} --*
    end tell
    * The goal is to position the window of "PT.rtf"; have tried several things for ?, including a window ID approach, but always get error
    An unrelated (I think) TextEdit question:
    I've created a formatted TextEdit file with AS, setting font characteristics, bounds, etc. -- and then saved it to be called by another script at another time (that works). Is there any way to edit the properties of that file without editing and rerunning the script that originally created it? For example, just changing the bounds? If there is, I haven't found it.
    Thanks

    > The primary question had to do with setting the POSITION (not the bounds) of a TextEdit window on the desktop. This seems to me to be a Finder task
    Why do you think the Finder has anything to do with what another application does with its windows? It sounds like you're confusing desktop with screen. The Finder manages the desktop (disk icons, files on the desktop, etc.), but has no control over what any other application does with its windows.
    If you want to control ApplicationX's windows then you need to tell ApplicationX what to do with them, not the Finder.
    If I dissect your script:
    Tell app "Finder"
    now we're talking to the Finder
    open file "PT.rtf" of startup disk
    This opens the file, as you expect. The Finder uses the system directory to work out which application should handle .rtf files.
    set position of container window of file "PT.rtf" of startup disk to {50,50}
    'container' is a Finder object that relates to the item (folder, disk, etc.) that the target file is in. In this case the 'container' of the PT.rtf file is 'startup disk'
    --or of "window 1 of app "TextEdit"
    This is getting closer, but the Finder can't manipulate other application's objects
    Kel's earlier suggestion is the right approach - once you've opened the document (which, incidentally, doesn't need the Finder at all), you tell TextEdit to set the window position as required. However, the kicker is that you didn't look at TextEdit's dictionary - if you did you'd notice that there isn't any position property for a window in TextEdit - you have to use bounds:
    <pre class=command>tell application "Finder"
    open file "PT.rtf" of startup disk
    end tell
    tell application "TextEdit"
    set {l, t, r, b} to bounds of window 1
    set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
    end tell</pre>
    To explain, 'bounds' represents the four corners of the window - left, top, right, bottom. To reposition the window you provide four new coordinates. In my example, I set the top and left coordinates to 50 and calculate new bottom/right coordinates by adding 50 to the current window height (b-t) and width (r-l).
    Incidentally, this is why I recommend not using the Finder to open the document. While it may be true that on your machine, today, TextEdit is the default application for .rtf files, it might not be true tomorrow, or on someone else's machine - you could change to SuperDuperText.app as your preferred .rtf application, so now you're asking the Finder to open the document (which will use SuperDuperText.app), then telling TextEdit to set the window bounds, even though it has no idea that you've just opened a document in some other application.
    A better approach is to do it all in one tell block, targetting the specific application you want:
    <pre class=command>tell application "TextEdit"
    open file (path to startup disk as text) & "PT.rtf"
    set {l, t, r, b} to bounds of window 1
    set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
    end tell</pre>
    >When the script which created the TextEdit document is run, the window position does get set properly, but in accordance with the bounds. When the document is saved and then opened, however, the positioning appears random (although the bounds remain correct).
    This may be the crux of the problem - TextEdit documents do not save any position information. Because plain text and .rtf documents are expected to be portable (cross-platform), they don't store any position information since it may not be relevant to the target application. In this case, TextEdit is using its own algoritm to work out where to open the window, typically based on some offset from the last opened window.
    In short there just isn't any way to store a window position in a plain text document.

  • Document icon in Finder window differs from Get Info icon

    I've been noticing unexpected document icons in Finder windows for quite some time.
    This is especially true for PDF files. Since the early days of Mac OS X, I've configured my Macs to open PDF files in Adobe Reader, and I'm accustomed to seeing an Adobe PDF document icon on each PDF file. For some time, I've been seeing different PDF icons, e.g., a document with fuzzy text lines and a black ring binding on the left edge.
    I thought this might be a custom icon. But when I do a Get Info on the PDF file, the conventional Adobe PDF icon appears in the Get Info window.
    Is this different between the Finder icon and the Get Info icon a bug or a feature?
    -- Ward

    It's a feature. Any window that has the View Options set to "Show Icon Preview" will do that. It actually is rather handy in a folder that is set to icon view, with nice BIG icons, you can often see the first page (which is what is displayed) clearly enough to recognize exactly what the file is. In List view it isn't at all helpful, nor is it helpful in those cases where you have icon view set, but the icons are quite small (as is the case on my Desktop, and, I suspect, on most people's Desktops). A pdf that has multiple pages will additionally show the "binder" along the left edge. The Finder is drawing these custom icons on the fly from the contents of the file. The only way to defeat it is to turn of the Show Icon Preview for the folder(s) where you don't want an essentially useless and often counter-productive icon. Do that from the Finder's View menu item, Show View Options. Oh, and every folder has different options for each view. So you can turn it off for List view, but have it turned on for icon view, where it might actually be useful.
    Francine
    Francine
    Schwieder

  • I can't set shortcut for „Application windows"

    System Preferences → Exposé & Spaces → Exposé
    I can’t set shortcut for „Application windows” — first column with Fn key is OK, but the second column with mouse button doesn’t work. If I set „secondary mouse button” for „application windows”, it doesn’t work. But if I set „secondary mouse button” to „All windows”, it works! All mouse shortcuts for „All windows” or „Show desktop” work, but no mouse shortcut for „Application windows” work . The same with „Mouse button 3” and other buttons.
    Can you help me, please?

    Do you see the iTunes Library icon in the window? Click on it and the use the scroll bar to get to the tracks you want.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Inconsistent and incorrect file icons in finder window list view

    I have been seeing incorrect file icons in finder windows noteably for PDF files the last couple of weeks on my office MacMini running 10.5.8. Some just look messed up. Some switched and looked like Evernote files, but they open correctly in the default application - Preview.
    Get info would show the same incorrect icon, but correctly show Preview as the default application.
    Just now I tried clicking on CoverFlow view and when I went back to List view, the icons looked correct again.
    What type of system maintenance if any is needed to correct this issue? Note, these files continue to display correctly on my home iMac where these files are synced.
    AndrewML

    Thanks for the reply Baltwo.
    I followed your directions. After the restart the PDF icons were all displayed correctly.
    However, some .doc file icons were blank. Selected one, got info, set it to open with MSWord and then clicked "apply to all." Most, but not all now display the Word logo. Some remain blank, although get info reveals they are set to open with Word. Will another restart fix this or is there another suggestion?
    I will be away from this computer till Monday.
    AndrewML

  • What is folder icon in layers window?

    I downloaded a template from onOne Software and when I opened it in PE9 there are two layers. Each one has a folder icon and I get the information "Indicates a set" when I hover over it. The file is supposed to contain several colour choices for the mask but I've only been able to find one colour, so I thought it might have something to do with the 'set'. On the top layer there is an icon that indicates that "layer mask is linked to layer".
    I figured out how to put 4 pictures behind the mask, but not in the way that the video demonstrated, so I think there must be a way to open these sets and treat each window as a layer, as the video showed.
    Thank you,
    Nancy

    Thank you once again, Barbara. I looked at the link but the information
    there is beyond me. I got the template to work without opening the set,
    so I'll stick with that.
    However, if you have the App Store version of PSE 9 this won't work for you, since you can't  install actions in the effects panel due to a bug.
    By "App Store version" do you mean one that I is downloaded from the
    website rather than bought in a box at my local store? I bought PE9 locally.
    Nancy

  • Globally set "float" for my windows... and Skins?

    I really liked how PS would allow me to open up any .psd etc, in it's own floating window, so I could select then drag an image from one doc to the other.
    Cant do that with the default settings in CS5...but I've found a way to 'force' that for each doc I open AFTER I open it via the top nav bar icon to enable the float for that doc...
    IS there a way to globally set CS5 to only ever open any PS doc with that already set to the float window setting?
    Can't find it so far...but surely that must exist, right?
    RE: my subject item on Skins...the overall "gray-ness" of the CS5 GUI gets me down...I also can not find out how to "skin" the gray away....can you?
    Jim

    huge 27" HP that is powered by a nVidea card...absolutely great look/feel and the workstation powering same is  a great Dell box.
    that said, it's not the monitor, nor the ambient light here at the office..it's the dang all gray look that bugs me the most...then the poor contrast tween the type on that gray...then the overall gray top bar too...
    just too too gray for me. if this continues to bug me, I'll just go back to CS3....dont need any of the new features in CS5....and the 'comfort' of using an interface that is easy to use is more imp to me than being "current" with versions ever would be...
    can't be alone on this either as I've read many many threads on this - just google for this and you'll see many think same as me....an app should be
    transparent in it's GUI usage....not a hindrance...
    ...sigh...
    Jim

  • Icons in X windows are messed up

    Hallo alltogether,
    I've updated my X.org to 6.8.2 an now I've the problem the my Icons under X windows are messed up. Just an example:
    When I'm using Thunderbird and than I try to move a message from the Inbox to an another folder while dragging on the message a small icon appears looking like a small piece of paper. The PROBLEM is that the space AROUND this small Icon, which is normaly transparent, is full of randomly colorized pixels.
    Here I've made a small screen shot of such an icon:
    http://www.kriga.net/badicon.jpg
    I've tried to solve this problem by downgrading to X.org 6.8.1 but it didn't help (It seems that this problem doesn't depend on X.org...). Does anybody has a suggestion how to solve this problem, cause this icons are looking really bad :-(
    Thank you!

    droog wrote:Upgrading your gtk2 should fix it. a new version just came out yesterday i think that fixes this.
    No, unfortunently this doesn't work! I'v already have the newest gtk2 package installed (pacman -Qi gtk2):
    Name           : gtk2
    Version        : 2.6.7-1
    Is ist possible, that an another package could be responseable for this problem? I'v already tried to downgrade gtk2 to the version 2.6.1 but the problem remains :-(

  • Setting all word 2008 windows to a specified zoom?

    I would like to get a script to set all word 2008 windows to a specified zoom setting. Ideallly, I would like to have an option pop up and ask me for the setting eg a percentage or page width, and page height. Would someone know how to achieve this?

    This Example might help:
    <pre style="margin: 0px; border: 1px solid #aaa; width: 800px; color:#000; background-color: #ccc; overflow: auto; font-family: Verdana, Monaco, monospace;"> tell application "Microsoft Word"
       --Example page zoom in Microsoft word
       set percentage of zoom of view of active window to 200
       delay 2
       set page columns of zoom of view of active window to 3
       delay 2
       set page rows of zoom of view of active window to 2
       delay 2
       set page fit of zoom of view of active window to page fit full page
       display dialog "End of Example"
    end tell</pre>
    hubionmac.com
    Message was edited by: hubionmac

  • How to set the classpath in windows operating system

    hi,
    how to set the classpath in window operating system
    i want this help for setting the classpath for the tomcat
    please help me
    thank you
    darshan soni

    Open autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
    SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas

Maybe you are looking for

  • Dynamically creating oracle table with csv file as source

    Hi, We have a requirment..TO create a dynamic external table.. Whenever the data or number of columns change in the CSV file the table should be replaced with current data and current number of columns...as we are naive experienced people in oracle p

  • I can not see some parts of web pages, some things are visible others not.

    In my mail program most of everything is viewable but the different styles that are available to use above the body of the message are not able to be seen. I can run my mouse over the different spots in the cell to see what that space is but you cant

  • Clicking on Dock icon only brings most-recently-used window to front

    In Leopard, clicking on the iChat Dock icon would bring all iChat windows (contact lists, chats, etc.) in front of other open applications, and give focus to the most recently used iChat window. After installing Snow Leopard, clicking on the iChat Do

  • Where can i download a usb driver for my revere 3 (model

    I have been trying to download a usb driver for my new revere 3 so I can connect with my 8.1 windows laptop. anyone have an idea where I can find it? The LG site doesn't list any drivers for it

  • 3G S stocked in Apple Stores on Saturday?

    Did any of you today get a sense, hear, or ask if the Apple stores you were at sold out of their iPhones today? Did any of them say they would have more for Saturday? Any word on whether 16GB or 32GB or BOTH were selling/sold out? I just ordered mine