Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/04/19 in all areas

  1. Attached is a simple wrapper for the SweetAlert2 library. (QUICK HACK.. No unit testing, no tidy up etc..) ** No warranty - Use at your own risk ** FREE for commercial use, etc.. (just don't remove the copyright header). 1) Compile the Package/Install 2) Make sure your path includes the control folder 3) Copy the files/sweetalert folder into your project 4) Drag/Drop the uniSweetAlert control onto your form. Simple usage like: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSweetAlert1.ShowMessage; // or like UniSweetAlert1.Error('Oops','Something went wrong'); // or like UniSweetAlert1.Error('Oops','Error again','FixMe',3000); // or like UniSweetAlert1.Question('Is this true','Please click one of the options below:','YES','NO',3000); // or like UniSweetAlert1.title := 'Hello'; UniSweetAlert1.text := 'Testing'; UniSweetAlert1.alertType := TAlertType.success; UniSweetAlert1.ShowMessage; end; // Events for Confirm or Cancel/Dismiss procedure TMainForm.UniSweetAlert1Dismiss(Sender: TObject); begin UniButton1.Caption := 'DIS'; uniMemo1.Lines.Add('Dis'); end; procedure TMainForm.UniSweetAlert1Success(Sender: TObject); begin UniButton1.Caption := 'CLICKED'; uniMemo1.Lines.Add('Clicked'); end; Either (1) set properties and call .ShowMessage; Or call the Error, Info, etc methods. Enjoy.. Regards Andrew 2017-07-29-uniSweetAlert V3.zip
    1 point
  2. Hello, I tried to use table layout and found difficult to do it. Here is the modified sample: https://yadi.sk/d/hUYtg2CFrZ3Qd 1)UniGui doesn't pay attention to controls tab order or creation order and align them according to its own rules: first cells are for TUniEdits, then for TUniLabel and at last for TUniDateTimePickers. Is there a way to manually set the order? 2)TUnidateTimePickers do not extend to 100% width. Is this normal? Also some small questions that don't relate to layouts directly 3)TUniSpinEdit doesn't have FieldLabel property. Is there a particular reason for that? 4)What font is used for FieldLabel? Why does it differ from its owner - TUniEdit? On the sample it certainly differs from the font used for TUniLabel though the default fonts are the same. 5)Is it possible to use images in the TUniCombobox items? 6)TUniDBGrid has two(!) event handlers for placing images on the grid items: OnFieldImage and OnFieldImageURL but cannot use TUniImageList items for them. That's not the question, just weird.
    1 point
×
×
  • Create New...