Added: 3 years ago
From: codegearguru
Views: 1,730
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • A tip: when using + / - buttons, set the Tag property to 1 for the addition button, and -1 for the subtraction button, then set both buttons to the same OnClick event. Within the event code, add: Value := Value + TButton(Sender).Tag;

    It reduces the code by a teeny bit.

    I loved the Max() tip! I didnt know about that one and I've been programming in Delphi/Pascal for about 20 years now!

    Thanks for all the videos you're doing. They're great!

  • I have used this tip many times in the past. You can do if Sender = bPlus then... Although I'm trying not to mess the code and user interface too much these days as it makes testing and later modification harder (although in this simple case I don't think it matters much).

  • some nice hints there, thanks mate :)

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more