brunomf01 Posted March 21, 2019 Posted March 21, 2019 Can someone help me with the following problem? I'm trying to change the image (ImageIndex) of a TUniMenuItem of a TUniPopupMenu but in the TUniMenuButton does not refresh the image ... it is only the default defined ... I want to show the option that was clicked ... Does anyone know what I might be doing wrong? Does UniGUI have this limitation of not visually updating ImageIndex? alguem sabe me ajudar com o seguinte problema Estou tentando mudar a imagem (ImageIndex) de um TUniMenuItem de um TUniPopupMenu mas no TUniMenuButton nao atualiza a imagem... fica só a que foi definida default... estou querendo mostrar a opção que foi clicada, mas a propriedade Checked é meio bugada e pensei implementar assim... alguem sabe o que posso estar fazendo de errado? o UniGUI tem essa limitação de não atualizar visualmente o ImageIndex? Ex.: procedure TMainForm.item11Click(Sender: TObject); begin item11.ImageIndex := 0; item21.ImageIndex := -1; item31.ImageIndex := -1; end; procedure TMainForm.item21Click(Sender: TObject); begin item11.ImageIndex := -1; item21.ImageIndex := 0; item31.ImageIndex := -1; end; procedure TMainForm.item31Click(Sender: TObject); begin item11.ImageIndex := -1; item21.ImageIndex := -1; item31.ImageIndex := 0; 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.