DougHennig / Ribbon

A Microsoft Office 365-like ribbon control for VFP forms
24 stars 11 forks source link

public loThisform #4

Closed NigelGomm closed 2 years ago

NigelGomm commented 3 years ago

rather than use a public variable i have added (my copy) an .oParentform property to sfribbonbase and sfribbonmenuform , set it to 'thisform' in their .init() events and then changed sfribbontoolbarbutton.click() to loThisform = This.oparentform

n

DougHennig commented 3 years ago

The problem with that approach is that the form contains a reference to the ribbon and the ribbon contains a reference to the form, which can make for zombie forms (they appear to close but aren't actually released) unless you're very careful about cleaning up the object references.