On 8/16/2006 5:51 PM, Tommy Single wrote:
QUESTION 1:

How do I automatically start my application when Windows starts?

Put a shortcut in the user's Startup folder.  The exact location depends
on the version of Windows.  What versions do you need to support?

QUESTION 2:

How do I make the application invisible to the user and have an icon in the
system tray next to clock?

To make the application invisible, you must hide the window(s).  I don't
know if RB supports this directly, but you can certainly do it using the
Win32 API.  See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/ShowWindow.asp>

I think that the declaration statement would be:

Function ShowWindow(ByVal hWnd As Integer, ByVal nCmdShow As Integer) As
Integer

You would pass Self.Handle as the first parameter and SW_HIDE as the
second.  SW_HIDE is a constant defined as zero:

Const SW_HIDE = 0


To put an icon in the system tray, you have to do a little more work.
Here's an article showing how to do it in VB.  You should be able to
translate that into RB fairly easily:

<http://www.codeguru.com/columns/VB/article.php/c6547>

QUESTION 3:

How do I make the application display a "balloon" next to the system tray
like when you are installing new hardware on Windows?

Will a tooltip do?  If so, the above article shows you how.  If it has
to be a balloon, take a look at this article:

<http://www.codeguru.com/Cpp/misc/misc/systemtray/article.php/c3891>

It is written in C, but the code can be converted to RB.  If you need
help with that, please reply on the list.

--
Charles Calvert
Celtic Wolf, Inc.
(703) 580-0210
[EMAIL PROTECTED]
http://www.celticwolf.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to