Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - How to add image (.jpg) into popupcontrol?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add image (.jpg) into popupcontrol?

 Post Reply Post Reply
Author
Message
winanjaya View Drop Down
Groupie
Groupie


Joined: 07 August 2005
Location: Indonesia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote winanjaya Quote  Post ReplyReply Direct Link To This Post Topic: How to add image (.jpg) into popupcontrol?
    Posted: 14 December 2008 at 10:42am
Dear All,
 
How to add image (.jpg) into popupcontrol?
 
please help
 
Thanks
 
Winanjaya
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2008 at 11:52am
Suppose you put your image.jpg in an Image Control BackImg(1), you can write:
 
Dim Item As PopupControlItem
 
Set Item = Popup.AddItem(0, 0, 320, 130, "") ' *** depends on width and height of image
Item.SetIcons BackImg(1), 0, xtpPopupItemIconNormal

 
Back to Top
winanjaya View Drop Down
Groupie
Groupie


Joined: 07 August 2005
Location: Indonesia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote winanjaya Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2008 at 9:44pm
Hello,
 
I tried it but the image1 seems like not streched although I have configured streched = true on image1 property
 
pls help
 
thanks & regards
 
 
    Set Item = Popup.AddItem(0, 0, 350, 300, "")            ' *** depends on width and height of image
    Item.SetIcons Image1, 0, xtpPopupItemIconNormal
    Item.CalculateHeight
    Item.CalculateWidth
   
    Popup.VisualTheme = xtpPopupThemeMSN
    Popup.SetSize 300, 250
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2008 at 3:34am
Hello,
 
You're right : PopupControl can not strech image added in the control.
 
Althought, Image control has the property Streched=true, the bitmap in the Image control remain with the same width and height.
 
You must have an image with the correct width and height, or Stretch the bitmap programmaticaly.
 
Or put the streched property for PopupControlItem in the Codejock Wish List.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.