Default Button

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
ahj_dk
Posts: 20
Joined: Wed Mar 09, 2016 9:10 pm

Default Button

Post by ahj_dk » Fri Jun 03, 2016 9:15 pm

Hi,

If a button has "ButtonDefault" checked, it's styled as Focused, can I change this?

As a workaround, I would create another style for default buttons, or handle the 'enter' event myself, but I would like not to do this.
Regards
Allan Jakobsen
Futura Data A/S

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Default Button

Post by Stewart Marshall » Mon Jun 06, 2016 9:50 am

The default button uses the focus style. It's been that way in LANSA since day 1. There's nothing in themes to allow this to be changed.

One option is to delete the focusstyle from the button drawstyle, but this of course means that a button won't ever show as focus.

The other alternatives are as you described.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

Post Reply