-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3568359
By: n8dawgrr
Hi All,
If I can start by saying ZK rocks!. I've been looking for exactly this solution for ages. The ZK approach is definately the right way forward. Build your gui with XML. I'm interested in increasing the richness of some of the components, for instance: the slider. It would be nice to have a text entry box to enter in the value by hand. You could also see the current value of the slider as you move the slider. I've tried a few apporaches, eg using the onSlide(), but no joy so far. This would have to be done client side of course, a server round trip would kill the performance. Can this be done with the existing framework.
Sorry if the question is dumb. I'm new to ZK.
Regards,
Nathan
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3568473
By: tomyeh
Hi Nathan,
Glad to know that you like ZK.
To implement the feature you mentioned, you have to listen the onScroll (or
onScrolling) event at the server side. It indeed causes a round-trip.
To have a pure client solution, you have to extend the slider component. It is welcome. Unfortunately, there is no much document yet. Besides reading http://zk1.sourceforge.net/smalltalks/fckez/fckez.html , please read the source codes (sld.js in zul).
Hope our resouces are available sooner to have the component development guide ready.
--
tom / zk
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736309
By: gladiator
what does pageIncrement for slider do? according to the doc:
setPageIncrement(int pginc)
Sets the amount that the value of getCurpos() changes by when the tray of the scroll bar is clicked.
but the slider doesn't change its position at all when I click on it. and when I move the knot, the position doesn't increment by pginc either. So I am not sure what setPageIncrement does.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736316
By: gladiator
also it is possible to orient the slider vertically?
thanks!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736329
By: henrichen
That pageIncrement property is for future use. It is not implemented yet. :)
The intented function is exactly what the doc said. "click on the tray to change the curpos of the slider".
If you need this, please post to Feature Request, so we can track it.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736332
By: henrichen
"also it is possible to orient the slider vertically? "
Please post to Feature-Request, so we can track it.
/henri
Asked: 2006-02-09 23:47:50 +0800
Seen: 579 times
Last updated: May 17 '06