Old 31st March 2007, 10:39   #1
r4dius
Junior Member
 
r4dius's Avatar
 
Join Date: Mar 2002
Posts: 47
How to detect when mouse is over a layout or group ?

Hi,
I would want to detect when the mouse is over the player or not but it looks like onEnterArea / onLeaveArea are not working for layouts nor groups :/

I'm currently using this code
PHP Code:
isovershade.onTimer() {
    
int x mainbackgroundalphashade.getMousePosX();
    
int y mainbackgroundalphashade.getMousePosY();

    if(
&& <= MainShadeGrp.getWidth() && && <= MainShadeGrp.getHeight()) {
        if(
ov == 0){
            
ov 1;
            
animateresizew(textoverlayshadetextoverlayshadextextoverlayshadew);
        }
    } else if(
ov == 1) {
        
ov 0;
          
animateresizew(textoverlayshade8, -16);
    }    

mainbackgroundalphashade is the group with the background image, it's all the width and height so I can calculte when the mouse is in this area, if someone has a better alternative (without timer it would be great)
Thanks

Last edited by r4dius; 31st March 2007 at 11:25.
r4dius is offline   Reply With Quote
Old 31st March 2007, 15:32   #2
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
your best bet is to create a small skin and use onEnterArea / onLeaveArea for a layout and group to prove theyr not working, so they can be fixed in a future build

avoid the timer if you can imo
SLoB is offline   Reply With Quote
Old 2nd April 2007, 01:17   #3
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 350
onEnterArea and onLeaveArea work for GUIObjects and classes derived from there.
TheElusiveMelon is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump