× 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.



Wow, this is neat.  Now we can select & unselect one item, or many items,
all with mouse clicks, and all done easily.

1) I tried your code and things seemed to work nicely here.  Your subfile
starts on line 6.  Is it possible that something in lines 1 thru 5 are
causing troubles?  I saw no turquoise at all.

2) I didn't try changing colors beyond the defaults provided for the various
values in the SFLCHCCTL field.  I did notice the following in the manual:
The CHCAVAIL, CHCSLT, and CHCUNAVAIL keywords can be used to indicate the
color of the items within the selection list, when the list is displayed on
a color display station. The CHCAVAIL keyword indicates the color of the
items within the list which are available for selection. The CHCSLT keyword
indicates the color of the selected items. The CHCUNAVAIL keyword indicates
the items on the list which are not available for selection. These keywords
can be used in a subfile control record only if SFLSNGCHC or SFLMLTCHC
keywords are also used."

3) because of the way that the field changes color when its selected, I'd
suspect adding more than one visible field to a subfile might be confusing.
 As easy as it is to
concatenate fields with EVAL now though, is this really a problem?

-) You are limiting the subfile to 50 records.  Adding *SCRBAR and making
the window 1 column wider made it a lot easier to scroll the records and to
set the top easily.  "SFLCSRRRN(&RRN1)" became irrelevant.

---------------------------------------------------------
Booth Martin http://www.MartinVT.com
Booth@MartinVT.com
---------------------------------------------------------

-------Original Message-------

From: midrange-l@midrange.com
Date: Saturday, December 28, 2002 21:11:43
To: midrange-l@midrange.com
Subject: Using SFLCHCCTL in DDS

This is the first time I'm using the SFLCHCCTL keyword and I have some
questions.

Given this DDS snippet:

A R WINDOW1 SFL
A*
A CTLFLD 1Y 0H SFLCHCCTL
A CUSTID R H REFFLD(CUSTID CUSTP)
A FULLNM 40 O 6 2
A*
A R SF1CTL SFLCTL(WINDOW1)
A*
A SFLDSP
A N31 SFLDSPCTL
A 31 SFLCLR
A N31 SFLEND(*MORE)
A SFLSIZ(0050)
A SFLPAG(0007)
A WINDOW(*DFT 14 44 *NOMSGLIN)
A WDWBORDER((*COLOR PNK))
A WDWTITLE((*TEXT 'Name
Selection') (-
A *COLOR WHT))
A WDWTITLE((*TEXT 'F12=Cancel')
(*COL-
A OR BLU) *BOTTOM)
A SFLSNGCHC(*RSTCSR)
A SFLCSRRRN(&RRN1)
A RRN1 5S 0H

1) Is there a way to change the background color? On my system it shows
as turquoise. This makes it difficult to read.

2) Is there a way to change the text color or attributes? Putting
COLOR(WHT) and DSPATR(HI) changes the attributes in SDA, but does not seem
to work when the program displays the DSPF.

3) Is there a way to add (non-hidden) fields to the WINDOW1 (SFL)
format? SFLCHCCTL seems to allow only one.

TIA.

-mark



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.