Print Page | Close Window

Custom controls on Popup control?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6776
Printed Date: 17 November 2024 at 1:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom controls on Popup control?
Posted By: Majek
Subject: Custom controls on Popup control?
Date Posted: 31 March 2007 at 9:17pm
Hi, I'm making a program that includes a media player. When the user plays a song, the Popup control appears in the corner of the screen with the file's ID3 information (title, artist, etc.). My goal is I want to display a 64x64 image of the album cover of the song inside the Popup control when they play the song. The Popup control sample included with XtremeSuite 10.1 shows an example of adding images by using:
 
Item.SetIcons(SetBitmap("../..\Icons\CloseMSN.bmp"), System.Convert.ToUInt32(0), XTPPopupItemIcon.xtpPopupItemIconNormal Or XTPPopupItemIcon.xtpPopupItemIconSelected Or XTPPopupItemIcon.xtpPopupItemIconPressed)
 
The SetIcon or SetIcons function works with saved images, or with the window handle of the image, my problem is I can't figure out how to get the window handle of a system.drawing.image since there is no handle property in vb.net.
 
So my question is, is there a way to add a custom control like a picturebox to a Popup control using 10.1? If that is not possible, is there a way to get the window handle of a system.drawing.image so I can add it to the Popup control?



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