Print Page | Close Window

Using it with Imagemanger

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16479
Printed Date: 27 April 2024 at 9:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using it with Imagemanger
Posted By: Sm0kes
Subject: Using it with Imagemanger
Date Posted: 21 March 2010 at 10:00am
Hi all im not so good at using codejock but im learning ... i want to know how to use stored images in ImageManager and load it using Markup because i want to use it on a combobox without using any external image  .. if somebody knows how to do this please help me 

-------------
Juzt Be YourSelf!..



Replies:
Posted By: jpbro
Date Posted: 21 March 2010 at 10:59am
This question would probably be better in the Controls forum, since the MarkupLabel control doesn't have a ComboBox object (yet!), but I can answer it here.

To do what you want, you have to add your ImageManager icons to the shared repository for all Suite Controls. This is done in the SuiteControlsGlobalSettings object. Then, when you add images to your ComboBox, you can reference them by their ImageManager Icon ID. Here's an example:


Private Sub Form_Load()
   SuiteControlsGlobalSettings.Icons.AddIcons Me.ImageManager1.Icons     ' Add All ImageManager icons to the Suite Controls global icon repository
  
   With Me.ComboBox1
      .Style = xtpComboDropDownList    ' Make sure user doesn't see Markup code after selecting an item
  
      .AddItem "<Image Source='100'/>"   ' Add Image 100 to the ComboBox
   End With
End Sub


Hope that this helps!


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Sm0kes
Date Posted: 24 March 2010 at 10:38am
hey thanks for the answer i will try it out when i got home im really appreciated



-------------
Juzt Be YourSelf!..



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