Jump to content
nimenialtul

ajutor delphi

Recommended Posts

Posted

Adaugi un label pe form

Acum la un button sau la ce vrei tu la eventul OnClick pui acest cod


var
i: integer;
begin
for i := 0 to (FileListBox1.Items.Count - 1) do
if FileListBox1.Selected[i] then
label1.Caption := FileListBox1.Items[filelistbox1.itemindex];
end;

Posted

Adaugi sus la USES, MMSystem.

Pui acest cod sub {$R *.dfm}


procedure ChangeVolume(left, right: Word);
var
a: HWAVEOUT;
b: TWAVEFORMATEX;
vol: DWORD;
begin
FillChar(b, SizeOf(, 0);
waveOutOpen(@a, WAVE_MAPPER, @b, 0, 0, 0);
vol := left + right shl 16;
waveOutSetVolume(a, vol);
waveOutClose(a);
end;

Iar acum pentru a schimba volumu , dai click pe scrollbar , si la OnChange pui acest cod


ScrollBar1.max := 65535;
ChangeVolume(scrollbar1.Position,scrollbar1.Position);

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...