× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a stupid answer, but its the answer I use. You can get appealing results by changing the name of your "OK" button and calling it "Cancel".

The other solution that I can think of would be to use a subfile for the 3 elements and use a SFLSNGCHC or SFLMLTCHC keywords. (This is an appealing choice in some situations.) Look at the second image. It shows the SFLSNGCHG keyword. http://tinyurl.com/8v4q8


Charles St-Laurent wrote:
Hi!

I designed a window with a single choice list of 3 elements, and a button
"OK" at the bottom of the window. If the user clicks on an element of my
single choice list, everithing works fine. But if he positions the cursor on
an element of the list and then push the OK button, my program does not
receive any selection. I also tried to use the CHCCTL to get the selection
but it does not work if the user hightlights an element of my list and then
push the OK button...

Any suggestion to get the item that is highlighted when the user push the OK
button?

Here's a short piece of my display file code:

A            F12            2Y 0B  6  8SNGCHCFLD(*RSTCSR *AUTOSLT *NOSLTIN-
A                                      D *AUTOENT)
A                                      CHOICE(1 'Choice 1')
A                                      CHOICE(2 'Choice 2')
A                                      CHOICE(3 'Choice 3')
A                                      CHCCTL(1 &FLD03)
A                                      CHCCTL(2 &FLD04)
A                                      CHCCTL(3 &FLD10)
A            F13            2Y 0B 10 32PSHBTNFLD
A                                      PSHBTNCHC(1 'OK' ENTER)
A            FLD03          1Y 0H
A            FLD04          1Y 0H
A            FLD10          1Y 0H

Charles St-Laurent




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.