I have found the solution!
If someone is interest with?
In the file gui/label.js, in the method Label.prototype.setText()
replace: 
textFull = '<table '+width+'cellpadding='.....
with:
textFull = '<table onSelectStart="list.select('+this+')" '+width+' cellpadding='.....

the only problem is that all the text in the listItem is selected.
I don't know how to solve it!

Pierre

PS:It's better to override the method prototype.setText() in the listItem class

              __
             /  \     ,    ,
   _._     _ |oo| _  / \__/ \
  _||||   ((/ () \))   /  \
  |||||/|  ( ==== )    |oo|    
   \____/  _`\  /'_    /  \
   /   /.-' /\<>/\ `\.( () )_._      
   |    `  /  \/  \  /`'--'////)    
    \__,-'`|  |.  |\/ |/\/\|"\"` 
           |  |.  | \___/\___/   
           |  |.  |   |    | 
--------------------------------------

Pierre BESNARD
[EMAIL PROTECTED]
Odaxys 
Centre d'Affaires << Espace Performance>>
bât B1
35769 SAINT GREGOIRE


-----Message d'origine-----
De : ToddNY [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 11 juillet 2002 16:09
À : Pierre BESNARD
Cc : [EMAIL PROTECTED]
Objet : Re: [Dynapi-Help] Force focus on a listItem


That may be possible, using an 'onfocus' event for the ListItem's pattern.
Supposedly 'onfocus' is available for text elements as well as form
elements.
In the onfocus handler use the list's select(item) method.
Perhaps I'll try it when I have time...
This is fun wish I could make a living off it.
Todd.

----- Original Message -----
From: "Pierre BESNARD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 9:37 AM
Subject: [Dynapi-Help] Force focus on a listItem


hello,
In context of a dynapi List.
When the user makes a search (with Ctrl+F), if the searched patern is in a
ListItem,
Do you think it is possible to make that item selected.

Hope I'll be understand,
thanks in advance,

Pierre

              __
             /  \     ,    ,
   _._     _ |oo| _  / \__/ \
  _||||   ((/ () \))   /  \
  |||||/|  ( ==== )    |oo|
   \____/  _`\  /'_    /  \
   /   /.-' /\<>/\ `\.( () )_._
   |    `  /  \/  \  /`'--'////)
    \__,-'`|  |.  |\/ |/\/\|"\"`
           |  |.  | \___/\___/
           |  |.  |   |    |
--------------------------------------

Pierre BESNARD
[EMAIL PROTECTED]
Odaxys
Centre d'Affaires << Espace Performance>>
bât B1
35769 SAINT GREGOIRE



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help




-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to