[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/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 - Zoom in/out With Mouse Wheel?

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 19th, 2024, 1:16 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: January 21st, 2015, 11:46 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hey-all, just got some cool ideas for a theme,but need to know if they r doable, so here is the thing:
Is there way to Zoom in/out using mouse wheel? Same with Opacity?

Thanks!

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: January 21st, 2015, 3:36 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Do you mean zoom an object like a button or image, or zoom the whole widget ?


Top
 Profile  
 
PostPosted: January 21st, 2015, 5:50 pm 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hi meme, i mean the whole widget

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: January 21st, 2015, 8:17 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Probably not what you are after but you can zoom a layer from mouse wheel with

function layer1OnMouseWheelUp(Sender)
{
var LX = layer1.Scale.X;
var LY = layer1.Scale.Y;
LX = LX + .1;
LY = LY + .1;
layer1.ScaleTo(LX,LY);
}

function layer1OnMouseWheelDown(Sender)
{
var LX = layer1.Scale.X;
var LY = layer1.Scale.Y;
LX = LX - .1;
LY = LY - .1;
layer1.ScaleTo(LX,LY);
}


Top
 Profile  
 
PostPosted: January 22nd, 2015, 5:47 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Daang, so there isn't a way to zoomIn/Out a widget with the mouse wheel?

I was thinking on doing something like this, using a combination of Zoom and Opacity to create the "behind" effect

Untitled-2.jpg
Untitled-2.jpg [ 484.81 KiB | Viewed 2649 times ]

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: January 23rd, 2015, 1:12 am 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
If the widget has a full background layer the zoom script will zoom everything on the layer down to nothing and up to the actual size of the layer. Maybe worth a try.
The below script will let you adjust the opacity of the layer and all that is on the layer.

function button1OnMouseWheelUp(Sender)
{
var LO = layer1.Opacity;
LO = LO + .1;
layer1.Opacity = LO;
}

function button1OnMouseWheelDown(Sender)
{
var LO = layer1.Opacity;
LO = LO - .1;
layer1.Opacity = LO;
}


Top
 Profile  
 
PostPosted: January 23rd, 2015, 8:17 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Good idea, worth experimenting with, ill post the result for those interested, thanks meme!

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: January 23rd, 2015, 9:38 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Looking good!
2015-01-23_142930.png
2015-01-23_142930.png [ 46.55 KiB | Viewed 2605 times ]

is there a way to add progressive blur to the "Zoom" layer? that way the effect will be complete :D

Default.png
Default.png [ 9.03 KiB | Viewed 2605 times ]

Nav_Quick_Notes_v1.xwp [28.49 KiB]
Downloaded 216 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: January 25th, 2015, 8:39 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Done!


//=================== Zoom , Opacity & Blur




function setFrontLayer(Sender)
{
ZoomLayer.ScaleTo(1,1);
ZoomLayer.Opacity = 1;
ZoomLayer.Effect.Blur.Softness = 0;


SaveAsDefIni()
ZoomLayer.update;

}

function setBackLayer(Sender)
{
ZoomLayer.ScaleTo(0.7,0.7);
ZoomLayer.Opacity = 0.7;
ZoomLayer.Effect.Blur.Softness = 0.07;


SaveAsDefIni()
ZoomLayer.update;

}

function SetFarBackLayer(Sender)
{
ZoomLayer.ScaleTo(0.5,0.5);
ZoomLayer.Opacity = 0.5;
ZoomLayer.Effect.Blur.Softness = 0.17;


SaveAsDefIni()
ZoomLayer.update;

}
// ================ Zoom End


aivi_notes_v1.xwp [28.99 KiB]
Downloaded 201 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


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 72 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