beforeHoverEffect on Group

Post bugs here!

beforeHoverEffect on Group

Postby joedarock » Thu May 26, 2016 11:46 am

The beforeHoverEffect event doesn't appear to fire for a Group control. It does work on other elements.

Advice?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby support » Fri May 27, 2016 2:37 am

This is because the Group control does not have hover effection.
If you want make it, you can give it hover event handler:

   
Class('App', 'xui.Com',{
Instance:{
iniComponents : function(){
// [[Code created by CrossUI RAD Studio
var host=this, children=[], append=function(child){children.push(child.get(0));};

append(
xui.create("xui.UI.Group")
.setHost(host,"xui_ui_group1")
.setLeft(180)
.setTop(30)
.setWidth(100)
.setHeight(100)
.setCaption("xui_ui_group1")
.setToggleBtn(false)
.onRender("_xui_ui_group1_onrender")
.beforeHoverEffect("_xui_ui_group1_beforehovereffect")
);

return children;
// ]]Code created by CrossUI RAD Studio
},
_xui_ui_group1_beforehovereffect:function (profile, item, e, src, type){
console.log(type);
},
_xui_ui_group1_onrender:function (profile){
profile.getRoot().onMouseover(function(){}).onMouseout(function(){});
}
}
});
   
support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Re: beforeHoverEffect on Group

Postby joedarock » Fri May 27, 2016 10:56 am

Thanks. I will try this and report.
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby joedarock » Fri May 27, 2016 11:43 am

OK, I tried this.

The onRender event fires properly every time the group is loaded/reloaded. The beforehovereffect event still doesn't fire.

BTW, tooltips don't work on this control either.
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby joedarock » Wed Jun 01, 2016 3:33 pm

Is there anymore you can add to why the mousehover and tooltips don't work on this control?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby support » Thu Jun 02, 2016 4:52 am

support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Re: beforeHoverEffect on Group

Postby joedarock » Thu Jun 02, 2016 10:56 am

There are a bunch of files there. Do I need all of them? Where should I put them or, in other words, how do I do the update?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby support » Fri Jun 03, 2016 4:38 am

We will lauch 1.4 before July.

Or, you can try this way:

   
Class('App', 'xui.Com',{
Instance:{
iniComponents : function(){
// [[Code created by CrossUI RAD Studio
var host=this, children=[], append=function(child){children.push(child.get(0));};

append(
(new xui.UI.Group())
.setHost(host,"ctl_group1")
.setLeft(270)
.setTop(60)
.setWidth(290)
.setHeight(100)
.setCaption("ctl_group1")
.setToggleBtn(false)
.beforeHoverEffect("_ctl_group1_beforehovereffect")
);

return children;
// ]]Code created by CrossUI RAD Studio
},
events:{
"onReady" : "_com_onready"
},
_com_onready:function (com, threadid){
// You have to run this before the control was renderered
xui.UI.Group.setBehavior({HoverEffected:{"KEY":"KEY"}});
},
_ctl_group1_beforehovereffect:function (profile, item, e, src, type){
xui.message(type);
}
}
});
   
support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Re: beforeHoverEffect on Group

Postby joedarock » Wed Jun 29, 2016 11:59 am

Did you launch 1.4 yet?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: beforeHoverEffect on Group

Postby support » Tue Jul 05, 2016 4:46 am

support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am

Next

Return to Bug Report

Who is online

Users browsing this forum: No registered users and 0 guests

cron