XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 8:30 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: video Widget
PostPosted: April 11th, 2014, 6:42 am 
Offline

Joined: April 11th, 2014, 6:33 am
Posts: 5
Hello everybody.

Is there any widget that can display a video clip :?: ? :ugeek:

regards


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 8:30 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
No astroganger... XWidget supports only music files though the XWidget's player widgets.

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 8:53 am 
Offline

Joined: April 11th, 2014, 6:33 am
Posts: 5
thank you jimking for reply

i want your help with this cod


what is the right line to make this work >>>>> htmlpanel1(url); <<<<<<


Code:


function edit1OnKeyDown(Sender,Key,KeyChar,Shift)
{
  if(Key==13)
  {
    button1(Sender);
  }
}

function image1OnMouseUp(Sender,Button,Shift,X,Y)
{
    edit1.SetFocus;
}


function button1OnClick(Sender)
{
    var url = "http://www.google.com/search?q=" + encodeURIComponent(edit1.text) + "&ie=UTF-8&oe=UTF-8";
    htmlpanel1(url);
}




Image


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 9:32 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
If you want to make Google search widget, you can use the script of this one:


Attachments:
google_search_vista_gadget.xwp [14.91 KiB]
Downloaded 372 times

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/
Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 9:51 am 
Offline

Joined: April 11th, 2014, 6:33 am
Posts: 5
no jimking

i want the html panel in my widget open the page , not open it on windows browser


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 9:53 am 
Offline

Joined: April 11th, 2014, 6:33 am
Posts: 5
this line >>>> htmlpanel1(url); is wrong . and i want to correct it . anyone can help with it


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 2:47 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
So you want to reproduce the browser's function/url space?
If yes, you need to change more things in the code. Here is the script from a "Google Search" widget :
Quote:
function image6OnClick(Sender)
{
if(google.text=="") return;
var url = "http://www.google.com.hk/search?q=" + encodeURIComponent(google.text) + "&ie=UTF-8&oe=UTF-8";
openURL(url);
google.Setfocus;
}

function googleOnKeyDown(Sender,Key,KeyChar,Shift)
{
if(Key==13)
{
image6OnClick(null);
}
}


If you compare the two scripts, you keep almost the same script! You need to change the "edit" function.

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 4:31 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
this will open the url in browser and not htmlpanel
i don't think he want it that way

the problem is:
there is no command in autocomplete available to change the htmlpanel's url through script code,
so maybe there is no command exist to do so
so the code can't be fix yet.



i think there is also another problem in the code:
i think [button1(Sender);] should be [button1OnClick(Sender);] to execute the button1OnClick function. (if you don't have a [button1()] function in your code)


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 4:46 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
If something like htmlpanel1.link = ??? or htmlpanel1.url = ??? or htmlpanel1.code = ??? does not exist, should it be added ?


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 11th, 2014, 9:52 pm 
Offline

Joined: April 11th, 2014, 6:33 am
Posts: 5
hamid you are right .... i want to make widget browser , and open the page in my html widget

something else , the animated xwidget when i opend it in my andriod phone didnot works any one can
confirm that the animated widgets not working on andriod os

regards


Top
 Profile  
 
 Post subject: Re: video Widget
PostPosted: April 12th, 2014, 3:04 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
astroganger wrote:
hamid you are right .... i want to make widget browser , and open the page in my html widget

something else , the animated xwidget when i opend it in my andriod phone didnot works any one can
confirm that the animated widgets not working on andriod os

regards

Animations are not supported on XWidget Android app.
1) For memory/battery consumption
2) Not support for script code (yet?)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


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

All times are UTC - 8 hours


Who is online

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