user interface - How to close a window with Spec in Pharo -
i have spec window several controls. when click on ok button want window closed.
| m | m := dynamiccomposablemodel new. m instantiatemodels: #(text textmodel ok oktoolbar). m ok okaction: [ self close ]. m openwithspeclayout: (speclayout composed newcolumn: [ : c | c add: #text ; add: #ok height: 30 ]; yourself).
i have tried sending delete , close, none worked. how can close window?
you can this:
| m | m := dynamiccomposablemodel new. m instantiatemodels: #(text textmodel ok oktoolbar). m ok okaction: [ m window close ]. m openwithspeclayout: (speclayout composed newcolumn: [ : c | c add: #text ; add: #ok height: 30 ]; yourself).
Comments
Post a Comment