 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
ChowVT Guest
|
Posted: Tue Jul 29, 2003 8:30 pm Post subject: how to programlly add a action to ActionToolbar with ActionM |
|
|
how to *programlly* add a action to ActionToolbar with ActionManager?
for it, i did not find any examples in delphi's help and web sites.. etc.
( with delphi, i always feel that delphi(borland)' help is a horror
as for component using examples. is my feeling wrong? )
i wrote the following:
{*******************************************}
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms, Dialogs, ToolWin, ActnMan, ActnCtrls, ActnMenus,
XPStyleActnCtrls, ActnList, StdCtrls, Buttons;
type
TForm1 = class(TForm)
procedure BitBtn1Click(Sender: TObject);
private
ActionToolBar1: TActionToolBar;
ActionManager1: TActionManager;
public
constructor Create(AOwner: TComponent); override;
procedure AddAction;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
constructor TForm1.Create(AOwner: TComponent);
begin
inherited;
ActionManager1:= TActionManager.Create(Self);
ActionToolBar1:= TActionToolBar.Create(Self);
ActionToolBar1.ActionManager:= ActionManager1;
end;
procedure TForm1.AddAction;
// var
// vAction: TAction;
// begin
// vAction:= TAction.Create(Self);
// vAction.Name:= 'Item1';
// vAction.Caption:= 'Item1';
{ ? }
end;
end.
{*******************************************}
in '?', what do i do?
thank for your helps.
|
|
| Back to top |
|
 |
Steve Trefethen (Borland) Guest
|
|
| Back to top |
|
 |
Ignacio Vazquez Guest
|
Posted: Wed Jul 30, 2003 12:01 am Post subject: Re: how to programlly add a action to ActionToolbar with Act |
|
|
"ChowVT" <Chowvt (AT) yahoo (DOT) com.spam.no> wrote
| Quote: | without this additional action of user, how to programlly add a action to
action toolbar with action-manager ?
|
You did look at the posting that Steve mentioned, right?
Cheers,
Ignacio
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|