FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Shell Execute a Window
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Shell Execute a Window

Posted: Thu Dec 20, 2007 09:25 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Shell Execute a Window

Posted: Fri Dec 21, 2007 09:07 AM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Shell Execute a Window

Posted: Fri Dec 21, 2007 09:12 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion