LB Booster
Programming >> Compatibility with LB4 >> Default button http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1480970761 Default button
Post by Alincon on Dec 5th, 2016, 7:46pm
I unintentionally found that the 'default' button works with other window types besides dialog windows in LBB: (not in LBx)
Code:
Button #incm.default, "Add", [incmGetData], UL, 0,0,0,0
open " Income " for window_popup as #incm
I could not find this mentioned in LBB documentation. Is it intentional?
r.m.
Re: Default button
Post by Richard Russell on Dec 5th, 2016, 9:47pm
Yes, it's intentional. In LB 4 you can create a 'default' button in non-dialog windows using STYLEBITS, so it's never been clear to me why you can't do the same using the native method.
In LBB specifying the .default extension for the button has exactly the same effect internally as setting the BS_DEFPUSHBUTTON style.