XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Sep 23日 19:17

All times are UTC - 8 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: 2017年 Apr 30日 09:19 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Guide to converting Yahoo Widgets to Xwidget Pt1

Part I of a six part series

http://yereverluvinuncleber.deviantart.com/journal/Guide-to-converting-Yahoo-Widgets-to-Xwidget-Pt1-677100991

Posted the guide at DeviantArt as it will receive a lot more visibility there, this forum is a little dead for my liking. It has already had 239 views there and rising daily... only two here! Dead or what?

The guide is a work-in-progress, each page will be updated as more information arises, page VI is being heavily modified now but most other pages are fairly accurate and complete. Please feel free to add your own observations here or on Deviantart.


Top
 Profile  
 
PostPosted: 2017年 May 2日 03:05 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4545
Very useful. Thank you :)
(DA has millions of users. Do not expect the same response here from less than 3000 members..)

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


Top
 Profile  
 
PostPosted: 2017年 May 5日 10:44 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Thanks for responding.

388 viewers so far on DA. I happy with that.


Top
 Profile  
 
PostPosted: 2017年 May 5日 10:55 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4545
I think that it will be better if I move this topic here:

Widget Develop Documents:
viewforum.php?f=10

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


Top
 Profile  
 
PostPosted: 2017年 May 9日 04:54 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Thanks for that Jim, can I ask that when and if you have time you have read-through. I'd like your response on any technical matters that you feel could be done in a different way. For example, setting colours in code does not seem to work at all so some response in that context would be appreciated.


Top
 Profile  
 
PostPosted: 2017年 May 9日 10:41 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4545
I will do it as soon as possible. From a quick reading I see that it requires time, work and advanced knowledge of js. I'm not so expert in java script and you know that I'm always more for the "direct way" when I design something trying to use the Designer in the direct way or finding "tricks" than use code. But I fully understand, and I saw it from my "complicated" designs, that the js is inevitable if you want to create cool stuff and go futher.. Many times I had so many ideas but my limited knowledge forced me to stop from add some extra functions.
Since my free time is limited this period it will be more easy show me the part to check, about the colours and especially when and how you want to use them..

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


Top
 Profile  
 
PostPosted: 2017年 May 11日 00:56 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
I have simply failed to change colours of any object in code, when I managed to change a colour it was random!

The thing is that as Xwidget supports full jscript anything that a yahoo widget can do, xwidget can do, so there is no need to use the Xwidget cores and additional functions.

This means that the code for a yahoo widget and an xwidget can be identical. This is a real win. Also, the code will work with a few tweaks as web widgets, so it make great sense to use Tony's stuff as little as possible for straight conversions. So basically I don't really want to know how to do things within the IDE, that is easy and in any case not applicable, if it needs to be done in code I just need to find out the method that works.

That is what my guide was about.

I have simply failed to change colours in code. It almost works. But not quite.


Top
 Profile  
 
PostPosted: 2017年 May 11日 01:09 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
The other thing is filters on dialog boxes, being able to add a filter.


Top
 Profile  
 
PostPosted: 2017年 May 11日 01:10 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
And capturing a key press at any time while the widget is running.

I have workarounds for all of these but I need to know what if any options exist.


Top
 Profile  
 
PostPosted: 2017年 May 11日 04:31 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4545
Quote:
I have simply failed to change colours of any object in code, when I managed to change a colour it was random!

For the colours I need more specific info because there are some js codes that I have used, so I need to know what exacty you want to do. For example if you want to change colour using text, roundline, progress bar..or whatever. If you want to add the possibility to change the colour with clickon or right click option then yes you need js. But for the rest or you can use the designer and the values there playing with the effects or you can create pngs with various colours and approach the design in a whole new way. But I as I said give me more "practical" details..
Quote:
The other thing is filters on dialog boxes, being able to add a filter.

Filter? You mean add effects-like on the dialog boxes? The designer itself offers some options to modify an image without external work. Even when I want something more special I use GIMP to modify it. Or I understood wrong and you mean something else..
Quote:
And capturing a key press at any time while the widget is running.

I used this feature for key press and mouse functions (maybe you find my examples not exactly you're looking for but I think that they will be useful)
http://jimking.deviantart.com/art/Weath ... -470517440
http://jimking.deviantart.com/art/Broke ... -452784862
http://jimking.deviantart.com/art/Raind ... -467534607
http://www.deviantart.com/art/I-pad-1-339438490 (by subhanulhaque, that captured all the keys)

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


Top
 Profile  
 
PostPosted: 2017年 May 11日 09:48 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
I assume that the keypress widgets use the isKeyDown in a timer. That is very inefficient. I am looking for something like widget.onKeyDown();


Last edited by yereverluvinuncleber on 2017年 May 11日 09:51, edited 1 time in total.

Top
 Profile  
 
PostPosted: 2017年 May 11日 09:50 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Quote:
The other thing is filters on dialog boxes, being able to add a filter.



No, I mean a dialog box filter. You open a file dialog box to select a file.

fileName = openFileDialog("");

You only want to open XML files so you apply an input filter of "*.xml" so the dialog box only lists xml files.


Last edited by yereverluvinuncleber on 2017年 May 11日 16:11, edited 1 time in total.

Top
 Profile  
 
PostPosted: 2017年 May 11日 09:52 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Quote:
if you want to change colour using text, roundline, progress bar!


Yes - those - all of them.


Top
 Profile  
 
PostPosted: 2017年 May 11日 10:19 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 556
Quote:


Nope, not useful. Especially not the last. That isn't capturing keypresses. It is simulating an on-screen keyboard so it is capturing mouse events not keyboard events.

We know the onkeyDown function works on edit boxes but it doesn't work on anything else, I want to capture any keypress in general for the whole widget not for one or two edit boxes.

Basic stuff to capture a keypress.


Top
 Profile  
 
PostPosted: 2017年 May 11日 10:38 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4545
Hmm.. I think that @meme and @digigamer can help you more at this point. They will know if this it's possible at the end or not..

_________________
Image
...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  [ 15 posts ] 

All times are UTC - 8 hours


Who is online

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