Subject Re: CUSTOM CONTROLS
From Mustansir Ghor <mustan31@hotmail.com>
Date Sat, 20 Jan 2018 13:48:29 -0500
Newsgroups dbase.getting-started

Dear Mervyn

Yes. It does work. Thanks. But the problem comes when a custom control is container class with other controls in it. The container retains its position but all control inside the container disappear.

Regards
Mustansir

Mervyn Bick Wrote:

> 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.
>
>



Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0