yakup Posted January 20, 2023 Share Posted January 20, 2023 Merhabalar, Helpbuttonu kullanmak istiyorum ,BorderIcon = [biSystemMenu,biHelp] ama neden görünmüyor ek bir ayar yapmama gerek var mı ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2023 Share Posted January 20, 2023 Hello @yakup Use ToolButtons: 1 Quote Link to comment Share on other sites More sharing options...
yakup Posted January 20, 2023 Author Share Posted January 20, 2023 i tried it before, it's not a stylish look. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 22, 2023 Share Posted January 22, 2023 Merhaba Malesef oraya help button eklemenin baska yolu yok 1 Quote Link to comment Share on other sites More sharing options...
yakup Posted January 25, 2023 Author Share Posted January 25, 2023 Pekala , o şekilde ekledim. Ancak tüm formları tek tek gezmek istemediğim için MainModule'de halletmek istedim bu işi. Bu şekilde güzel oldu ama şu şekilde bir sorunla karşılaştım bu sefer. Örneğin bir formu tam ekran açtım. Bu formun içinde başka bir formu açtığımda yeni açılan form anlık görünüp arkaya kaçıyor. procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent); var cName: string; uf : TUniForm; begin try if (AComponent.Owner is TUniForm) then begin uf := (AComponent.Owner as TUniForm); if Assigned(uf.ToolButtons) then begin if uf.ToolButtons.Count = 0 then begin uf.ToolButtons.Add; uf.ToolButtons[0].Hint := 'Yardım'; uf.ToolButtons[0].UI := uf.Name; uf.ToolButtons[0].Caption := uf.Name; TUniButtonItemY(uf.ToolButtons[0]).ToolType := 'help'; uf.OnToolClick := UniToolButtonClick; end; end; end; except on E: Exception do // ShowMessage( e.Message ) end; end; procedure TUniMainModule.UniToolButtonClick(Sender: TUniCustomButtonItem); begin try if Sender.Hint = 'Yardım' then begin HelpForm.HelpName := TUniCustomButtonItem(sender).UI; HelpForm.show; end; except on E: Exception do // ShowMessage( e.Message ) end; end; Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 25, 2023 Share Posted January 25, 2023 Ornek uygulama yapabilir misiniz? Quote Link to comment Share on other sites More sharing options...
yakup Posted February 1, 2023 Author Share Posted February 1, 2023 Tam olarak bu oluyor. Not: Unidbgrid kullandığım formlarımda olduğunu farkettim. ung.mp4 Project1.zip 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.