What am I doing wrong here?
METHOD PRIVATE VOID radGridView1_MouseDown( INPUT sender AS System.Object, INPUT e AS System.Windows.Forms.MouseEventArgs ):
IF e:Button == MouseButtons:Right THEN
//GridViewRowInfo currentRow = this.radGridView1.MasterGridViewInfo.CurrentRow;
radContextMenu1:Show(MousePosition)
END
END METHOD.
Severity and Description Path Resource Location Creation time Id
** Cannot process comparison in expression. (250) ProgressClient/Encompix/ShopFloor/Preform PreformData.cls line 300 1486667796834 774
Severity and Description Path Resource Location Creation time Id
** Unable to understand after -- "e:Button =". (247) ProgressClient/Encompix/ShopFloor/Preform PreformData.cls line 300 1486667796833 773
You've got == for the equality operator. It should be a single =. You're also missing a period at the end of the line with the Show method.
You've got == for the equality operator. It should be a single =. You're also missing a period at the end of the line with the Show method.
It also looks like there's an extra END. You may need to specify the namespace for the MouseButtons enumeration - System.Windows.Forms.MouseButtons.
Just a general comment. It is generally not a very good idea to intercept MouseDown events in the ABL. Are you doing something that the grid itself does not support?
I'm wanting to create a right click that will open a PDF file.
I recommend that you do it on MouseUp instead of MouseDown. If you do it on MouseDown you can run into problems where the MouseDown is seen by the control you clicked on and the MouseUp is seen by a control that gets displayed by your event handler. Some controls get confused if they don't see a MouseUp for every MouseDown.
Trying to write C++, C, or Java in a Progress program (or any other language that uses "==" and ";".)