DG> wxEVT_SASH_DRAGGED_RANGE is not defined which I need to dynamicly connect to it. DG> Bug? No, it's also wxEVT_SASH_DRAGGED, you just use the connect call that takes 'id' and 'lastId' as parameters. http://docs.wxwidgets.org/stable/wx_wxevthandler.html#wxevthandlerconnect Eric