Page 1 of 1

Shell Execute a Window

Posted: Thu Dec 20, 2007 9:25 pm
by TimStone
The following button opens a window with an AIM chat control. It works. The problem is that the chat control is small and the window is quite large. I'd like to reduce the size of the window to frame the chat control. Any thoughts ?

DEFINE BUTTON OF oReBar RESOURCE "CHAT" ACTION ShellExecute(NIL, "open", "http://www.masterlinksoftware.com/techchat.htm") TOOLTIP "Chat With Technician"

Thanks ... and Merry Christmas or Happy Holidays

Posted: Fri Dec 21, 2007 9:07 am
by James Bott
Tim,

Here are a bunch of manifest constants that control the window size. You might try some of them.

James

#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9


FUNCTION MAIN()

SHELLEXECUTE( 0, "open", "http://www.mysite.com", 0, 0, SW_NORMAL )

RETURN NIL

Posted: Fri Dec 21, 2007 9:12 am
by Antonio Linares