Tricky problem - Setting the position of an InputBox from VBscript 
Author Message
 Tricky problem - Setting the position of an InputBox from VBscript

I am using the InputBox function in an IE 5.5 client-side VBScript. However
it seems from the MSDN documentation that the optional xpos and ypos
properties are using Twips as units, which is an absolute measurement system
based on the physical size. (1/1440 of an inch.)

In a VB app there is TwipsPerPixel property of the Screen object, but not in
the IE Screen object.

I could manually convert the pixel value to twips if I knew the physical
size of the client's screen in inches, but I can see no way of accessing
that information without having to use an client-side ActiveX control that
provides the type of functionality found in GDI functions like
GetDeviceCaps. The IE Screen object only gives the size in pixels and does
not have the VB Screen object's TwipsPerPixel property.

Does anyone know another way to convert screen co-ordinates from pixels to
twips in client-side VBScript that does not require an ActiveX control?

Thanks,
--
Love and sloppy ones,
Aunty Dan
(Remove x from email domain to reply directly)



Sat, 08 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Tricky problem - Setting the position of an InputBox from VBscript

2. Tricky one - mouse position anywhere...

3. Next inputbox positioned, where the user draged the previous

4. Tricky One...a real Tricky one!!!!!

5. Tricky imagemask problem

6. changes to all records in one rec set based on position in another rec set

7. Set category automatic in inputbox on sending messages

8. how do i make inputbox set focus to the input

9. InputBox vs. InputBox$

10. Setting Table Location with ASP/VBSCRIPT Problems

11. Tricky problem re: returning an item sequence number to a form and to a table

12. tricky problem

 

 
Powered by phpBB® Forum Software