XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 2:06 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: InitCore (v 1.73)
PostPosted: September 29th, 2012, 3:12 am 
Offline

Joined: August 11th, 2012, 3:13 am
Posts: 25
How do work the new function widget.InitCore? I tried:

diskcore1 = widget.InitCore(DiskCore)
diskcore1.diskname = "c"

but it said 'Object diskcore1 required' in second line. Could you provide an example of the function?

Thanks


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: September 29th, 2012, 4:07 am 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
create core in code
Code:
  var newCore = ShortcutCore.Create(widget);
  widget.InitCore( newCore );
  newCore.InitLoaded;


create control in code
Code:
var newImg = Image.Create(widget);
  widget.InitControl(newImg); 
  newImg.parent = root; 
  newImg.src = "Icon.png";
  newImg.left = 50;
  newImg.top = 100;
  newImg.width = 200;
  newImg.height = 200;
  newImg.OnClick = "open1";


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: September 29th, 2012, 9:03 am 
Offline

Joined: August 11th, 2012, 3:13 am
Posts: 25
Thank you very much, qiancang.


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: September 29th, 2012, 9:18 am 
Offline

Joined: August 11th, 2012, 3:13 am
Posts: 25
Mmm, it doesn't seem to work in VB. I wrote

Code:
    diskcore1 = DiskCore.Create(widget)
    widget.InitCore diskcore1
    diskcore1.InitLoaded
    diskcore1.diskname = "C"


but I get an error 'Object DiskCore required' on first sentence. Anything wrong?

(edit) Not working in javascript, either. 'Diskcore not defined'.


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: September 29th, 2012, 12:02 pm 
Offline
User avatar

Joined: August 18th, 2012, 4:08 pm
Posts: 101
Location: Oradea, Bihor, Romania
var newCore = ShortcutCore.Create(widget);

_________________
" Homosexuality exists in 450 species. Homophobia is found in only one. Which seems unnatural now?
Image


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: September 29th, 2012, 3:32 pm 
Offline

Joined: August 11th, 2012, 3:13 am
Posts: 25
Nutu wrote:
var newCore = ShortcutCore.Create(widget);


As I said, not working in javascript either.


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: December 7th, 2013, 10:59 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
qiancang wrote:
create core in code
Code:
  var newCore = ShortcutCore.Create(widget);
  widget.InitCore( newCore );
  newCore.InitLoaded;


create core doesn't work
it will say ShortcutCore is undifined
(or whatever core you use is undifined)


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: December 8th, 2013, 1:17 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
This API appeared in the 1.8.x series, you will need to upgrade

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: InitCore (v 1.73)
PostPosted: December 9th, 2013, 10:57 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
digigamer wrote:
This API appeared in the 1.8.x series, you will need to upgrade

i'm using v1.8.8.1111-portable
and create core in code doesn't work for it
it will say DateTimeCore is undefined
(or any other core you use it will say undefined)

although you can create objects in the code
but you can't create cores in the code


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 40 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