Greetings,

I have a list box that I have a mouse click event binding on that lags behind,
giving the previous selected itme from the list box to the cascad information to
another list box.  Hence you have to double click to get it to function
correct.  Below is a snippet of code I am using:

# clear out stuff from tick listbox 
$widget(trackTick) delete 0 end
#get the client selected
set client [$widget(trackClient) get active]
# Find all the tickect for a given client
mk::file open db tracker.dat
set x [mk::select db.account -exact client $client] 
# Put the found tickets in the list
foreach y [mk::select db.account!$x.ticket ] {
            $widget(trackTick) insert end "$client Invoice [mk::get 
db.account!$x.ticket!$y invoice amount]" 
            }
 
mk::file close db

FYI: I am using metakit to manage the data (VERY NICE!!):

http://www.equi4.com/metakit/



Thoughts welcome on my prob!

    
--
RJ Ent. -- http://www.rjent.pair.com 
Had Enough GPF's from M$? 
Try something stable:  http://www.freebsd.org or http://www.redhat.com
Strong Supporter of Visual Tcl -- http://www.neuron.com/stewart/vtcl/

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to