Hi Tim,
Use the SET WINDOW command from MapBasic. It can be used in the MapBasic
Window, Workspaces or mbx routine. Here is some of the text from MapBasic
4.12 Help...
Try:
SET WINDOW MAPINFO HEIGHT 1 WIDTH 1
It should make the window very small.
Experiment.
Thanks
Mark Crompton
****************************************************************************
*****************************************
Purpose
Changes the size, position, title, or status of a window.
Syntax
Set Window window_id
[ Position ( x , y ) [ Units paper_units ] ]
[ Width win_width [ Units paper_units ] ]
[ Height win_height [ Units paper_units ] ]
[ Font ... ]
[ Min | Max | Restore ]
[ Front ]
[ Title { new_title | Default } ]
[ Help [ { File help_file | File Default | Off } [ Permanent ]
]
[ Contents ] [ ID context_ID ] [ { Show | Hide
} ]
[ ScrollBars { On | Off } ]
[ SmartPan { On | Off } ]
[ Autoscroll { On | Off } ]
[ Parent HWND ]
[ ReadOnly | Default Access ]
[ Table table_name Rec record_number ]
[ Show | Hide ]
[ SysMenuClose { On | Off } ]
window_id is an Integer window identifier or a special window name (e.g.
Help )
x states the desired distance from the top of MapInfo's workspace to the top
edge of the window
y states the desired distance from the left of MapInfo's workspace to the
left edge of the window
paper_units is a string representing a paper unit name (e.g. "cm" for
centimeters)
The Font clause specifies a text style
win_width is the desired width of the window
win_height is the desired height of the window
new_title is a String expression representing a new title for the window
help_file is the name of a help file (e.g. "FILENAME.HLP" on Windows)
context_ID is an Integer help file context ID which identifies a specific
help topic
HWND is an Integer window handle. The window specified by HWND will become
the parent of the window specified by window_id; however, only Legend,
Statistics, Info, Ruler, and Message windows may be reparented in this
manner.
table_name is the name of an open table to use with the Info window
record_number is an Integer: specify 1 or larger to display a record in the
Info window, or specify 0 to display a "No Record" message
Description
The Set Window statement customizes an open window, setting such options as
the window's size, position, status, font or title.
The window_id parameter can be an Integer window identifier, which you can
obtain by calling the FrontWindow(�) and WindowId(�) functions. Alternately,
when you use the Set Window statement to affect a special MapInfo window,
such as the Statistics window, you can identify the window by its name (e.g.
Statistics) or by its code (e.g. WIN_STATISTICS); codes are defined in
MAPBASIC.DEF.
The table below lists the window names and window codes which you can use as
the window_id parameter.
Window name Window description
MapInfo The frame window of the entire MapInfo application. You can
also refer to this window by its define: WIN_MAPINFO. Note: not supported on
the Macintosh (Macintosh does not support application-level windows)
MapBasic The MapBasic window. You can also refer to this window by
the Define code: WIN_MAPBASIC
Help The Help window. You can also refer to this window by the Define
code: WIN_HELP
Statistics The Statistics window. You can also refer to this window by
the Define code: WIN_STATISTICS
Legend The Legend window. You can also refer to this window by the Define
code: WIN_LEGEND
Info The Info tool window (which appears when the user uses the Info
tool). You also can refer to this window by the Define code: WIN_INFO
Ruler The window displayed when the user uses the Ruler tool. You can also
refer to this window by the Define code: WIN_RULER
Message The Message window (which appears when you issue a Print statement).
You can also refer to this window by the Define code: WIN_MESSAGE
The optional Position clause controls the window's position on MapInfo's
workspace. The upper left corner of MapInfo's work space has the position 0,
0. The optional Width and Height clauses control the window's size. Window
position and size values use paper units settings, such as "in" (inches) or
"cm" (centimeters). MapBasic has a current paper units setting, which
defaults to inches; a MapBasic program can change this setting through the
Set Paper Units statement. A Set Window statement can override the current
paper units by including the optional Units subclause within the Position,
Width, and/or Height clauses.
If the statement includes the optional Max keyword, the window will be
maximized (it will occupy all of MapInfo's work space). If the statement
includes the optional Min keyword, the window will be minimized (it will be
reduced, appearing only as a small icon in the lower part of the screen).
Note that the Min keyword is not supported on the Macintosh.
If a window is already minimized or maximized, and if the statement includes
the optional Restore keyword, the window is restored to its previous size.
If the statement includes the optional Front keyword, MapBasic makes the
window the active window; this is also known as setting the focus on the
window. The window comes to the front, as if the user had clicked on the
window's title bar.
The statement may always specify a Position clause or a Front clause,
regardless of the type of window specified. However, some of the clauses in
the Set Window statement apply only to certain types of windows. For
example, the Ruler Tool window may not be re-sized, maximized or minimized.
To change the window's title, include the optional Title clause. The
Application window title (the main "MapInfo" title bar) cannot be changed
unless the user is running a run-time version of MapInfo.
The SysMenuClose clause lets you disable the Close command on a window's
system menu (the menu that appears when a MapInfo for Windows user clicks
the box in the upper-left corner of a window to display its system menu).
Disabling the Close command only affects the user interface; MapBasic
programs can still close the window by issuing Close Window statements. The
following example disables the Close command of the active window:
****************************************************************************
*****************************************
-----Original Message-----
From: tim chilton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 2:25 AM
To: [EMAIL PROTECTED]
Subject: MI Help with MapInfo Application Window resizing
Hello,
Does anyone know how to resize the MapInfo application window? I've only
managed to find out how to resize map windows etc and it doesn't seem as if
you can apply the same commands to MapInfo itself.
Thanks for your help
Tim Chilton
[EMAIL PROTECTED]
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]