WPita_MMSIS Super Contributor.
Super Contributor.
787 views

Mouse Click

Jump to solution

I need to capture the mouse button in a ListBox, done that

method-id listBox2_MouseClick final private.

procedure division using by value sender as object e as type System.Windows.Forms.MouseEventArgs.

if (e::Button = type MouseButtons::Right)

invoke type MessageBox::Show("Direito" "MMSIS")

end-if

if (e::Button = type MouseButtons::Left)

invoke type MessageBox::Show("Esquerda" "MMSIS")

end-if

if (e::Button = type MouseButtons::Middle)

invoke type MessageBox::Show("Centro" "MMSIS")

end-if

end method.

But just take the left button

0 Likes
1 Solution

Accepted Solutions
Highlighted
Altair Absent Member.
Absent Member.

RE: Mouse Click

Jump to solution

Use o método  MouseDown que irá funcionar.

Use the MouseDown method that will work.

0 Likes
2 Replies
Highlighted
Altair Absent Member.
Absent Member.

RE: Mouse Click

Jump to solution

Use o método  MouseDown que irá funcionar.

Use the MouseDown method that will work.

0 Likes
WPita_MMSIS Super Contributor.
Super Contributor.

RE: Mouse Click

Jump to solution

Obrigado Altair, então era só o evento que estava erra, valeu!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.