0

Custom events problem?

asked 2009-09-29 02:51:55 +0800

cryandaguo gravatar image cryandaguo
72 2

updated 2009-09-29 02:53:13 +0800

I got a problem need answers. How can I prevent the default ZK event?
<panel height="150px" title="Google Tools" border="normal" maximizable="true" style="margin-bottom:10px"
onMaximize='alert("testAlert");'>
<panelchildren>
<iframe width="100%" height="100%" src="http://www.google.com"/>
</panelchildren>
</panel>
in the codes upon, you see I defined a custom event(onMaximize='alert("testAlert");'), but when my custom event occurs, zk default event occurs also(here maximize event), is there any way to stop the zk default event(here I want just alert no maximize, is it posible)?

or, maybe I can add another icon here like the maximize icon to do my custom event. then is there any way to add a icon(button, link or something else) like the zk default icon with my custom event? or can I change the icons those zk default made with my own evnt?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-10-03 14:55:41 +0800

cryandaguo gravatar image cryandaguo
72 2

Is there anyone can answer my this question?
is there any way to change the default zk event(change not add anther event)?
is there any way to add my custom event to a existed zk component, as to add my own custom onMaximize event in my own icon besides the default maximize icon?
are these possible? if there are some idea just help me please!!

link publish delete flag offensive edit

answered 2009-10-09 03:33:24 +0800

cryandaguo gravatar image cryandaguo
72 2

updated 2009-10-09 03:33:39 +0800

So I think it is no possible to change the default events those already bind in the zk components.
If I want a component with my own event I should write my own one, even though there is only little changes on zk default one, right?

link publish delete flag offensive edit

answered 2009-10-13 03:30:13 +0800

iantsai gravatar image iantsai
2755 1

Why not use a button inside Window's Caption?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-29 02:51:55 +0800

Seen: 541 times

Last updated: Oct 13 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More