Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
..Picture.Data error. Why ? bug in IW ?
#3
Hi Kudzu,

No, it's not dynamic. Ones I have loaded an picture onto the iwimage placeholder at design, that's it. The image is small (20x20 pixels).
I then put an onclick event onto it to open up at search form when clicked. The error appears when loading the form, not when clicking the image.

In fact, using this solution, was a work-around form earlier IW versions, where buttons with images was not available. And to be honest I find it hard to believe it should be a better solution to add the image as a file (png or bmp) to the wwwroot dir, and then use an URL, which will mean disk activity when loading program/form, not to mention the dependencies of external files. I have the same image maybe 20-25 times in total for the current number of forms, so it would only be one file, but it would be loaded from disk up to 2-3-4-5 times for each forms, depending on the number of images on if.

For every field on the form, being a key field to a table, I have an image with an onclick event allowing the users to open up a search form, enabling them to search for data for the table in question. Using an image allows me to have a smaller footprint for the option, as an image says "more than 1000 words", as they say.

I am loading the image as a BMP file (delphi's own glyphs) but could make it a png to try that, if you think it would avoid conversion.

Do you recommend I use a image button instead, now these are available in IW ?

And thanks for the explanation, btw.

Regards
Soren
Reply


Messages In This Thread
RE: ..Picture.Data error. Why ? bug in IW ? - by SorenJensen - 02-05-2020, 06:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)