Oliver Morsch Posted March 28, 2018 Share Posted March 28, 2018 Is it possible to expand (open) UniMainMenu programmatically (after pressing F12 for example)? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 28, 2018 Share Posted March 28, 2018 Hi, One possible solution I think: procedure TMainForm.UniFormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = VK_F12 then UniSession.AddJS(Self.Name+'.'+UniMainMenu1.Items[0].Name+'.click();') end; 1 Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted March 28, 2018 Author Share Posted March 28, 2018 Function ".click() " does not exist on this object. But this works for me: UniSession.AddJS('frmMain.miProgramm.child().showBy(frmMain.miProgramm);'); Thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.