Strange issue with transported applications
Posted: Wed Feb 26, 2020 8:20 am
Hi Chris,
thank you very much, I have my solution now:
Thank you very, very much!
Wolfgang
thank you very much, I have my solution now:
Code: Select all
class DynMenu inherit Menu
protect _aMenuItems as array // The item of the menu
protect _aAcceleratorKeys as array // The accelerator keys
protect _aMenuChoices as array // array of descriptions and associated methods
protect _aMethodIDs as array // The methods and ID's
protect _oKeys as DynMenuAcceleratorKeys // added
method ActivateAcceleratorKeys( oOwner )
// Create an accelerator class instance from the keys registred with this menu
_oKeys := DynMenuAcceleratorKeys{ self:AcceleratorKeys } // using the protect and not more the local variable
// Set the AcceleratorKeys for this menu
self:Accelerator := DynMenuAccelerator{ GetNextMenuID(), _oKeys:GetAcceleratorHandle }
if IsInstanceOfUsual( oOwner, #Window )
SetAccelerator( oOwner:Handle(), self:Accelerator:Handle() )
endif
return self:Accelerator
Wolfgang