Restored from previous forum. Originally posted by cor.
 Using the ListViewGadget
e.g.
SetGadgetState(1,4) does not generate an event
So I cannot programmatically change a ListView Item and take action on it.
Has someone a solution for this.
ps.
I'm trying to rewriting my program Super Guitar Chord Finder to PureBasic.
I'am trying to get it really small.
Originally made with Delphi 3.1.
I' am sorry but I have a lot of questions and problems to solve regarding PB for solutions for converting my program. But I'am learning with this great forum. Thanks a lot other PB users.
You can download a demo so you can see what must be translated into PB.
http://home02.wxs.nl/~cdvis000/finalversion/setup50.exe
(about 900KB)
Registered PB version : 2.82 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
			
			
									
									
						SetGadgetState does not generate an event!!
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
>Using the ListViewGadget
>e.g.
>SetGadgetState(1,4) does not generate an event
>So I cannot programmatically change a ListView
>Item and take action on it.
>
>Has someone a solution for this.
If you changed the Item with SetGadgetState(),
you _know_ you changed it.
So why do you need an event for it ??
Events are for User-Input/Actions and
for the Windowing-System (like WM_PAINT).
cya,
...Danilo
(registered PureBasic user)
			
			
									
									
						>Using the ListViewGadget
>e.g.
>SetGadgetState(1,4) does not generate an event
>So I cannot programmatically change a ListView
>Item and take action on it.
>
>Has someone a solution for this.
If you changed the Item with SetGadgetState(),
you _know_ you changed it.
So why do you need an event for it ??
Events are for User-Input/Actions and
for the Windowing-System (like WM_PAINT).
cya,
...Danilo
(registered PureBasic user)
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
//If you changed the Item with SetGadgetState(),
//you _know_ you changed it.
/So why do you need an event for it ??
I select 1 item in TreeGadget (with nodes etc.)
depending on the selection, I select an other Item in a ListView.
I only want to take action if the ListView changes or If I select one item in the ListView.
Of course I can take action with the SetGadget , but that is not what I want.
The action must also take place If I directly click the items in a ListView.
I hope this will clear it.
Registered PB version : 2.82 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
			
			
									
									
						//If you changed the Item with SetGadgetState(),
//you _know_ you changed it.
/So why do you need an event for it ??
I select 1 item in TreeGadget (with nodes etc.)
depending on the selection, I select an other Item in a ListView.
I only want to take action if the ListView changes or If I select one item in the ListView.
Of course I can take action with the SetGadget , but that is not what I want.
The action must also take place If I directly click the items in a ListView.
I hope this will clear it.
Registered PB version : 2.82 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com