Can not get size of list width

J

Jason

For a form I am using ControlBoxField.ListWidth = 7.5 (or any other value)
but resizes the drop down list width to the width of the drop down box. The
help states that the value can not be less than the width of the control
box - being larger should be fine. Instead I have to use
ControlBoxField.ListWidth = 5000. The field for List Width under form (below
column widths and list rows) is still set to 7.5. So why the different
values required?

Thanks,
J.
 
R

ruralguy via AccessMonster.com

Hi Jason,

I think you will find the values need to be in TWIPS (1440 = 1 inch I think)
 
J

Jason

Thanks for that, I was wondering about that - it does not state that for
listwidth but did for something else. I'll try the formula 1440/2.54*7.5
(4251) but that seems too small as I am using 6000. It looks like 2032 or
thereabouts = 1".
 
R

ruralguy via AccessMonster.com

Why are you dividing by 2.54? 1440*7.5 should be 7.5 inches.
Thanks for that, I was wondering about that - it does not state that for
listwidth but did for something else. I'll try the formula 1440/2.54*7.5
(4251) but that seems too small as I am using 6000. It looks like 2032 or
thereabouts = 1".
Hi Jason,
[quoted text clipped - 13 lines]
 
M

Marshall Barton

Jason said:
Thanks for that, I was wondering about that - it does not state that for
listwidth but did for something else. I'll try the formula 1440/2.54*7.5
(4251) but that seems too small as I am using 6000. It looks like 2032 or
thereabouts = 1".


It is definietly 1440 twips per inch.

I think your calculation would be correct for 7.5
centimeters, but maybe 7.5 centimeters is not wide enough.
 
J

Jason

7.5cm is wide enough (can set it to that value (7.5) in the form control -
The field for List Width on form design below column widths and list rows).
 
M

Marshall Barton

Well, I can't see your form or list bos so I don't know what
to do about "seems too small".

How about just setting the ListWidth to the Width property?

Have you used breakpoints in the code to see what the Width
and before and after ListWidth values really are?

Warning: Do not edit any code while viewing a module in
breakpoint mode because it is likely to corrupt the form's
module.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top