Subject Re: CUSTOM CONTROLS
From Mervyn Bick <invalid@invalid.invalid>
Date Sat, 20 Jan 2018 12:06:11 +0200
Newsgroups dbase.getting-started

On 2018-01-20 10:44 AM, Mustansir Ghor wrote:
> Dear All
>
> If we have to put  custom controls in a form  where one control metric  = 0 (chars) and another metric = 6 (pixel), How can we resolve such an issue

Set the form metric to match the custom control metric.  Place the
custom control and then set the form metric back to what you want it to
be.  The designer should recalculate all the coordinates.

The one case where this will not work is where the custom control uses a
Windows API function such as sendMessage() to emulate, say, a
mouse-click on a specific point.  In this case sendMessage requires the
point to be specified in pixels so the form metric MUST be pixels.