![]() |
How to add image (.jpg) into popupcontrol? |
Post Reply
|
| Author | |
winanjaya
Groupie
Joined: 07 August 2005 Location: Indonesia Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
dentor
Senior Member
Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
winanjaya
Groupie
Joined: 07 August 2005 Location: Indonesia Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
dentor
Senior Member
Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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.
![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |