I understand the docs to say a value from a SPIN control can be selected by using a FROM string like: ‘Fall|#1|Spring|#2|Summer|#3’
However, in my testing, I am unable to find any code that will get those values into a variable.
My first assumption was something like USE(MyValue,?SPIN) would work. I also tried various code using CHOICE or PROP:Selected. So far nothing. Anyone know what I am missing?
From:
“ You may also wish to provide the user with strings formatted as Spin Box choices when the choices are a natural progression such as the days of the week or the months of the year. Specify a QUEUE in the From field. This and Range are mutually exclusive”
So it needs a queue not the drop down format for a list of values.
Thank you. Do you know if the fix included another previously discussed SPIN bug whereby the SPIN control remains highlighted even though focus has moved to a LIST (ie the list becomes scrollable)?
I don’t know about such issue. The SPIN and COMBO control kinds are derived from ENTRY. That is why there was the problem with alternative values - the code was implemented for LISTs. Though sources of values are common for LISTs, SPINs and COMBOs, ENTRY and its derived have quite specific communication between displayed text and actual value in its USE variable.
Regarding focus, the code for SPINs just sets focus to the control if Up or Down buttons are clicked. All the other focus handling is in the code for ENTRYs. If there are no problems with highlighting of the text in ENTRYs, I do not expect them for SPINs. If there is an example demonstrating some issue, please send it to me.
NB: the ACCEPT loop in the test program forces passing the focus from SPIN to LIST after single click to either of SPIN’s buttons. The SPIN must lose highlighting without explicit clicking to LIST.