I've asked this on the Flux forums too, but thought I'd shoot this question over here as well:
I created a plugin using Visual Designer 2 and built the dll. Everything is fine except that my buttons don't respond to any mouseclicks or even when hovering (changing the button image).
Here's the code:
But, when I call the code above with a keypress, it works fine. Here's the code for that:Code:private void BTNNEXT_Click( object sender, MouseEventArgs e ) { Debug.WriteLine("cfGoLocal: BTNNEXT clicked."); try { this.CF_systemCommand( CF_Actions.SHOWINFO, "BTNNEXT clicked" ); LocType++; if (LocType > 2) { LocType = 0; } showpage(); } catch(Exception errmsg) { WriteLog(errmsg.ToString()); } }
Any clues?Code:if(e.KeyCode == Keys.Left) { WriteLog("KEYLEFT: cfGoLocal"); this.BTNPREV_Click(this, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); }
Bookmarks