[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Similar function without script?

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 16th, 2024, 7:10 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: September 19th, 2014, 2:35 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
The XW for android doesn't support java script. So, any ideas about how we can have the same results about the appearing of the days of the weeks, but without script?

Here is an example:
viewtopic.php?f=11&t=5046

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


Top
 Profile  
 
PostPosted: September 20th, 2014, 12:02 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
we have talked about it before in here:


but maybe the things has get changed in newer version, so better to test them again


as a brief answer for this widget:

===============
1st method: using images (100% works)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. create blue color images for each day and name them as days
3. use one of the binding tags that match the naming of your images


Note:
if it doesn't hide the previous day when a day has passed, you should also create empty images for other days (so finally you will have 7 blue images and 42 empty images),
you can change the date to check if it works correctly when changing days


===============
2nd method: using text objects
(it will work only if substitute works on text objects in android)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. use text objects with blue color font for each day (7 text objects)
3. use one of the binding tags on text objects
4. use the substitute to change the text to the text you want (for each text object it should change text to make that day as it should be displayed and other days as empty)


Top
 Profile  
 
PostPosted: September 20th, 2014, 1:10 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Yes, maybe with the latest version works.. I hope!
I need to test. Thanks for the suggestions hamid. :)

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


Top
 Profile  
 
PostPosted: September 20th, 2014, 1:46 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
also as 3rd method: 7bg images
(works 100%)
1. create 7 bg images that for each of them one day is blue and others is white
2. use an image object
3. use one of the binding tags that match the naming of your images


i don't know which one is easier for you,
but i think filling white part of image with a color is easy


Top
 Profile  
 
PostPosted: September 20th, 2014, 1:54 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Wow too much options! I will begin from the 3rd method.. I'll report the results soon..

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


Top
 Profile  
 
PostPosted: September 20th, 2014, 2:16 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
want some more? :D
maybe a 4th method: using NumbImage Object

do you want to explain this as well?


Top
 Profile  
 
PostPosted: September 20th, 2014, 2:44 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Hit me! :lol:

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


Top
 Profile  
 
PostPosted: September 20th, 2014, 3:32 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i have never used Numb Image,
and i just found that it's not as simple as i think ;)


edit:
i found another way,
but not the way as i thought first,

using NumbImage Object,
this is similar to other methods,
but maybe a little harder, since you need to add the empty parts into image
so doesn't need to explain ;)
the only advantage would be:
it doesn't need 42 empty images as 1st method needs


Last edited by hamid on September 20th, 2014, 4:57 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: September 20th, 2014, 4:26 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887

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

All times are UTC - 8 hours


Who is online

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