Dialogs.

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed. Procedure-Driven Programming Event-Driven Programming Events Messages Event Handlers GUI Windows and Multitasking Queues ( System.
Advertisements

How to Import an Outline From Microsoft Word into a PowerPoint Presentation presented by James Bailey 11 Dec., 2001 ENGL 393.
What is a Dialog box? A Dialog box is a window or “form” that contains other child windows or “controls” that have a specific appearances and pre-defined.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Lec3 P 1 CP2030 Visual Basic For C++ Programmers Copyright © University of Wolverhampton CP2030 VBFC Lecture 3 Back To Index v If - Then Statement v Select.
Repeating Instructions
Intro to Windows Programming Basic Ideas. Program Entry Point Int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
1 CS1253 VISUAL PROGRAMMING UNIT I WINDOWS PROGRAMMING Windows environment – a simple windows program – windows and messages – creating the window – displaying.
Learning to love the Formula Language Try it, you’ll like it! Steve Kern, CLP.
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Several Ways to Print in Windows 98 by Ralph Godinez.
Microsoft Visual Basic 2005 CHAPTER 9 Using Arrays and File Handling.
Prepared by Fareeha Lecturer DCS IIUI 1 Windows API.
Overview of Previous Lesson(s) Over View  Visual C++ provides us with 3 basic ways of creating an interactive Windows application  Using the Windows.
Mobile Computing Lecture#11 Adapters and Dialogs.
Java Programming, Second Edition Chapter Five Input and Selection.
Chapter 1: Hello, MFC Windows Programming Model Department of Digital Contents Sang Il Park.
Lecture Two Event Handling Keyboard and Mouse Input.
Course ILT Excel basics Unit objectives Start Excel; open, save, and create new workbooks; work with multiple workbooks; get help; and close a workbook.
BZUPAGES.COM Visual Programming Lecture – 2 Miss. SADAF MAJEED SIAL Computer Science Department Bahauddin Zakariya University Multan.
Direct3D Workshop November 17, 2005 Workshop by Geoff Cagle Presented by Players 2 Professionals.
BIL528 – Bilgisayar Programlama II Introduction 1.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
GAM666 – Introduction To Game Programming You must use special libraries (aka APIs – application programming interfaces) to make something other than a.
Menu Messages  Besides the all-important WM_COMMAND message, window provides five other messages at various stages of menu selection:  WM_SYSCOMMAND.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
Chapter 8 Dialog Boxes and Property Sheet. 2 Two kinds of dialog boxes Dialog boxes –Modal dialog When appear, it takes all ownership of input. It disables.
Dialog boxes Modal and modeless dialog boxes Displaying about dialog box: case WM_COMMAND : switch (LOWORD (wParam)) { case IDM_APP_ABOUT : DialogBox (hInstance,
GUIs Basic Concepts. GUI GUI : Graphical User Interface Window/Frame : a window on the screen Controls/Widgets : GUI components.
1 UI Alert View iPhone/iPad, iOS Development Tutorial.
Windows Basics Computers 1. Windows Desktop What is the desktop? What is the desktop? –On-screen work area on which windows, icons, menus, and dialog.
Chapter 8 Dialog Boxes and Property Sheet
Copyright © – Curt Hill Building Windows Applications in wxDev-C++
Chapter 7 Controls. List box control 3 List Box Control(1/8) Listbox control: –Display lists of text strings called items –Optionally sort the items.
1 After completing this lesson, you will be able to: Use a Word template. Create a template. Use a wizard to create a document.
Blackboard Equation Editor Quick Tutorial. Inside the Discussion Board reply to a message or start a new thread The following dialogue box appears When.
Creating ActiveX Controls at runtime If you need to create an ActiveX Control at runtime without a resource template entry, follow the programming steps.
Our good old first Win32 programme of lecture 8 #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
W indows Programming Lecture 08. Brief History of Win Windows is announced 1984 Work begins on Word for Windows 1.0 November 1985: Windows 1.0.
ANDROID DIALOGS. Slide 2 Dialogs (Introduction) The Dialog class is the base class for all dialogs A dialog is a small window that prompts the user to.
1 Displaying Dialog Boxes Kashef Mughal. 2 Midterm Stats Here we go  Average was  Low was 116  High was 184  Mid Quarter Grade - check any.
Forms Concepts Triggers Fired when Internal/External events occur
Windows Programming Lecture 11
Windows Programming Lecture 10.
Visual Programming Lecture 1 & 2
Windows Programming Lecture 09.
Windows Programming Model
Creating Web Pages and Graphics
Working with Dialogs and Controls
Lets get on to A+ from Home
Message, Input, Confirm, and Specialized Dialogs
Windows Programming using Dev C++
Predefined Dialog Boxes
Multi-form applications and dialogs
The program in traditional OS
Made by Aistė Augustinaitė Software Engineering 3 group
Lesson Four: Building Custom Patient Lists
Windows Programming Lecture 12
Windows Programming Lecture 13
Message, Input, and Confirm Dialogs
Utilizing Outlook Microsoft® Outlook 2000 Utilizing Outlook .
21-22.
19.
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
Microsoft Windows 7 Basics
Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011
GUI Socket Application
Windows Basics Computers 1.
Presentation transcript:

Dialogs

Types: Modal System modal Non modal (modeless)

MessageBox Four parameters: Parent window handle Message to show Title Flags

Modality MB_APPLMODAL (default) MB_SYSTEMMODAL MB_TASKMODAL

Buttons MB_ABORTRETRYIGNORE MB_CANCELTRYCONTINUE MB_OK MB_OKCANCEL MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL MB_HELP

Icons MB_ICONEXCLAMATION MB_ICONWARNING MB_ICONINFORMATION MB_ICONASTERISK MB_ICONQUESTION (not recommended) MB_ICONSTOP MB_ICONERROR MB_ICONHAND

Dialog window procedure Differences with window: BOOL instead LRESULT WM_INITDIALOG EndDialog

Modal dialog window After dialog window procedure is defined, dialog window can be created with functions DialogBox or DialogBoxParam. Dialog window has two handles: dialog window itself and parent window’s. DialogBoxParam creates a modal dialog box from a dialog box template resource. It has 5th argument, which is sent to dialog procedure as LPARAM parameter of the WM_INITDIALOG MESSAGE.

Indirect dialog window Functions DialogBoxIndirect or DialogBoxIndirectParam creates a modal box from a dialog box template DLGTEMPLATE(EX) structure DLGITEMTEMPLATE(EX) structure let define individual dialog window

DLGTEMPLATE

With class WNDCLASS structure can be used to define dialog: wnd.cbWndWxtra = DLGWINDOWEXTRA; Register as simple window

Message loop IsDialogMessage is function used to modify message loop for modeless (not necessarily) dialog boxes