WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stanl on June 02, 2021, 02:14:39 PM

Title: Dumb Question....
Post by: stanl on June 02, 2021, 02:14:39 PM
Is it possible, mathematically, to convert WB Dialog component data points into win form data points?
Title: Re: Dumb Question....
Post by: td on June 03, 2021, 09:23:16 AM
Could you be more specific about "data points?" Are you referring to the dialog unit coordinates of a dialog or its controls?
Title: Re: Dumb Question....
Post by: stanl on June 03, 2021, 11:07:19 AM
Quote from: td on June 03, 2021, 09:23:16 AM
Could you be more specific about "data points?" Are you referring to the dialog unit coordinates of a dialog or its controls?


basically the location and size
Title: Re: Dumb Question....
Post by: td on June 03, 2021, 01:31:17 PM
I don't know what display position and size units are used in win forms. But if you know the unit of measure/location the conversion should be straightforward. The Tech Database contains examples for dialog units to pixels. That should at least give you a hint as to the conversion forumla.