Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setwintext
#1
maybe simple ...
found this example its useful for me but.....


Function Function2
Code:
Copy      Help
str s
int hlv=id(1 "Program Manager")
int i n=SendMessage(hlv LVM_GETITEMCOUNT 0 0)
for i 0 n
,GetListViewItemText(hlv i &s)
,out s

how to set the intems to my dialog? like

Function Function2
Code:
Copy      Help
str s
int hlv=id(1 "Program Manager")
int i n=SendMessage(hlv LVM_GETITEMCOUNT 0 0)
for i 0 n
,GetListViewItemText(hlv i &s)
,s.setwintext(id(3 win("Desktop" "#32770")))

but this shows only the last item Sad

maybe simple but not for a newbie

best regards
#2
Easiest would be to use a listbox control. Add items with LB_Add.

Or use menu, like this:
Menu menu Desktop
Code:
Copy      Help
;/expandfolders
. "$0$"
#3
Menu Menu2
Code:
Copy      Help
;/expandfolders
. "$0$"

thats great ! thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)