B4J Question CustomListView placed on Pane - Click event consumed by pane

Josias

Member
Licensed User
Longtime User
THnx Erel. This is the exact example that I am using. The only change iI made was that I've added a pane in the designer. The CLV is drawn on top of the pane.
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
THnx Erel. This is the exact example that I am using. The only change iI made was that I've added a pane in the designer. The CLV is drawn on top of the pane.

Your problem was due to the fact you declared ... clv As CustomListView.
But the clv click even sub was named. .... clv1_Click
 
Upvote 0

Josias

Member
Licensed User
Longtime User
Thnx mangojack. I just found it myself. I appreciate the feedback.
As a note, the application works fine when clv1_Click is renamed to clv_click.
For future reference. This is an example of putting a custom list view on a pane.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Thnx mangojack. I just found it myself. I appreciate the feedback.
As a note, the application works fine when clv1_Click is renamed to clv_click.
For future reference. This is an example of putting a custom list view on a pane.
You can avoid that kind of risk leaving the Designer create the events:
upload_2019-12-25_10-4-20.png
 
Upvote 0
Top