The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Windows TrayIcon's

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Windows TrayIcon's Posted: Jan 9, 2005 4:36 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Windows TrayIcon's
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

I've been looking in to putting my windows in to the Tray Icon in Smalltalk. This turned out to be more than I expected it to be. Luckily, some people had already done most of the hard work and published it in to a fork of Windows Goodies.

I knew that the code would never be adopted if it stayed there. So I pain-stakingly moved it out of there in to its own package. Once there, I wanted to add in right click menus on the toolbar.

After a lot of experimentation, I managed to coerse th VM in to passing unknown events back in to the system by providing windows with the right kind of UI handle.

But because it's an unknown event, none of the VM's code for handling mouse clicks has been executed - so we're left with a big bundle of random bytes from the OS. So after analysing it for a while in the Transcript (making it print out the data as the event occurs) I discovered the right combination of checks to handle various mouse events.

Hooking up a popup menu was easy from there. The only thing that remained was separating the code from its dependency on the VisualLauncher.

While the code isn't fantastic and I make no guarantee about how useable it is or whether it is rock solid or not - it's there now. Amazingly, the day I published it to public store both Bob Westergaard and James Robertson picked it up. Bob now uses it in "Paste It Everywhere" and Jim is intending to use it in Bottom Feeder to replace his slim mode.

Read: Windows TrayIcon's

Topic: Email is still broken Previous Topic   Next Topic Topic: Trying the SmalltalkDoc preview

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use