The appearance of a line object on the screen is constrained by the fact that it must be a multiple of a pixel. The difference will be visible only at printing time if the printer has a sufficient resolution to show it.
To define the width in points, use the toggle double bullet Pixel/point. When you have defined a line with a width in points or in oixels, that definition stays attached to the object. If you want to use MapBasic and the functions related to that style, the width is obtained for a specific object O by StyleAttr(objectinfo(O,2),1) that returns a value of 1 to 7 for a width in pixels, of 20 to ??? if it is in points; that last number is not the exact width in points: it is equal to 10 + the width expressed in tenths of a point. The minimum value is for 0.1 point and would read 10+ 0.1*10 = 11 , a 2.2 point width would be stored as 10+ 2.2*10=232. You can use that way of expressing width when you create a pen. Set style pen makepen(1,2,0) will create a plain black line with a width of 1 pixel. Makepen(25,2,0) with a width of 1.5 point. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -----Original Message----- From: Laura Saffiotti Iacotucci [mailto:[EMAIL PROTECTED] Sent: 4-Sep-03 09:10 To: [EMAIL PROTECTED] Subject: MI-L about line width (between 0.2 and 1.5 point) hi I would like to set line style like 1.5 points, but when I try that, both on the screen and on the layout, I have the same line with at 0.2, 0.5, 1 and 1.5, so I only have 1 or 2 pixel and 1 or 2 points. How can I (simply!) do in order to have something between 1 and 2? Thank you! Laura ----- Original Message ----- From: "Fabio Cabella" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 1:40 PM Subject: Re: MI-L Question > Don't know if possible but if MapBasic let's you call Windows API you could > call: > SetForegroundWindow((HWND)hWnd) > > where hWnd should be an integer value returned by > WindowInfo(WIN_MAPINFO, WIN_INFO_WND) > > if you meant 'in foreground' like 'top most' (i.e. always on top) you > should use this Windows API: > SetWindowPos((HWND)hWnd, -1, 0, 0, 0, 0, 3); > > HTH, > Cabbi > > At 12:27 04/09/2003 +0200, you wrote: > >Hi, > > > >first of all I would like to say "hello" because I m a new member of the > >mailing list. > > > >Does anyone know who to put mapinfo with a mapbasic application in foreground. > >The situation is that many applications (AcrobatReader, WinZip, Word,... ) > >are on the > >desktop and for example AcrobatReader is active. > > > >So the question is: > > > >Is it possible to make mapinfo active and put in foreground? > > > >Has anyone an answer to this problem. I would be very happy! > >Any and all suggestions will be appreciated. > > > >Yours sincerely > > > >Lutz Hogen > > > > > >[EMAIL PROTECTED] > >-Stadt Aachen- > >Germany > > > > > >Mit freundlichen Gr��en > > > >Lutz Hogen > >--------------------------------------------------------------------------- ------------------------------------ > >Stadt Aachen > >Fachbereich Vermessung und Kataster > >Herr Hogen > >Verwaltungsgeb�ude Marschiertor, Lagerhaustra�e 20, Zimmer-Nr. 320 > >[EMAIL PROTECTED] > >Postanschrift: Stadt Aachen, 52058 Aachen > >Telefon: (0241) 432-6217 Telefax: (0241) 432-6299 > > > > > >--------------------------------------------------------------------- > >List hosting provided by Directions Magazine | www.directionsmag.com | > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >Message number: 8257 > > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 8258 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/03 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8260 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8261
