Re: MI Snap option and MapBasic

2000-09-26 Thread Anssi Joutsiniemi
Kirk, >From version 550 on Set Window statement have had option to turn snap mode on/off. >See Reference for that. For earlier versions you need to work around with WinAPI. The trick is to send message directly to MapperWindow via SendMessage API to simulate keyboard input. See the following

Re: MI MapBasic: dec to hex

2000-09-19 Thread Anssi Joutsiniemi
Holger, Here is the function I use for conversion. Anssi '* Function Hex(ByVal iInput As Integer, ByVal iFormat As Integer) As String Dim x As Integer Dim i, iDummy As SmallInt Dim sGlyph, sOut As String x = iInput Do While 1 i=i+1 iDummy = (x/16^(i-1)) Mod 16

Re: MI Mapinfo Macro's?

2000-08-10 Thread Anssi Joutsiniemi
  Max,   About a year ago I wrote an application I called MBwin_plus.mbx to do that. It can be downloaded from DirectionsMagazine site from Utilities section.   See following URL:   http://www.directionsmag.com/tools/default.asp   Regards,     Anssi       Unfortunately (and strangely), a

Re: MI MapBasic Question

2000-08-07 Thread Anssi Joutsiniemi
Roy, Try the following Regards, Anssi ' Declare Sub Main Sub Main Dim iFile, oFile, strDelim, strDummy, strPrint As String Dim iFixlen As Integer iFile = FileOpenDlg("","","TXT","Define input file") oFile = FileSaveAsDlg("","","TXT","Define output

SUM: MI Undocumented (revisited)

2000-07-31 Thread Anssi Joutsiniemi
Gary, Bill, Peter, others   Thanks for your response. Unfortunatelly there hasn't been much activity on undocumented stuff during my vacation, so I figure the hoover functions remains undocumented for now. I'll let you know if I ever figure out what kind of data theese are built for.   I'm s

MI Undocumented (revisited)

2000-07-14 Thread Anssi Joutsiniemi
Hello folks,   I'm about to leave for two weeks vacation, but before that I'd like to donate you little bit of my knowledge on MapInfo undocumented stuff. I haven't figured them out yet, but maybe someone could explain how they work or what are they build for (since not documented).   Functi

Re: MI Tool for merging several tables

2000-07-12 Thread Anssi Joutsiniemi
David, Here is a very baseline source for merging multiple tables. It doesn't check much of a table structures access rights or anything, but will do the thing if you are just careful. If you don't have MapBasic let me know and I'll mail you a compiled version. Anssi '

Re: MI MapBasic question

2000-02-28 Thread anssi joutsiniemi
Roy, Dmitry posted some time ago an awesome example of using WinAPI CreateProcess() and WaitForSingleObject() functions to do just that. I'm sure you can find it from list archive. I made this lil application to run GhostScript within MapInfo using that code and it seem to work very nice. I'l

Re: MI Tweaking the registry

2000-01-28 Thread Anssi Joutsiniemi
Steve, Alex, Margie, others, A while ago I ran into following names in MI program file, which seem like registry values to me. At least UseTrueColor and ExportBorder have been discussed earlier on this list. Unfortunatelly haven't have time to try them out. If you do please let us all know: O

Re: MI Files on Most Recently Used-list

2000-01-10 Thread Anssi Joutsiniemi
- Original Message - From: Anssi Joutsiniemi <[EMAIL PROTECTED]> To: Andreas Mahn <[EMAIL PROTECTED]> Sent: Monday, January 10, 2000 6:14 PM Subject: Re: MI Files on Most Recently Used-list Andreas, Your server kept returning my mail so here it comes through the list.

Re: MI MB: How do I query dialog position (Win API?)

2000-01-05 Thread Anssi Joutsiniemi
Richard, To get the hwnd for MI Dialog you have to loop through all child windows of MI window and find the the MDIClient window (for example by using GetClassName API). Then loop again through child windows of MDIClient and one of those is your Dialog window. (By the way by looping through chi

SUM: MI 5.5 performance problem

1999-12-29 Thread Anssi Joutsiniemi
The problem was clip region on mapper window, which on v5.5 slows the machine down. I know this isn't the Wish List, but if some any big cheese from MapInfo Corp is reading this would it be considerable to make this fine new feature optional through Options > Preferences or registry key value?

MI 5.5 performance problem

1999-12-28 Thread Anssi Joutsiniemi
Hello,   I just updated my MI to version 5.5 and realized its eating my CPU time like a maniac on ordinary window redrawing process. It actually makes the redrawing process some 50 times slower.    I found it particullary strange since version 5.0 seem to work as it used to. Does anybody hav

Re: MI how to remove a map window's minimize button?

1999-12-15 Thread Anssi Joutsiniemi
Hello Rinus, If you want to remove max/min buttons from window you actually have to change the window style. I included a small app to show how to do that. If you have any question just let me know. By the way KGM utility API_TEST works as designed. It removes the menuitems from systemmenu (

MI Re: Change text Colournusing Mapbasic

1999-11-22 Thread Anssi Joutsiniemi
How about using Font variable like so: Dim myFont As Font MyFont = "Font (" + currFontname + ", " + currFontStyle + ", " + currPointSize +", " + currForeColour + ", " + currbackColour + ")" Alter Object TextObj Info OBJ_INFO_TEXTFONT, myFont I'm not sure wheather it's gonna work or no

Re: MI Saving Map Window Sans Border

1999-10-26 Thread Anssi Joutsiniemi
On Win32 there is a registry entry \HKEY_LOCAL_MACHINE\Software\MapInfo\MapInfo\Common\ExportBorder The type of key is DWORD and setting it to zero is equal to No Border Is Exported. Regards, Anssi - Original Message - From: Hans Vidkjer <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: MI Group IV TIFF

1999-10-18 Thread Anssi Joutsiniemi
Jure, I recently had similar thoughts about MapInfo not understanding Group IV compression Tiff properly, but... We had some thousand Tiff G4 maps, created in MicroStation, which were shown inverted in Mapinfo, but I turned out that it was MicroStation that couldn't handle the Group 4 issue.

Re: MI converting Mapinfo to illustrator

1999-09-13 Thread Anssi Joutsiniemi
Russell, others Here is URL to download Adobe PostScript drivers for clean PS code. http://www.adobe.com/supportservice/custsupport/LIBRARY/pdrvwin.htm You are also strongly encouraged to use GhostScript (if you haven't already done so) from: http://www.cs.wisc.edu/~ghost/ GhostScript is really

Re: MI Undocumented

1999-09-10 Thread Anssi Joutsiniemi
_STATUS To CMD_INFO_EDIT_DISCARD So by using it you will be able to control the closing status according to whatever. I also added couple lines to Marks code as an example. Regards, Anssi - Original Message - From: Ogilvie, Mark <[EMAIL PROTECTED]> To: 'Anssi Joutsiniemi' &

MI Undocumented

1999-09-09 Thread Anssi Joutsiniemi
Dear all,   We all know some of them like RowID and map object functions are poorly documented for MIPro users but available via MapBasic documentation. Beyond that, you can find CreateView statement from StreetInfo files and so on.   By poking Mires.dll file I was able come with two extra h

Vs: MI Network Drive

1999-09-09 Thread Anssi Joutsiniemi
Sesheeka,   You were stingy w/ your help, but I guess you ment WNetAddConnection() function. :-)   Thanks anyway,     Anssi - Original Message - From: Sesheeka Selvaratnam To: 'Anssi Joutsiniemi' Sent: Thursday, September 09, 1999 3:53 PM Subject: RE:

MI Network Drive

1999-09-09 Thread Anssi Joutsiniemi
Hello,   Does anybody know how to map a network drive w/ Win32Api?   Thanks,     Anssi

Re: MI Print Int

1999-09-08 Thread Anssi Joutsiniemi
You could try using Format$() function like for example: Update "table" Set WGS84_MIN_X = Format$( Str$(Int(WGS84_DEC_X)), "00") +"°"+Format$( Str$((WGS84_DEC_X-Int(WGS84_DEC_X))*60), "00.") Regards, Anssi - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Vs: MI Oracle questions

1999-09-07 Thread Anssi Joutsiniemi
There is no mailing list like this one. Anssi - Original Message - From: Bjorn Veltman <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 1999 12:45 PM Subject: MI Oracle questions > Hi, > > Does anybody know if there is a mailing list like this one for but for

Re: MI TrueType font to Symbol?

1999-09-02 Thread Anssi Joutsiniemi
Steve, The trial version on TypeTool is downloadable from URL. http://www.fontlab.com/tt_main.htm I've been quite satisfied with it. Regards, Anssi - Original Message - From: Steven Romalewski <[EMAIL PROTECTED]> To: MI Listserv <[EMAIL PROTECTED]> Sent: Wednesday, September 01,

Re: MI frame on layout frame

1999-08-26 Thread Anssi Joutsiniemi
Select your frame from Layout window and change Border style from Options > Region Style menu or use Region style button. Regards, Anssi - Original Message - From: Phillips, Andrew <[EMAIL PROTECTED]> To: mi-l (E-mail) <[EMAIL PROTECTED]> Sent: Wednesday, August 25, 1999 11:36 PM S

Re: MI mapbasic window size

1999-08-23 Thread Anssi Joutsiniemi
Tammy, You should be able to place 65536 characters in MB window and I doubt you can get beyond that. Regards, Anssi -Original Message- From: Joyce, Tammy DNRW <[EMAIL PROTECTED]> To: MapInfo_Q&A <[EMAIL PROTECTED]> Date: 24. elokuuta 1999 0:31 Subject: MI mapbasic window size > >M

MI Re: Flashing Symbols

1999-08-19 Thread Anssi Joutsiniemi
Paul You could work around by using animation layer with AlterObject statement to "flash" your symbol . See the Animator.mb for further details. Regards, Anssi -Original Message- From: Paul Fildes <[EMAIL PROTECTED]> To: MapInfo List <[EMAIL PROTECTED]> Date: 19. elokuuta 1999 16:08 S

Re: MI Custom Region Style Patterns

1999-08-18 Thread Anssi Joutsiniemi
Ethan The following lines are from Warren Vick's return to Question: MI Can I add patterns to MapInfo? few months ago on Mapinfo-L? Officially no, but you can hack the fill pattern resources which are in MapInfo Pro. It's not clean or portable, but perhaps could be a last resort. You need to

Re: MI MB: can one control be made dependent on the output of another control in db

1999-08-12 Thread Anssi Joutsiniemi
Rajeev, Peter, others Sorry about my misleading information about Calling clause. Peter is right, I didn't bother to check and mixed up w/ EditText. Here is the code once again. Regards, Anssi '* Declare Sub Main Declare Sub Main_chk Global sValue(10), sNe

Re: MI MB: can one control be made dependent on the output of another control in db

1999-08-12 Thread Anssi Joutsiniemi
Rajeev, ListBoxes doesn't have Calling clause so you need user activity (to push button, double click or so) to move selected items from one listbox to the other. Try compiling following code. Regards, Anssi '* Declare Sub Main Declare Sub Main_chk Globa

Re: MI Embedded Windows in MB

1999-08-11 Thread Anssi Joutsiniemi
Christian, As far as I know I could be hard to make MapBasic window parent to other windows, since MB window actually contains another RichText type window, which fills the entire client rectangle of MB window. So it is not very much different from EditText Control on MapInfo dialog. You could

MI AddressOf API

1999-08-10 Thread Anssi Joutsiniemi
Hello Is there anybody who knows wheather it is possible or not to get the memory address of custom function declared in MapBasic program using Win32Api. Ie. same functionality that is built-in on VB5 in AddressOf operator. Thanks, Anssi -

Re: MI Selection control query

1999-07-29 Thread Anssi Joutsiniemi
Well Bob, Tell us a little bit more... Anssi -Original Message- From: Bob Young <[EMAIL PROTECTED]> To: Sean Richards <[EMAIL PROTECTED]> Cc: 'MapInfo List' <[EMAIL PROTECTED]> Date: 29. heinäkuuta 1999 12:38 Subject: Re: MI Selection control query >Dear Sean > >You could sub-class the

Re: MI Font registration

1999-07-27 Thread Anssi Joutsiniemi
Dmitry, others I have been using this AddFontResource function, but it doesn't make resource permanent. So booting the computer makes resource to disappear. Thanks again, Anssi >>Anybody familiar with registering a font permanently to system registry >>using Win32API? >Declare Function A

MI Font registration

1999-07-27 Thread Anssi Joutsiniemi
Anybody familiar with registering a font permanently to system registry using Win32API? Thanks, Anssi -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or

Re: MI Altering Objects in Layouts (Text Objects)

1999-07-22 Thread Anssi Joutsiniemi
Tony, It seems to me there is nothing wrong in your Alter Object statement. Creating text into variable is little trickier though, because you have to calculate the coordinates of bounding rectagle of your desired text object. But since you are altering the existing object all you have to do is

Re: MI Line Styles

1999-07-19 Thread Anssi Joutsiniemi
You can do it by combining following functions: ObjectInfo(obj,attribute) -> returns Pen, Brush and other values about graphical object (attribute 2 for pen value) StyleAttr(style,attribute) -> returns one attribute of Pen, Brush etc. value(attribute 1 for Pen width, 2 for Pen pattern, 4 for Pen

Re: MI : window size dependency

1999-07-15 Thread Anssi Joutsiniemi
Tray, Jacques and others   If you are interested in Win32 API and haven't yet bought Dan Appleman's exelent book, have no Visual Basic or if you are just lacking some special information about it. It is worth checking out Win32 API function reference at   http://msdn.microsoft.com/library/sd

Re: MI New Symbol font

1999-07-05 Thread Anssi Joutsiniemi
Hi Trevor, You should check if your font is shown on text style dialog. If so, you have created a ANSI charset instead of SYMBOL charset for your True Type Font. You really cannot tell it by viewing it on Word since it displays all types of TTFs in one popup. Regards, Anssi -Original