Recent

Author Topic: Whats a great way to learn GUI programming.  (Read 6124 times)

captian jaster

  • Guest
Whats a great way to learn GUI programming.
« on: May 05, 2010, 09:51:19 pm »
im reading essential delphi. but i dont know half of the things i see on the top of lazarus. ive been experimenting with some small things but wanna move up... whats a good place to learn GUI in pascal?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8764
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Whats a great way to learn GUI programming.
« Reply #1 on: May 06, 2010, 06:28:56 am »
From my experience: through experiments, examples on web (or under examples folder), and asking in forums and mailing lists.

JanRoza

  • Hero Member
  • *****
  • Posts: 677
    • http://www.silentwings.nl
Re: Whats a great way to learn GUI programming.
« Reply #2 on: May 06, 2010, 11:21:44 am »
Just set yourself a task. I learned by wanting an electronic logbook for my glider flying.
Trying to program that gave me many problems and questions, which one by one were all sorted out by experimenting, reading and asking in this forum.
My experience is that looking at examples is nice but once they get difficult you tend to leave them alone, whereas making your own program forces you to continue no matter how hard it gets. You want to get your program working and that motivates you just that little bit extra to go on when things get tough.

Jan
 
OS: Windows 11 / Linux Mint 21.3
       Lazarus 3.4 FPC 3.2.2
       CodeTyphon 8.40 FPC 3.3.1

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Whats a great way to learn GUI programming.
« Reply #3 on: May 06, 2010, 04:06:22 pm »
It's really quite simple. The application GUI is made up of visual elements = controls. Each of these controls has properties and associated events. As a user, you interact with your application GUI by triggering events. The easiest event to grasp is a mouse click on the control.

Once you have triggered an event the control "responds" to it by running the procedure that you created for that event & control. For example, you can simply provide some feedback -- ShowMessage('You clicked me!'); -- or you can transfer data from one control to another -- e.g., from a TEdit to a TMEmo: Memo1.Lines.Add(Edit1.Text);

The main properties and available events for a control are listed in the object inspector.
Lazarus/FPC on Linux

captian jaster

  • Guest
Re: Whats a great way to learn GUI programming.
« Reply #4 on: May 06, 2010, 04:08:35 pm »
thnx guys. this is so cool.

 

TinyPortal © 2005-2018