15-12-2010, 09:18 PM
وعليكم السلام ورحمة الله وبركاته
أهلا ومرحبا بك في المنتدى
بداية موفقة...
حاول التخلي عن الـ TTimer، إبحث عن أقصر الحلول واستخدام أقل عدد ممكن من المكتبات
إضافة صغيرة:
الاستخدام:
بخصوص الـ Flags
عفا الله عنك وعن والديك
بالتوفيق.
أهلا ومرحبا بك في المنتدى

بداية موفقة...
حاول التخلي عن الـ TTimer، إبحث عن أقصر الحلول واستخدام أقل عدد ممكن من المكتبات
إضافة صغيرة:
PHP كود :
...
public
{ Public declarations }
end;
procedure RunFileDlg(OwnerWnd: HWND; Icon: HICON; lpstrDirectory: PWideChar;
lpstrTitle: PWideChar; lpstrDescription: PWideChar; Flags: Longint); stdcall;
external 'Shell32.dll' index 61;
var
...
كود :
procedure TForm1.btRunClick(Sender: TObject);
begin
RunFileDlg(Handle, Application.Icon.Handle, 'c:\', 'Open a file', '', $0001);
end;PHP كود :
#define RFF_NOBROWSE 0x0001 // Removes the browse button
#define RFF_NODEFAULT 0x0002 // No default item selected
#define RFF_CALCDIRECTORY 0x0004 // Calculates the working directory from the file name
#define RFF_NOLABEL 0x0008 // Removes the edit box label
#define RFF_NOSEPARATEMEM 0x0020 // Removes the Separate Memory Space check box, NT only
بالتوفيق.

