0

Textbox focus - Here is my solution

asked 2006-03-20 21:56:01 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641091

By: jim_bo_lisa

This is a small thing, but useful for the users.
I just added a callback for the Tab containing the Textbox, then simply set its focus.

<tabbox width="100%" onSelect="setSearchFocus();"> .
.
.


<zscript>
void setSearchFocus() {
Component component
= Path.getComponent("//SigQuery/_sigQueryWin/_topicWin/_quickSearchWin");
Textbox textBox = (Textbox) component.getFellow("_quickSearchText");
textBox.focus();
}

</zscript>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-03-21 01:27:11 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641344

By: tomyeh

Jim,

Please add it to
http://en.wikibooks.org/wiki/ZK/How-Tos

You need figure out a good title for it :)

Thanks.

link publish delete flag offensive edit

answered 2006-03-21 01:49:16 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3641356

By: tomyeh

Jim,

In this sample codes, there are many included files.

You could either expand it directly into the code, or zip them into a file.

To post a zipped file, you could open a bug and attach it there.


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: 2006-03-20 21:56:01 +0800

Seen: 520 times

Last updated: Mar 21 '06

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