IonicWind Software

Aurora Compiler => GUI => Topic started by: Pip1957 on July 31, 2006, 06:27:05 AM

Title: ImageWin in dialog
Post by: Pip1957 on July 31, 2006, 06:27:05 AM
Hello all, can anyone show me how to create an image window in a dialog. I have a dialog that is setup like a file requestor and I want to be able to preview images when single clicked on in the listview. just need to know how to setup the window using the ImageWin Class.
Title: Re: ImageWin in dialog
Post by: Ionic Wind Support Team on July 31, 2006, 10:12:15 AM
ImageWin class?

There are image classes like CImage and CBitmap. 

Just create a captionless child window of the dialog.  Use CImage to load the image and render it to that window.
Title: Re: ImageWin in dialog
Post by: Pip1957 on July 31, 2006, 10:16:19 AM
Any chance of a example
Title: Re: ImageWin in dialog
Post by: Ionic Wind Support Team on July 31, 2006, 10:54:18 AM
Check out weatherman.src.  Not a dialog parent but the same technique applies.  Just create the render window while processing OnInitDialog.
Title: Re: ImageWin in dialog
Post by: Pip1957 on July 31, 2006, 11:00:57 AM
Thank you Paul  ;)