XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 11:56 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 15th, 2013, 10:43 am 
Offline

Joined: April 12th, 2013, 11:35 pm
Posts: 6
Hello.
Image
Please - only last image visible, other looks like second on this screen or just don't appear.
Code:
  images[num] = Image.Clone(icon2)
  //images[num] = Image.Create(widget); <--- don't work. How to use this properly? I tried many variants, but nothing except upper line works.
  images[num].parent = frame;
  images[num].Visible = true;
  images[num].top = 10;
  images[num].Left = 5;
  images[num].core = shortcutlistcore1;
  images[num].Coreformat = "%item"+num+"_Icon";
  images[num].OnClick = "!Open";
  images[num].OnMouseEnter = "OnMouseEnter";
  images[num].OnMouseLeave = "OnMouseLeave";


And has xwidget a manual like http://docs.python.org/2/library/ ?

Thanks in advance.


Attachments:
sao3.zip [1.27 MiB]
Downloaded 239 times
Top
 Profile  
 
PostPosted: April 15th, 2013, 4:10 pm 
Offline
User avatar

Joined: May 12th, 2012, 8:32 pm
Posts: 594
How to create image with js code:

Code:
var newImg = Image.Create(widget);
  widget.InitControl(newImg);    //uses this function to init control
  newImg.parent = root; 
  newImg.src = "Icon.png";
  newImg.left = 50;
  newImg.top = 100;
  newImg.width = 200;
  newImg.height = 200;
  newImg.OnClick = "open1";
//  newImg.bringtofront;  //if you need bring image to front

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
PostPosted: April 15th, 2013, 6:10 pm 
Offline

Joined: April 12th, 2013, 11:35 pm
Posts: 6
Thank you, it works.
Code:
  var newImg = Image.Create(widget);
  widget.InitControl(newImg);    //uses this function to init control
  newImg.parent = frame;
  newImg.core = shortcutlistcore1;
  newImg.Coreformat = "%item"+num+"_Icon";
  newImg.top = 10;
  newImg.Left = 5;
  newImg.width = 45;
  newImg.height = 45;
  newImg.WrapMode = 3;
  newImg.OnClick = "!Open";
  newImg.bringtofront;  //if you need bring image to front

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group