TListView problem

TListView problem

Postby dionie » Wed Dec 21, 2005 5:21 pm

I have tried the following:

Code: Select all  Expand view
#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
dionie
 
Posts: 6
Joined: Wed Dec 21, 2005 5:16 pm

Postby Antonio Linares » Tue Jan 03, 2006 7:18 am

Dionie,

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

Code: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests