We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now



drmopco asked
Medium Priority
Last Modified: 2010-04-17
Can you guys tell me what an event is and how events and GUI are related. I think that an event is something that happens when a link or button is clicked in a portlet. A portlet's events are specified in the provider .xml file. Am I hitting the right target?
Watch Question

GUI programming is always event-based. When you write DOS application (or Console application), it always starts from beginning of function main end ends in the end of this function. All program actions are described by your code.
GUI program starts, initializes window and waits for events. Events are different user actions: button click, mouse move, keyboard input. Program handles every event in appropriate event handler (like OnMouseMove, OnKeyDown, OnButton etc.) and returns to wait state until new event is detected.
Different GUI frameworks (like MFC, .NET, Java etc.) supply GUI program logic. Program written using such framework is usually set of event handlers for different user actions, when framework manages program state and calls event handlers.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thank you for your comment.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.