Print Page | Close Window

CXTPControlGallery, Loading jpeg at runtime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23079
Printed Date: 06 May 2024 at 7:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlGallery, Loading jpeg at runtime
Posted By: capizzi
Subject: CXTPControlGallery, Loading jpeg at runtime
Date Posted: 20 July 2016 at 11:33am
Hi, I am trying to make an image gallery like Picasa thumbnails in editing mode view.

Like this one



I have placed a CXTPControlGallery on CommandBars trying to feed it with thumbnails loaded dynamically by sql.

I had no luck to make it works, I can correctly add items with caption and labels but when i try to set icon into imagemenager all i can display is a blank item.

The flow is as following :

I take raw jpeg from a db table, i load them into memory and convert Dib to Bitmap handler (HBITMAP) then i attach the handler to a CXTPImageManagerIconHandle stored in a vector member of mainframe class.

Images are loaded correctly and i can get them at any time until the mainframe doesn't get destroyed.

So i wanna know which is the right way load a bitmap (from memory) into imagemanager and make ControGallery to properly display it?

-------------
Capizzi Filippo



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net