Jump to content

HelpButton neden çıkmıyor olabilir.


yakup

Recommended Posts

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...