For learning API.
I want to change a string in a listbox with API
I use the following
Sendmessage_ (#mylistbox,#LB_SETITEMDATA,0,"new string")
But I dont' succeed,
What I'am I doing wrong
I know PB does it with a PB command, but I want to learn API
any suggestions are welcome
change string in listbox (with API)
change string in listbox (with API)
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
have you tried:
Code: Select all
Sendmessage_ (GadgetID(#mylistbox),#LB_SETITEMDATA,0,"new string")
Yes i tried,
Does not work.
Maybe i use the wrong command!!!!!
Does not work.
Maybe i use the wrong command!!!!!
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Just found out
First delete item with #LB_DELETESTRING with current index then
insert string with #LB_INSERTSTRING
First delete item with #LB_DELETESTRING with current index then
insert string with #LB_INSERTSTRING
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
