@AIR, Assume that I have a button. I want to add a click event handler and a mouse enter event handler for the same button. In my Windows GUI lib (Not completed though), every control has different events. And you can set like this. var win = newWindow() win.create() # Will create a new window with default props var btn = newButton(win) btn.font.name = "Calibri" btn.create() btn.onMouseEnter = (w : Control, e: MouseEventArgs) => echo "Mouse is now on the button" btn.onMouseClick = (w : Control, e: EventArgs) => echo "Hey you clicked the button" win.display() Run
See this code. I can set mouse enter & mouse click for same button.