Programmatically fire an event?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

How to programmatically fire an event e.g. just like if I pressed on a listbox.

EventID=8 ( listbox doesn't work )

Must be executed from another event!!!

Any suggestions?

Using Windows 98 SE
Registered PB version : 3.30 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> How to programmatically fire an event e.g. just like if I pressed
> on a listbox.

Do it like you did in your own example here:

viewtopic.php?t=1892

Works for me with a ListBox, except I had to change #WM_LBUTTONCLK to
#WM_LBUTTONDOWN and have another SendMessage with #WM_LBUTTONUP.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

Oh my dear,

Now I go to bed, gottin very small eyes now :)

Thanks PB

Using Windows 98 SE
Registered PB version : 3.30 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Now I go to bed, gottin very small eyes now :)

:)


PB - Registered PureBasic Coder
Post Reply