Page 1 of 1
Posted: Mon Mar 18, 2002 11:54 am
by BackupUser
Restored from previous forum. Originally posted by Manolo.
Hi,
How I can capture one selected line into of ListIconGadget?
Thanks
Manolo
Posted: Tue Mar 19, 2002 5:55 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.
That would be very nice, yep! Any tips and tricks? I'm also intrested in it.
Mike
Tranquilizer/ Secretly!
Registred PureBasic User
Posted: Tue Mar 19, 2002 6:00 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
Here is a little procedure:
Code: Select all
Procedure.s GetListIconGadgetText(*List, Index, Column)
Element.LV_ITEM2\mask = #LVIF_TEXT
Element\iItem = Index
Element\iSubItem = Column
Element\pszText = AllocateMemory(0, 1000, 0)
Element\cchTextMax = 1000
SendMessage_(*List, #LVM_GETITEM, 0, @Element)
Result$ = PeekS(UseMemory(0))
FreeMemory(0)
ProcedureReturn Result$
EndProcedure
Just get the listicon pointer with and pass it to this procedure..
*List = ListIconGadget()...
Fred - AlphaSND
Posted: Tue Mar 19, 2002 9:33 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.
You might want to check out FangBeasts iCat program (located on the PB Resources Site). He makes good use of this routine.