PC Review


Reply
Thread Tools Rate Thread

Cordinate Conversion

 
 
=?Utf-8?B?RGV2ZWxvcGVyIG9mIHRoZSBDYXJpYmJlYW4=?=
Guest
Posts: n/a
 
      19th Apr 2006
On a report, when I access the value for a control property, such as . . .

Me.StepStartLine.Top

I get an integer value, which I assume is pixels.

Is pixel the unit of measurement given for a control property? If so, how
can I convert it to inches?

My goal is to draw a line from a specific control to the end of the section
(which resizes depending on the data.) I'm trying to determine the Y value
to start the line. Here's my code . . .

Dim VerticalStart As Single

Me.ScaleMode = 5 ' Set Scale to Inches
Me.DrawWidth = 25

VerticalStart = *Value I Need*

Me.Line (8, VerticalStart)-(8, 22), vbBlack
Me.Line (0, VerticalStart)-(0, 22), vbBlack

Any suggestions are welcome.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      19th Apr 2006
It is not pixels, it is twips. there are 1440 twips to an inch.

But I can never remember how to convert miles per hour to furlongs per
fortnight

"Developer of the Caribbean" wrote:

> On a report, when I access the value for a control property, such as . . .
>
> Me.StepStartLine.Top
>
> I get an integer value, which I assume is pixels.
>
> Is pixel the unit of measurement given for a control property? If so, how
> can I convert it to inches?
>
> My goal is to draw a line from a specific control to the end of the section
> (which resizes depending on the data.) I'm trying to determine the Y value
> to start the line. Here's my code . . .
>
> Dim VerticalStart As Single
>
> Me.ScaleMode = 5 ' Set Scale to Inches
> Me.DrawWidth = 25
>
> VerticalStart = *Value I Need*
>
> Me.Line (8, VerticalStart)-(8, 22), vbBlack
> Me.Line (0, VerticalStart)-(0, 22), vbBlack
>
> Any suggestions are welcome.

 
Reply With Quote
 
=?Utf-8?B?RGV2ZWxvcGVyIG9mIHRoZSBDYXJpYmJlYW4=?=
Guest
Posts: n/a
 
      19th Apr 2006
Klatuu,

Works perfectly. Thanks much!

Robert

"Klatuu" wrote:

> It is not pixels, it is twips. there are 1440 twips to an inch.
>
> But I can never remember how to convert miles per hour to furlongs per
> fortnight
>
> "Developer of the Caribbean" wrote:
>
> > On a report, when I access the value for a control property, such as . . .
> >
> > Me.StepStartLine.Top
> >
> > I get an integer value, which I assume is pixels.
> >
> > Is pixel the unit of measurement given for a control property? If so, how
> > can I convert it to inches?
> >
> > My goal is to draw a line from a specific control to the end of the section
> > (which resizes depending on the data.) I'm trying to determine the Y value
> > to start the line. Here's my code . . .
> >
> > Dim VerticalStart As Single
> >
> > Me.ScaleMode = 5 ' Set Scale to Inches
> > Me.DrawWidth = 25
> >
> > VerticalStart = *Value I Need*
> >
> > Me.Line (8, VerticalStart)-(8, 22), vbBlack
> > Me.Line (0, VerticalStart)-(0, 22), vbBlack
> >
> > Any suggestions are welcome.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from Access 97 to 2003 & get a "Conversion Errors" tabl eidinger2000 Microsoft Access 0 4th Feb 2010 04:19 PM
Conversion errors where no conversion needed jbeckh2@gmail.com Microsoft Dot NET Framework 0 12th Jan 2007 07:24 PM
VB Conversion Keywords And .NET Conversion Routines rawCoder Microsoft VB .NET 43 2nd Mar 2005 02:56 PM
VB Conversion Keywords And .NET Conversion Routines rawCoder Microsoft VB .NET 2 28th Feb 2005 06:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:36 AM.