New topic: 

Showing a Help Tag in Finder, when mousing over a file?

<http://forums.realsoftware.com/viewtopic.php?t=31450>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Tommyknockers           Post subject: Showing a Help Tag in 
Finder, when mousing over a file?Posted: Mon Dec 07, 2009 9:21 am               
                
Joined: Sun Jul 15, 2007 3:12 am
Posts: 90
Location: Denmark              Hi all,

I'm using the code below, to access and show, a files Finder/Spotlight Comment. 
Note that I could probably also have used the approach from this Forum Post 
instead, but as I have a license for the MBS PlugIns, I chose to use their, 
easier, method 
  
Code:// Create a FolderItem to hold the selected files Spotlight/Finder Comment:
Dim f As FolderItem

// Show an Open File Dialog-box, to select a file:
f = GetOpenFolderItem(FileTypes1.All)

// Write the FolderItem to a Propery, for later use:
pOurFile = f

// Show the filename in a Static Text object:
txtFileName.Text = "Filnavn: " + pOurFile.Name

// And get the Spotlight/Finder Comment, and show it in our TextField:
edfFilesComment.Text = f.CommentMBS

  
That's my proof-of-concept, and it works. What I'd really like to do though, is 
to show the Spotlight/Finder Comment, in some sort of "HelpTag", when User 
mouses over files that have a comment. You know those little yellow pop-ups, 
that shows ... well, HelpTags 

If it can be done, that is! If not, maybe some other pop-up kinda thing, 
whatever you experts can help me with 

Also, how would I go about monitoring when User mouses over a file ind the 
Finder, or if that is not possible, when a file has been clicked on? Will I use 
a Timer control, or some other method, and can one monitor stuff like that in 
the Finder?

Thank you all in advance, for your kind help!

Cheers,
Thomas      
_________________
Coding for a year and a half, on and off, using REALbasic 2009.4 Pro, on a 17" 
MacBook Pro running Mac OS X Snow Leopard. Have a license to the full 
MBS-Package, so you can use that, in any example code you may provide.  
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to