spinbox entry bindings

From: Chris vK (cvonkoss_at_yahoo.com.au)
Date: 02/01/05


Date: 1 Feb 2005 04:07:16 -0800


--My spinbox seems out of sync with my entry box ??
--I need to <ButtonRelease-1> twice to get the entry box to change
values, but then appears out of sync.

--I have an array of satellites and their longitude, in satlong.

array set satlong {\
sat1 long1 \
sat2 long2 \
}

--I get a list of satellite names from this array ...

foreach {sat long} [array get satlong] {
    lappend satlist $sat
}

--I then use the list of sat names for values of my spinbox...

spinbox .sat -values $satlist -font {-size 12} -wrap 1 -state readonly
-textvariable sat

--Then, I try to bind the spinbox selected value to an entry box
textvariable...

bind .sat <ButtonRelease-1> { set satellitelong $satlong($sat) }

--Entry box where users can manualy enter values, into textvariable
satellitelong...

entry .satlong -font {-size 12} -width 10 -validate key \
-vcmd {expr {[string is double %P] && [string length %P]<7}} \
-textvariable satellitelong

--I also bind the entry box to another proc, wich works fine...

bind .satlong <Return> { calculate }

--
--Can anyone suggest how I need to bind the spinbox to the entry box
so that it will be in sync ??
--Bind actions, <Leave> and <Motion> both work, but not when you click
the spinbox up / down arrow buttons ??
--


Relevant Pages

  • Re: test- please ignoe
    ... SYNC has to do with when a job completes execution, ... >> when the entry is deleted from the queue by whatever means. ... > Note that this works with the new queue manager but not with the old ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • The TCP/IP Protocol Must Be Installed on this Computer Error Message (WinXP install)
    ... My MD is getting this message under WinXP Pro when trying to install Active ... Sync 3.6. ... Microsoft support knowledgebase only shows one entry for this and that ...
    (microsoft.public.pocketpc.activesync)
  • Re: test- please ignoe
    ... The first SYNC waits until entry 45 completes. ... you know that all 4 entries are done. ... Note that this works with the new queue manager but not with the old ...
    (comp.os.vms)
  • event viewer & time sync - BILL JAMES
    ... changed the time and did a sync ... > have a new entry in the Event Viewer showing failure. ...
    (microsoft.public.windowsxp.general)