First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3559941
By: nobody
Hi
First, the framework is amazing ! Great work ! I use it without the tags, coding directly against the api like I used to do with swing, simpel, easy and, off course, rich !
I am still learning, so maybe someone can help me with the following:
I use toolbarbuttons with only an image, no label and wrote a eventlistener for the onClick event:
it didn't work, after some code changing and puffing, I tryed to use a button, then everyting just worked fine (I mean the eventlistener), so I tryed again the toolbarbutton and used a label with it:
clicking on the label works, on the image not:
Question: is this the normal behavior of the toolbarbutton (becose it renders itself with a <a> tag (=label) with an <img> tag, or could it be a bug ?
Allready thanks and keep on doing the good work !!
Eduard
Brussels, Belgium
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3562062
By: henrichen
Hi,
It should work both on label and image on our spec.
Can you give an example code so we can test it and understand the situation in detail. Thanks.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3562382
By: nobody
Hi, the method I use:
too make the toolbarbutton/button
public static Hbox makeToolbar(Window window){
hbox = new Hbox();
hbox.setStyle("background-color: #000000;border: none;");
button = new Toolbarbutton(); (or new Button() = works)
button.setId("button");
button.addEventListener("onClick", new Toolbarlistener(window));
button.setImage("res/folder.gif");
button.setLabel(null);
button.setStyle("background-color: #000000;border: none;");
//
hbox.appendChild(album);
//
return hbox;
}
the listener:
public class Toolbarlistener implements EventListener {
Window window;
public Toolbarlistener(Window window){
this.window = window;
}
public void onEvent(Event e) {
if (e.getTarget().getId().equalsIgnoreCase("button")){
window.thumbs.setVisible(false);
window.view.setVisible(true);
}
//
}
public boolean isAsap() {
return false;
}
}
thankx
eduard
Brussels, Belgium
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3564077
By: henrichen
Hi!,
It looks like a bug in toolbarbutton. Can you file this bug into bug list so we can track it?
In the meantime, please use the <button/> or <toolbarbutton/> with label only as a workaround.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3564436
By: nobody
okAc, it's done
(hopefully the wright way, let me know if I should do it differently)
eduard
Brussels, Belgium
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3564445
By: henrichen
Yes, it is in the bug list.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3682729
By: nobody
I would like to put the label of a toolbarbutton invisible and visible when the mouse pass over. Is it possible? How can I do this?
thanks,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3683041
By: henrichen
It is a mouse rollover effect that would be inefficient to pass that event back to server. A reasonable way to do it is by CSA (Client Side Action) but you have to write the javascript.
/henri
Asked: 2006-02-06 11:07:09 +0800
Seen: 597 times
Last updated: Apr 12 '06