Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fujitsu Cobol 5 and Listview

Status
Not open for further replies.

druidx

Programmer
Mar 17, 2005
1
PT
Can I put diferent colors in rows in a listview.
Can anybody do this ?
 
Is this the listview that comes as part of "Mirosoft Windows Common Controls" or a control provided by Fujitsu?

If it's the standard one, I don't think I've seen this ability. You'll probably need to make your own OCX or purchase one on the net.

If it isn't, then take a good look atthe Fujitsu docs; maybe you're just missing a property?

.DaviD.
 
According to my Version 7 documentation, Listviews contain Listitem objects. Listitem objects do not contain a property for color so, I would read that as a NO to your question.
 
I have some tips to customize listviews via API.
Example: to select the ENTIRE row (not just the first column)put this code in the OPENED event of a FORM containing a ListView Control.

Code:
 WORKING-STORAGE SECTION.
 01 LV-SELVS     PIC S9(9) COMP-5 VALUE 4150.
 01 LV-FRS       PIC S9(9) COMP-5 VALUE 32.
 01 LV-LIN       PIC S9(9) COMP-5 VALUE 32.
 01 LV-HWND      PIC S9(9) COMP-5.
 PROCEDURE       DIVISION.
     MOVE "hwnd" OF CmListView1 TO LV-HWND
     CALL "SendMessageA" WITH STDCALL USING BY VALUE LV-HWND
                                            BY VALUE LV-SELVS
                                            BY VALUE LV-FRS
                                            BY VALUE LV-LIN.

Don't forget to include the ALPHAL(WORD) clause!!

Regards from Argentina!


Saludos!
Jose Holzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top