ListViewGadget swallows rightclick

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 Gary Law.

Hi,
Not sure if this is a bug or not , but the ListView gadget can't process a right click.

The Double click gets processed correctly
The right click get's swallowed - put in a debug and you see nothing when right click

It works O.K in TreeViev and List Icon , so no big deal - just curious if it should work here

PB 3.5 on Win XP pro

Snippet:-
Repeat
WEvent = WaitWindowEvent()
Select WEvent
Case #PB_EventCloseWindow
Quit = #TRUE

Case #PB_EventGadget

If EventType() = #PB_EventType_LeftDoubleClick ;RightClick
MessageRequester("" , "Got Here" , 0)

EndIf
Default
EndSelect
Forever


Gary
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.

> The right click get's swallowed

Confirmed on W2K SP3. Most likely a bug.
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 Danilo.

> Most likely a bug.

Or just a missing feature. :)

cya,
...Danilo
(registered PureBasic user)
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.

> Or just a missing feature.

But the flag is in the docs, so how are we to know? :)
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 Danilo.

EventType() doesnt work correctly for all Gadgets,
thats the big problem.
Try EventType with ComboBox or SpinGadget for example
and you´ll see that its all wrong.

cya,
...Danilo
(registered PureBasic user)
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 El_Choni.

I remember processing #WM_CONTEXTMENU as a workaround (maybe in a callback).

El_Choni
Post Reply