您是否会考虑将Delphi 2010/XE用于开发新的Windows桌面项目,或者您认为它与当前的.Net和Microsoft产品(WPF)状态一样?
如果您愿意/不会使用它,请解释原因.
编辑
我同意最初的问题有点争论.但是,这是一个严肃的问题.我在澳大利亚工作,我没有看到很多包含最近delphi经验的开发者简历,所以当我说"死"时,我只是质疑它是否是一个糟糕的选择,因为有一个人在缩小它的工作量.
我正在尝试动态添加actionitems,我可以添加项目,当我这样做时它可以工作:
HostActionItem := ActionManager.ActionBars[0].Items[0].Items[2];
NewItem := HostAction.Items.Add;
NewItem.Action := MyActionToPerform;
NewItem.Caption := Description;
NewItem.ImageIndex := 1;
NewItem.Tag := 13;
Run Code Online (Sandbox Code Playgroud)
但是,当操作Execute方法触发时,我尝试从Sender对象获取ActionComponent,如下所示:
if (Sender is TAction) then
tag := (Sender As TAction).ActionComponent.Tag;
Run Code Online (Sandbox Code Playgroud)
但是ActionComponent总是为零.为什么ActionComponent没有初始化?