LB Booster
Programming >> Compatibility with LB4 >> POPUP MENU http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1448657125 POPUP MENU
Post by Alincon on Nov 27th, 2015, 7:45pm
I recently discovered that in LBB, popupmenu allows branches to subroutines, while popupmenu in LB4x does not. Is this a planned feature?
r.m.
Re: POPUP MENU
Post by Richard Russell on Nov 27th, 2015, 9:28pm
I recently discovered that in LBB, popupmenu allows branches to subroutines, while popupmenu in LB4x does not. Is this a planned feature?
In LBB a common routine is used for processing 'handlers'. It is used by buttons/checkboxes, combo/listboxes, menus/popupmenus, timer, trapclose, resizehandler, spritetravelxy and when events.
As a result, in every case you can specify either a label or a sub. So whilst allowing a popupmenu handler to be a sub was not exactly "planned" it naturally follows from the use of shared code.
I don't think I realised that LB 4 doesn't allow sub handlers for popupmenus. Since ordinary 'drop down' menus do, it seems an anomaly.