LB Booster
« Default button »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:54am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Default button  (Read 254 times)
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Default button
« Thread started 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Default button
« Reply #1 on: Dec 5th, 2016, 9:47pm »

on Dec 5th, 2016, 7:46pm, Alincon wrote:
Is it intentional?

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.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls