Hi,
If I have a window which is permanently hidden, which contains a 2 column, fully populated Listbox - can that still be saved as a jpg via button code in a window which is displayed?
Or are hidden windows considered as non-existent (as far as the above example goes) ?
The reason I am asking is that my main Listbox is small in width and height - therefore I would like a bigger identical listbox (hidden), which will get saved as the image.
[quote=83379:@Richard Summers]Hi,
If I have a window which is permanently hidden, which contains a 2 column, fully populated Listbox - can that still be saved as a jpg via button code in a window which is displayed?
Or are hidden windows considered as non-existent (as far as the above example goes) ?
The reason I am asking is that my main Listbox is small in width and height - therefore I would like a bigger identical listbox (hidden), which will get saved as the image.
Hope that made sense.
Thank you all in advance.[/quote]
is there a reason for not saving your listbox content into a csv file ?
I also imagine it wouldn’t be too difficult to write your own code to draw the data to a picture and save that as a file. You could make it look a little nicer than a screenshot-type image of a listbox.
John and Bill,
I was using my ListBox just as one example.
I am also using a canvas displaying a column chart.
My canvas can only be about 700 pixels wide, so I would like a bigger off screen canvas with identical content, (which would be used as the saved image).
I just need to know if an off screen canvas will save as an image - or - if anything hidden is ignored?
You’re thinking this whole thing backwards. If you can display something in an off-screen canvas, that means you can draw it, which means you can create a Picture object and draw the same thing into it, without needing any off-screen controls. If you can load some data into a listbox, then with about the same amount of code you can save that data to a file or render it to an image. Skip the off-screen controls altogether and go directly to saving the data.