mierlp Posted August 27 Posted August 27 Hi My form contains a uniTreeMenu. A uniMenuItems is connected as the sourcemenu When opening the form the code from the first menu item (MenuDetail) must be executed. There for i the code: MenuDetailClick(nil)...that works. Now i would like to set the focus to this menu item as it is clicked how can i do this? Quote
Sherzod Posted August 28 Posted August 28 10 hours ago, mierlp said: There for i the code: MenuDetailClick(nil)...that works. Now i would like to set the focus to this menu item as it is clicked procedure TMainForm.UniFormShow(Sender: TObject); begin MenuDetailClick(nil); UniTreeMenu1.Selected := UniTreeMenu1.Items[0]; // visually select/highlight that node end; 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.