NativeImage left property

glook

Member
Licensed User
Longtime User
I'm trying to add an option to give VGA users better image quality. The NativeImage control in the ControlsExDevice library appears to offer everything needed.

But I'm having a problem with positioning the control - is there a bug or maybe I've mucked it up somewhere? :sign0085:

When the Left property is set, it appears to ignore the value and reset both left and width to the initial left value!

Top, Height and Width behave as expected.

In the original application, the user selects the picture from a database and it may be of any size. Some repositioning/resizing code is needed to show it nicely on a fullscreen form. However the attached simple project illustrates the problem (needs ControlsExDevice and ControlsExDeviceDummy dll's).

I'm using version 6.90 and ControlsExDevice 1.8 - I think it's the latest library, re-installed and refreshed the dll's everywhere.

I thought perhaps I should set the position using NativeLeft and NativeTop, as in the Help file, but on my system these properties do not exist :confused:

Regards,
Geoff.
 

Attachments

  • nativeimagetest.ZIP
    16.6 KB · Views: 205

agraham

Expert
Licensed User
Longtime User
The sun is off the patio and the air is getting chillier so ControlsExDevice version 1.9 is now posted and I'm off for a shower.

It's a lovely sunny evening just right for a meal of asparagus while it's in season :sign0060:. We can buy it freshly cut directly from one of Cheshire's best growers so it's pretty cheap, so we can afford lots, and extremely high quality :cool:. One of the best times of the year :).
 

glook

Member
Licensed User
Longtime User
Thanks Andrew, my program is looking much better, but I'm still having a problem setting the Left property itself. It appears to be ignoring the value.

NativeLeft and NativeTop are now visible. I tried using NativeLeft but this also has no effect on the position. However NativeTop works exactly as expected.

Could you have another look when you get a chance? This is a great library that is really a needed compliment to the Autoscale feature - very much appreciated.

I'm off to do my "day job" now - sorting out other peoples gardens!
 

glook

Member
Licensed User
Longtime User
Fantastic - all looking very good and behaving perfectly.

I just need to tidy up a bit of code around this and it will make a really excelent new feature for the next version of my application. Many thanks Andrew for this highly valuable library and superb support :sign0188:
 
Top