XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
New Project https://www.bbs.xwidget.com/viewtopic.php?f=8&t=4247 |
Page 1 of 1 |
Author: | Jimking [ March 15th, 2014, 4:55 am ] |
Post subject: | New Project |
I found this clock app for Android and I would like to port it on pc.. ![]() I will try to use part of the script from this widget modifying some parts: http://jimking.deviantart.com/art/Insan ... -408628312 and http://jimking.deviantart.com/art/Linea ... -410650343 I already started with clean-up the image creating the main background. (maybe I will need some help... because in this case the digits remain "lighted". I hope not be a pain in the ass with my ideas! ![]() What do you think guys? ![]() |
Author: | digigamer [ March 16th, 2014, 8:19 pm ] |
Post subject: | Re: New Project |
I'll do the code... but I'll need a layout to work with. DO a widget with the bg, and texts aligned, I'll pick it up ![]() |
Author: | Jimking [ March 17th, 2014, 6:18 am ] |
Post subject: | Re: New Project |
digigamer wrote: I'll do the code... but I'll need a layout to work with. DO a widget with the bg, and texts aligned, I'll pick it up ![]() Hey thanks a lot man!!! ![]() When I'll finish the job I will post the test version here.. |
Author: | Jimking [ March 22nd, 2014, 10:42 am ] |
Post subject: | Re: New Project |
Here is the test version. It takes a bit because there are a lot of txts... ![]() I don't know what kind of the script will follow, so I made it with double layers for each components! ![]() If you don't want these extra layers, just delete them.. I know you're an expert, but I can suggest you to use part of the scripts from the widgets that I posted in the original post, to make the job "easier".. Thanks!!! |
Author: | digigamer [ March 29th, 2014, 1:06 am ] |
Post subject: | Re: New Project |
hmmm... sorry for being late. I'm taking this and trying my best to complete within sunday! |
Author: | Jimking [ March 29th, 2014, 4:08 am ] |
Post subject: | Re: New Project |
digigamer wrote: hmmm... sorry for being late. I'm taking this and trying my best to complete within sunday! Thanks man! ![]() |
Author: | digigamer [ March 30th, 2014, 5:22 am ] |
Post subject: | Re: New Project |
(Nearly) completed! https://www.dropbox.com/s/g6ithirucw8ch ... 0panel.zip Add weather images... left to save space |
Author: | Jimking [ March 30th, 2014, 5:43 am ] |
Post subject: | Re: New Project |
AWESOME script work!!! ![]() I saw that you replaced the arial font with the digital to match the whole design.. ![]() |
Author: | Jimking [ March 30th, 2014, 7:03 am ] |
Post subject: | Re: New Project |
Often (randomly) one of the sec digits doesn't light up.... It happens only to me...? ![]() ![]() |
Author: | digigamer [ March 30th, 2014, 9:01 am ] |
Post subject: | Re: New Project |
It also happens to me... sometimes, especially when the CPU is loaded. Possibly this is due to "Race conditions" and loss of sync between the data. Javascript execution can at times be slower than expected. Unfortuantely, there is no way for me to fix this ![]() Still, looks like the frequency of this glitch is dependent on CPU muscle. It just made many rounds without a single digit going unlit! Other users may or may not face this issue depending upon their system. 1 possible solution is to convert the texts into images, that would remove render overheads. But since I can't say about the internals of XWidget, may be Tony can provide a better way. Since javascript has no knowledge of multi-threading, it doesn't provide any means to declare an atomic/volatile/syncronized construct to handle this. So, unfortunately this won't fix. |
Author: | Jimking [ March 30th, 2014, 9:13 am ] |
Post subject: | Re: New Project |
I see mate! I was curious. But never mind I can live with this.. Is not depends from us, so... ![]() THANKS AGAIN |
Author: | hamid [ March 31st, 2014, 3:38 pm ] |
Post subject: | Re: New Project |
i think this happens because the function will execute late and when it execute the tag is filled with new data, so it will miss to get and show old data. and it will happen for seconds and also for minutes. since we know what is the problem and when it happens, we could fix the problem (i mean prevent it from happening visually). i edited your code to prevent it from happening: Attachment: =============== to test it out: 1. if you launch it in XWidget> suspend the xwidget.exe process and after some seconds resume it. 2. if you launch it in Designer> suspend the xwtest.exe process and after some seconds resume it. =============== Changes: -Changed: Object name of s0 to s60 and m0 to m60 for easier scripting -fixed: when the process hang or suspend for some time, clock miss to show those seconds and minutes =============== |
Author: | Jimking [ March 31st, 2014, 4:07 pm ] |
Post subject: | Re: New Project |
1000 thanks hamid! Yes, I tested and seems that now works properly!!! ![]() ![]() |
Author: | digigamer [ April 6th, 2014, 9:44 pm ] |
Post subject: | Re: New Project |
Ingenious... You always light the image before each second!! Never thought this... |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |