From: mp on

"Bob Butler" <noway(a)nospam.ever> wrote in message
news:AeqQn.94786$rE4.7563(a)newsfe15.iad...
>
> "mp" <nospam(a)thanks.com> wrote in message
> news:hus6pi$upo$1(a)news.eternal-september.org...
>>
>> "Bob Butler" <noway(a)nospam.ever> wrote in message
>> news:hJeQn.37115$rU6.31197(a)newsfe10.iad...
>>>
>>> "mp" <nospam(a)thanks.com> wrote in message
>>> news:hurrph$df5$1(a)news.eternal-september.org...
>>>> "Bob Butler" <noway(a)nospam.ever> wrote in message
>>>> news:_2eQn.30194$yx.11535(a)newsfe13.iad...
>>>>>
>>>>> "mp" <nospam(a)thanks.com> wrote in message
>>>>> news:huqv7a$ec6$1(a)news.eternal-september.org...
>>>>>> Hi all,
>>>>>> I'm building a little form that can have multiple listboxes
>>>> ...
>>>>>> how can i emulate the way windows expands partial text into a little
>>>>>> tool tip when you hover a mouse over?
>>>>>
SNIP
>>>>> Dim r As Long
>>>>> uParam.X = Me.ScaleX(X, Me.ScaleMode, vbPixels)
>>>>> uParam.Y = Me.ScaleY(Y, Me.ScaleMode, vbPixels)
>>>
>>> Bug there... the X & Y are already in pixels regardless of the form's
>>> scalemode
>>>
>>> those 2 lines should be:
>>> uParam.X = X / Screen.TwipsPerPixelX
>>> uParam.Y = Y / Screen.TwipsPerPixelY
>>>
>>
>> I can't see a difference in the result. Tried it both ways.
>> maybe in a specific circumstance it would error?
>
> Change the form's scalemode and try it.

ah i'll have to read up on scalemode. Don't know what it's for or why i'd
change it. But the default appears to be 1- twip
when i set it to 3- pixel not even my listboxes show up so my resizing code
is obviously not correctly formatted either, to allow for different
scalemodes if one needed that for some reason.
thanks
mark