TListView problem

Post Reply
dionie
Posts: 6
Joined: Wed Dec 21, 2005 5:16 pm

TListView problem

Post by dionie »

I have tried the following:

Code: Select all

#include "fivewin.ch"

function main()
	oWnd := TWindow():New()
	oView := TListView():New( 10, 10, {"abc","def"},, oWnd,,,, .t.,, 30, 40, "cMsg" )
	oWnd:Activate()
return ( nil )
But somehow, can not see anything for the list view. Can anybody point out to me what I am doing wrong here.


TIA

Dionie
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Dionie,

We have improved Class TListView, so this code is properly working now:

Code: Select all

#include "FiveWin.ch" 

function Main() 
 
   local oWnd, oLvw, nOption := 1, oImageList

   DEFINE WINDOW oWnd TITLE "ListView Test"

   DEFINE IMAGELIST oImageList SIZE 32, 32

   oImageList:AddIcon( "console" )
   oImageList:AddIcon( "form" )
   oImageList:AddIcon( "library" )

   @ 1, 1 LISTVIEW oLvw SIZE 300, 300 PROMPTS "One", "Two", "Three" ;
      ACTION MsgInfo( nOption )

   oLvw:SetImageList( oImageList )

   ACTIVATE WINDOW oWnd
   
   oImageList:End()

return nil
We will publish these new changes in January 2006 FWH build.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply