Posted on 2006-04-05
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?
Question by:drmopco
    LVL 48

    Accepted Solution

    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.

    Author Comment

    Thank you for your comment.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    This article will show, step by step, how to integrate R code into a R Sweave document
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now