<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Restricted Width for PopupControl Images</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Restricted Width for PopupControl Images]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:56:18 +0000</pubDate>
  <lastBuildDate>Mon, 28 Jul 2008 22:27:13 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=11580</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Restricted Width for PopupControl Images :  Great, that pointed me in the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=39015&amp;title=restricted-width-for-popupcontrol-images#39015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3426">meaningoflights</a><br /><strong>Subject:</strong> 11580<br /><strong>Posted:</strong> 28 July 2008 at 10:27pm<br /><br />Great, that pointed me in the right direction and using the sample PopupControlLayer, I found what I was missing:<br><br><br>Popup.Icons.LoadBitmap App.path &amp; "\Blob.jpg", 100, xtpImageNormal<br>item.IconIndex = 100<br><br><br>Instead of :<br><br>item.SetIcons LoadBitmap("Blob.jpg"), 0, xtpPopupItemIconNormal Or xtpPopupItemIconSelected Or xtpPopupItemIconPressed<br><br><br><br><br><br>More info:<br><br>I've found the order you add items does make a difference. <br><br>When I loaded a icon, then text then bitmap I saw a weird effect... It was really hard to select icon buttons as the hover area was a quarter of the icons size. Loading Bitmaps, then Icons then text seems to be the best order. <br>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 22:27:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=39015&amp;title=restricted-width-for-popupcontrol-images#39015</guid>
  </item> 
  <item>
   <title><![CDATA[Restricted Width for PopupControl Images : Hi,  item.SetIcons waits that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=38969&amp;title=restricted-width-for-popupcontrol-images#38969</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11580<br /><strong>Posted:</strong> 28 July 2008 at 2:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>item.SetIcons waits that bitmap will have 3 states - normal, hot, presesed.</DIV><DIV>&nbsp;</DIV><DIV>just use </DIV><DIV>Popup.Icons.LoadBitmap instead.</DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 02:57:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=38969&amp;title=restricted-width-for-popupcontrol-images#38969</guid>
  </item> 
  <item>
   <title><![CDATA[Restricted Width for PopupControl Images :   Hi,I am using a PopupControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=38890&amp;title=restricted-width-for-popupcontrol-images#38890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3426">meaningoflights</a><br /><strong>Subject:</strong> 11580<br /><strong>Posted:</strong> 25 July 2008 at 6:44am<br /><br />Hi,<br><br>I am using a PopupControl with a 111x101 jpg image in it.<br><br>1. How do I set the PopupItems width so all of the image is shown? I cant work out what is preventing it, as per the screenshot:<br><br><img src="uploads/20080725_063533_HalfMeHead.JPG" height="303" width="416" border="0"><br><br><br><br><br><br><br><br><br>2. There's another problem noted in the code comments of this repro A RollOver effect appears when set differing values for "Left" and "Right" arguments in the Popup.AddItem method, see pic below, the Right argument takes priority over the Left argument when the mouse is rolled over the 111x101 area:<br><img src="uploads/20080725_064048_MiddleOfMeHead.JPG" height="314" width="400" border="0"><br><br><br>Please help, here is the repro, all you have to do is put a command button and Popupcontrol on a form, make 111x101 image and run this code:<br><br><br><br>Option Explicit<br><br>Private Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst _<br>&nbsp;&nbsp;&nbsp; As Long, ByVal lpsz As String, ByVal un1 As Long, ByVal n1 As Long, ByVal n2 _<br>&nbsp;&nbsp;&nbsp; As Long, ByVal un2 As Long) As Long<br>Private Const IMAGE_BITMAP = &amp;O0<br>Private Const LR_LOADFROMFILE = 16<br>Private Const LR_CREATEDIBSECTION = 8192<br><br><br><br>Private Sub Command_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)<br><br>Call SetPopupTheme(PopupControl)<br>Call PopupControl.Show<br><br>End Sub<br><br>Sub SetPopupTheme(ByVal Popup As XtremeSuiteControls.PopupControl)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim item As PopupControlItem<br><br>&nbsp;&nbsp;&nbsp; Popup.RemoveAllItems<br>&nbsp;&nbsp;&nbsp; Popup.Icons.RemoveAll<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br><br>&nbsp;&nbsp;&nbsp; 'The image doesn't move on mouse over<br>&nbsp;&nbsp;&nbsp; 'Set item = Popup.AddItem(12, 12, 12, 12, "")<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; '<img src="http://forum.codejock.com/smileys/smiley7.gif" border="0" align="absmiddle"> The image moves on mouse over! and the picture is still half its width<br>&nbsp;&nbsp;&nbsp; Set item = Popup.AddItem(12, 12, 123, 113, "")<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; item.TextAlignment = DT_SINGLELINE<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; item.SetIcons LoadBitmap("Blob.jpg"), 0, xtpPopupItemIconNormal Or xtpPopupItemIconSelected Or xtpPopupItemIconPressed<br><br><br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Popup.VisualTheme = xtpPopupThemeOffice2007<br>&nbsp;&nbsp;&nbsp; Popup.SetSize 270, 122<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Popup.Animation = 1<br>&nbsp;&nbsp;&nbsp; Popup.AnimateDelay = 256<br>&nbsp;&nbsp;&nbsp; Popup.ShowDelay = 2000<br>&nbsp;&nbsp;&nbsp; Popup.Transparency = 200<br>&nbsp;&nbsp;&nbsp; Popup.AllowMove = True<br><br>End Sub<br><br><br><br><br>Function LoadBitmap(Path As String) As Long<br>&nbsp;&nbsp;&nbsp; LoadBitmap = LoadImage(App.hInstance, App.Path + "\" + Path, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)<br>End Function<br><br><br><br><br><br>Thanks in advance for trying to reproduce and solve this half image issue<br>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 06:44:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11580&amp;PID=38890&amp;title=restricted-width-for-popupcontrol-images#38890</guid>
  </item> 
 </channel>
</rss>