Oliver Morsch Posted March 28, 2018 Posted March 28, 2018 Is it possible to expand (open) UniMainMenu programmatically (after pressing F12 for example)? Quote
Sherzod Posted March 28, 2018 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
Oliver Morsch Posted March 28, 2018 Author 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
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.