Ĺadny brzuch
Witam Jestem poczatkujący i mam pytanka do szanownych grupowiczów
1)Jak oprogramować zdarzenie przycisku na formularzu żeby wyświetlił się komunikat z zapytaniem czy usunąć rekord
2)W kontolce DBEdit jak wyswietlić komunikat z prośbą o wpisanie danych gdy kontrolka jest niewypełniona
Proszę o fragmencik kodu
Z góry dzięki
Witam.
ad.1)
void __fastcall TForm1::Button1Click(TObject *Sender) { Application->MessageBoxA("Usunac rekord?", "zapytanko", MB_OK); }
..gdzie wybór przycisków jest taki:
MB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK The message box contains one push button: OK.
MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
MB_YESNO The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.
a sprawdzenie co wybrał user wygląda tak (w nawiasach odpowiadające wartości liczbowe):
IDOK (1) The user chose the OK button.
IDCANCEL (2) The user chose the Cancel button.
IDABORT (3) The user chose the Abort button.
IDRETRY (4) The user chose the Retry button.
IDIGNORE (5) The user chose the Ignore button.
IDYES (6) The user chose the Yes button.
IDNO (7) The user chose the No button.
ad.2) opierając się na tym co napisałem coś już wykombinujesz :D
Pozdrawiam.
Użytkownik langusta edytował ten post 07 maj 2005, 08:11
zanotowane.pl doc.pisz.pl pdf.pisz.pl zsf.htw.pl
1)Jak oprogramować zdarzenie przycisku na formularzu żeby wyświetlił się komunikat z zapytaniem czy usunąć rekord
2)W kontolce DBEdit jak wyswietlić komunikat z prośbą o wpisanie danych gdy kontrolka jest niewypełniona
Proszę o fragmencik kodu
Z góry dzięki
Witam.
ad.1)
void __fastcall TForm1::Button1Click(TObject *Sender) { Application->MessageBoxA("Usunac rekord?", "zapytanko", MB_OK); }
..gdzie wybór przycisków jest taki:
MB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK The message box contains one push button: OK.
MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
MB_YESNO The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.
a sprawdzenie co wybrał user wygląda tak (w nawiasach odpowiadające wartości liczbowe):
IDOK (1) The user chose the OK button.
IDCANCEL (2) The user chose the Cancel button.
IDABORT (3) The user chose the Abort button.
IDRETRY (4) The user chose the Retry button.
IDIGNORE (5) The user chose the Ignore button.
IDYES (6) The user chose the Yes button.
IDNO (7) The user chose the No button.
ad.2) opierając się na tym co napisałem coś już wykombinujesz :D
Pozdrawiam.
Użytkownik langusta edytował ten post 07 maj 2005, 08:11