XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 2nd, 2025, 6:21 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: April 30th, 2017, 9:19 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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: May 2nd, 2017, 3:05 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Very useful. Thank you :)
(DA has millions of users. Do not expect the same response here from less than 3000 members..)

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


Top
 Profile  
 
PostPosted: May 5th, 2017, 10:44 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Thanks for responding.

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


Top
 Profile  
 
PostPosted: May 5th, 2017, 10:55 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I think that it will be better if I move this topic here:

Widget Develop Documents:
viewforum.php?f=10

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


Top
 Profile  
 
PostPosted: May 9th, 2017, 4:54 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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: May 9th, 2017, 10:41 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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..

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


Top
 Profile  
 
PostPosted: May 11th, 2017, 12:56 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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: May 11th, 2017, 1:09 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
The other thing is filters on dialog boxes, being able to add a filter.


Top
 Profile  
 
PostPosted: May 11th, 2017, 1:10 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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: May 11th, 2017, 4:31 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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)

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


Top
 Profile  
 
PostPosted: May 11th, 2017, 9:48 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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 May 11th, 2017, 9:51 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: May 11th, 2017, 9:50 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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 May 11th, 2017, 4:11 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: May 11th, 2017, 9:52 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Quote:
if you want to change colour using text, roundline, progress bar!


Yes - those - all of them.


Top
 Profile  
 
PostPosted: May 11th, 2017, 10:19 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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: May 11th, 2017, 10:38 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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..

_________________
...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 37 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:  
cron

Powered by phpBB® Forum Software © phpBB Group