|
You can also use the RGB method. For Example. * If color then YELLOW else WHITE C If Color C Eval %Setatr('Win01':'Sub01':'RowBgMix') = C '255:255:128' C Eval Color = FALSE C Else C Eval %Setatr('Win01':'Sub01':'RowBgMix') = C '255:255:255' C Eval Color = TRUE C Endif If you go into the GUI Designer under Subfile parts Properties, under Color , The change color button will bring up a color pallet. This will give you an idea of the mix of Red, Green and Blue. >>> Penny_Lancor.OGIDM@oakdene.com 02/27/02 02:45PM >>> To find all attributes for a given part, use Help | Parts Reference. In a subfile, you can change the background color and/or a foreground color. The attributes are BackColor and ForeColor respectively. Example from the help for changing the background color: *...1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq---- * C EVAL color = %getatr('win01': 'EF1': 'BackColor') * C color IFEQ *Red C EVAL %setatr('win01': 'EF1': 'BackColor') = *Blue C ENDIF * Regards, Penny Lancor Technical Services Chris Proctor <cproctor@gartspor To: "CODE400-L (E-mail)" <CODE400-L@midrange.com> ts.com> cc: Sent by: Subject: VARPG - How can I change the color of a row in a subfile code400-l-admin@MI based on conditioning? DRANGE.COM 02/27/02 12:55 PM Please respond to code400-l This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. -- [ Picked text/plain from multipart/alternative ] Hi all, I thought since we agreed that it's ok to post VARPG questions here.....I'd be the first! ;-) I have a subfile in my application that I want to change the color of a row IF two quantities are equal. How would I do this? I'm sure it's a %setatr() function, but I don't know what to set. Does someone know where I might find information on all the possible attributes for different part types? Thanks, Chris Proctor Manager of Systems Integration Gart Sports 1050 Hampden Ave. Englewood, CO 80110 Phone (303) 863-2280 Fax (303) 863-2263 mailto: cproctor@gartsports.com _______________________________________________ This is the CODE/400 Discussion & Support (CODE400-L) mailing list To post a message email: CODE400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l or email: CODE400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/code400-l. _______________________________________________ This is the CODE/400 Discussion & Support (CODE400-L) mailing list To post a message email: CODE400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l or email: CODE400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/code400-l.
As an Amazon Associate we earn from qualifying purchases.
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.