Hello,
In the "Resize" event you will need to tell MI to reset it's frame to match
I use Delphi and the code is.... := is = and ' is " and .Do(...) is .Do
"....."
for comparisons to to VB
Trash:='Set Window '+BrowserID+
' width '+floattostr(frmBrowse.pnlBrowse.clientwidth/96)+
' height '+floattostr(frmbrowse.pnlBrowse.clientheight/96);
MIMap.Do(Trash);
I get the BrowserID [handle of browse frame] early in the program and reuse
it.
frmBrowse is a separate frame [window] for the brower only.......
I don't do MIDI frames so this one is just on top of the main frame.
pnlBrowse is the "picture box" that holds the MI windows
and is set for alignment=client so it always fills the window
and then the clientheight and width
The divide by 96 is to get the number right between pixels and MI's sizing
but
since VB will do twips and other things you will have to play with it.
----- Original Message -----
From: "Mark Williamson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 1:02 PM
Subject: MI-L Integrated Mapping - Resizing forms
Hi
I am using VB to try out a few IM techniques. I cant work out out how to get
mapinfo to redraw the contents of the form window when it is resized as the
map window originally drawn on the form reamins the same size.
Basically I want it to look like the map window is there already when the
form resized.
Or would it just be better to make the form static.
Thanks in advance
Mark
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4291