DMC-Corona-Library icon indicating copy to clipboard operation
DMC-Corona-Library copied to clipboard

dmc_buttons: _initComplete not being called.

Open BoarK opened this issue 11 years ago • 2 comments

Using dmc_buttons radio group.

Problem: Initial state of the button's active/inactive modes are not set. In my case the button's active image is showing underneath the inactive image since they are of different sizes.

Details: img_data.active.isVisible = false is not being called in BinaryButton:_initComplete() since BinaryButton has __isIntermediate set on the object for being a child class of ButtonBase.

BoarK avatar Oct 02 '13 20:10 BoarK

_initComplete is called in CoronaBase:new(). When creating a Radio button the new function in BinaryButton Class is used and CoronaBase:new() is never called.

BoarK avatar Oct 03 '13 19:10 BoarK

thanks for the good info ! i'll check it out.

dmccuskey avatar Oct 03 '13 20:10 dmccuskey