wxnotebook dynamic image display - c++

I want to display images that I get from a folder in a Wxnotebook. The problem that I don't know how many images is in that folder ( I only have images full path). How can I display images dynamically with wxnotebook?
Thanks for helping.

How can I display images dynamically with wxnotebook?
Here are hint for your homework to be easy
Load Those List from That Directory - See wxDir
Create wxImageList from loaded image see the docs
Assign wxImageList to wxNotebook
Set Page using specific index in image list above

Related

How to use .png on APEX list instead of Font APEX graphic

I am extremely new to APEX and am trying to edit a list to include a .png file (logo) instead of one of the "font APEX" pre-loaded graphics. I can successfully select one of the font APEX graphics via this path:
Application --> Shared Components --> Lists --> MyList --> List Entry --> Image / Class --> font APEX -- Select Graphic
I have uploaded .png files to both the workspace images and the application images. I can select them in the Image / Class menu but when I save and go to view the page, I only have a blank circle instead of the logo. It might be noteworthy that Ithe same result occurs if I use a "standard image" in place of the application image.
I am not sure what other details might need to be included in order to make this question better, so please comment if other information would be helpful.
Thanks !

Sitecore place multiple images from library at once

Working on a project for a client. They have a PDF that has been broken into separate pages as images, and they want to have each of those images appear on a single page - at least 40 images for this one page alone.
So far, I've just been placing them individually. Each time you go to place an image using the rich editor, you start at the media root - and the way the media library has been structured, these images are buried very deep within subfolders. So it takes about 20 seconds of clicking, scrolling, and reading to find each image to place it.
These images are sequential and placed in order in the media library. Is there a way I can select a group of images and just drop them in? There are going to be literally hundreds of these, and it's a huge waste of my (and my client's) time placing images one-by-one.
Going along the lines of what TwentyGotoTen has said, I would:
Structure your images in the Media Library within folders (if you haven't already done so)
Create a sublayout/xsl rendering that contains a repeater to render the images
Add the control to the layout and set the DataSource of that control to the Media Folder
The code should then retrieve all child items from that folder and render as necessary.
You may need the use of the Sublayout Parameter Helper to access the datasource from ascx codebehind.
I'm assuming you just want the images to appear one after the other with nothing else inbetween. Rather than embedding images in rich-text perhaps you should consider creating a multilist field for the images in the template and create a rendering / sublayout to render them.
You can set a more suitable source for the multilist than the media root. This should make it a lot easier to select the images.
Mark van Aalst has created a custom image field that allows to do this a bit easier as well.
Have a read through this. This is also available on Sitecore's Marketplace: Multiple Images Selector
It will allow you to select your images through a multilist field, but it'll show the images as an image field with multiple images.
I think this is pretty much the solution TwentyGotoTen is talking about as well, but shows the thumbnail of the selected images as well.

Select the Image from Media folder in umbraco

im new to umbraco and doing the maintenance for this site which i come across.i want to select the image from my Media folder,my banner from image 1 to 5 works fine (which done by someone else) however i want to put the banner for image6 which doesn't not works fine.cant locate the image logo.i have the image(banner6) below.the id:7745 which i guess since i follow the id from the last image..
thanks in advance
You can't guess the image ID, you need to look it up in the Media section. When you hover with your mouse over the media-item in the media-tree, you can see the ID of the media in the lower left corner:
In this case the Id of the image is 6508 and this is the Id that should be used if you want to display images hardcoded
i have been able to solve my problems, since im using Umbraco V3, all i have to do is insert that image into one of the Content Page for testing from there i can get the ID for that image and then i write the code using that ID..it works fine.

Which Qt widget (not webkit) that can display html image link (like item list)

i like to display image from server without downloading it , sure i can use qwebkit.
but i like to be able to display the image in some kind of list . what option do i have ?
I know that QTextEdit supports img tags, and I use them in lists. However, I don't know if it actually supports full URLs for those images, I just use images from the resource file. You could however give it a try.
Use setHTML() to set the HTML source code, setText() assumes plain-text.
You -have to- download the image manually and load it into a QPixmap to show it. You can use libcurl to download the image, it's pretty solid and works on virtually any platform. And really easy to use.

how to display thumbnails in listview like explorer does?

could you please point c++ code example to display videos and images thumbnails in listview?
I can help with images, but not videos:
http://www.codeproject.com/KB/GDI-plus/GdiPThumbnailsViewer.aspx
Basically you use a normal list control and add the images to an associated image list. There are some gotchas though - looks like you have to use the CImageView::ReplaceImage instead of CImageView::AddImage, else the images don't appear correctly. Masking the image may also require some work.