fmgotoposition.pas
来自「Delphi的另一款钢琴软件」· PAS 代码 · 共 44 行
PAS
44 行
unit fmGotoPosition;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls;
type
TGotoPositionForm = class(TForm)
Label1: TLabel;
edBar: TEdit;
UpDown1: TUpDown;
edBeat: TEdit;
UpDown2: TUpDown;
edTick: TEdit;
UpDown3: TUpDown;
btnOK: TBitBtn;
btnCancel: TBitBtn;
BitBtn3: TBitBtn;
procedure BitBtn3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
GotoPositionForm: TGotoPositionForm;
implementation
{$R *.DFM}
uses fmMainForm;
procedure TGotoPositionForm.BitBtn3Click(Sender: TObject);
begin
MainForm.MidiPlayer.SetBarPos(StrToInt (edBar.Text) - 1, strToInt (edBeat.Text) - 1, StrToInt (edTick.Text));
MainForm.DisplayCurrentPosition
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?