|
|
|
How to change desktop image with Delphi?
Aha-Soft - software for working with icons and cursors

How to register OCX?
How to create icon in the group?

How to register OCX?
Put *.ocx into system Windows directory and call REGSVR32.EXE in the your application:
iniFile:=TiniFile.Create(xyz.ini');
lVCF132Registered:=IniFile.ReadBool('Main',
'VCF132Registered',False);
if not lVCF132Registered then
begin
WinExec(Pchar('REGSVR32.EXE /s VCF132.OCX'),
SW_MINIMIZE);
IniFile.WriteBool(cName,
'VCF132Registered',True);
end;
IniFile.Free;

How to create icon in the group?
See example:
procedure TForm1.Button2Click(Sender: TObject);
var
DDE: TDDE;
PROGMAN: TDDEString;
Conv: TDDEConversation;
WizardGroupValue, CreateGroupCmd,
CreateIconCmd: string;
begin
WizardGroupValue := '000000000';
DDE := TDDE.Create;
try
PROGMAN := DDE.CreateString('PROGMAN');
Conv := DDE.BeginConnection(PROGMAN,
PROGMAN);
CreateGroupCmd := '[CreateGroup("' +
WizardGroupValue + '")]';
DDE.Execute (Conv, CreateGroupCmd,
False);
DDE.Execute (Conv, '[ShowGroup("' +
WizardGroupValue + '",5)]',
False);
CreateIconCmd:=Format('[AddItem(%s,
%s, %s, %s)]',
['c:\autoexec.bat', 'My demoapp',
'c:\autoexec.bat', '0'])+#13#10;
DDE.Execute (Conv, CreateIconCmd,
False);
finally
DDE.Free;
end;
end;
Site Map
|
|
Copyright © 2000-2022 Aha-Soft. All rights reserved.
|
|
IconLover is our pick. It allows you to design and edit all kinds of graphics required in the software development cycle, including icons, static and animated cursors and interface elements - all these graphics can now be designed in a single application.
Toolbar Icon Set. A ready collection of practical and eye catching Windows icons representing all basic operations required for software development.
Business Icon Set will make your software and web products look more modern and attractive. File formats included into the set are Windows icons, GIF and PNG images.
ArtIcons Pro is an advanced icon-specific utility for Windows. It supports ICO, BMP, PNG, GIF, PSD, XPM, XBM, WBMP, CUR and ANI image formats and allows you to manage icon libraries.
ArtCursors allows you to find, create, edit, import and export cursors and manage cursor libraries. It supports static and animated cursors.
Any to Icon converts icons and cursors into BMP, JPG, PNG, GIF, ICO, CUR and other formats. This wizard can find icons and make images for use on Web pages.
|
|
|
|