English 中文(简体)
• 如何改变因诺人 set的 mo子?
原标题:How to change mouse cursor inside Inno setup?

在安装期间,我利用Inno安装机设立了一个装置,对系统的某些价值(管理钥匙、某些档案......)进行了一些长时间的操作,在此期间,没有向用户展示接口,我的确在启动电离层功能。

我想知道的是,如果我能改变使用点,而我做的是所有这些检查,那么使用者知道正在发生的事情。

我认为,我可以造成一种磨难,不停地要求改变治疗师的病房内的职能,但我不想另作一番 d,如果能够用帕斯卡的描述来做,我就错了。

得到帮助。

最佳回答
问题回答

最近版本的Inno Setup可能发生了一些变化,但我无法从Mirtheil获得工作答案。

相反,我是这样说的:

procedure SetControlCursor(oCtrl: TControl; oCurs: TCursor);
var 
  i     : Integer;
  oCmp  : TComponent;
begin
  oCtrl.Cursor := oCurs;
  for i := 0 to oCtrl.ComponentCount-1 do
  begin
    oCmp := oCtrl.Components[i];
    if oCmp is TControl then
    begin
      SetControlCursor(TControl(oCmp), oCurs);
    end;
  end;
end;

a. 安装一个小时镜子:

SetControlCursor(WizardForm, crHourGlass);    

2. 重整数小时镜子:

SetControlCursor(WizardForm, crDefault);  

希望能帮助人们!

混淆了@mirtheil和@Sirp的答复中的好部分,这是对最佳解决办法的敌意:

procedure SetControlCursor(Control: TControl; Cursor: TCursor);
var 
  I: Integer;
begin
  Control.Cursor := Cursor;
  if Control is TWinControl then
  begin
    for I := 0 to TWinControl(Control).ControlCount - 1 do
    begin
      SetControlCursor(TWinControl(Control).Controls[I], Cursor);
    end;
  end;
end;

Set hour :

SetControlCursor(WizardForm, crHourGlass);    

2. 重新确定违约曲线:

SetControlCursor(WizardForm, crDefault);  




相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签