Windows Controls & Concepts

Slides:



Advertisements
Similar presentations
An Introduction to Visual Basic Terms & Concepts.
Advertisements

Information System Design Lab 5&6. User Interface Design.
Migrating to GUI Conference Migrating to GUI How do you get there from here?
Lab 5 Signal Analyzer/Generator. Introduction  Create a client MFC application that samples a signal and displays wave using Windows GDI, Open GL, or.
.NET Class 4 – Windows-based Application. WinForm Application Homogeny programming model. Rich class library Classes are shared by all.NET languages.
Simple Gui in C++. Project Selecting So Far Registering the window class Creating the window.
First Windows Program Hello Windows. 2 HELLOWIN.C #include LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ; int WINAPI WinMain (HINSTANCE hInstance,
Chapter 4: Working with Windows Types of Windows –Program Windows –Message Boxes –Dialog Boxes Elements of a Window –Window Panes –Scroll Bars –Menus –Tool.
Visual Basic.net IDE. Integrated Development Environment.
Graphics and Multimedia. Introduction The language contains many sophisticated drawing capabilities as part of namespace System.Drawing and the other.
MFC Workshop: Intro to MFC. What is MFC? Microsoft Foundation Classes C++ wrappers to the Windows SDK An application framework A useful set of extensions.
GVE, Hallym University, Song, Chang Geun, Ph.D. 컴퓨터 그래픽스 응용 한림대학교 컴퓨터공학부 송 창근.
Bertrand Bellenot ROOT Users Workshop Mar ROOT GUI Builder Status & Plans ROOT & External GUI World MFC, FOX, Qt, PVSS… Snapshot of the Future.
Building an MFC Application Using the Wizard. Terms Solution – A container for related projects – An executable or DLL – May be constructed from multiple.
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
Visual C++ Lecture 11 Friday, 29 Aug Windows Graphic User Interface l Event driven programming environment l Windows graphic libraries (X11 on Unix,
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 12 lcdui Rob Pooley
Chapter 1: Hello, MFC Windows Programming Model Department of Digital Contents Sang Il Park.
Chapter 1: Hello, MFC Your first MFC Application Department of Digital Contents Sang Il Park.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 13 lcdui and OXO Rob Pooley
Microsoft Foundation Classes. What is MFC? Set of C++ classes written by MS Simplifies writing complex programs Covers many areas: – GUI – I/O – O/S interfaces.
Objectives of This Session
1 Windows GDI Programming CIS 487/587 Bruce R. Maxim UM-Dearborn.
BZUPAGES.COM Visual Programming Lecture – 6- 7 Miss. SADAF MAJEED SIAL Computer Science Department Bahauddin Zakariya University Multan.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Introduction to Windows Created by Mrs. Leverette.
Presentation Outline Introduction Painting and Repainting GDI.
General features of GUI's Applicable to all methodologies and all platforms: Linux/UNIX Windows Android OS-X.
Chapter2: Drawing a Window. Review: Introducing MFC.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
GUI-Based Programming ECE 417/617: Elements of Software Engineering Stan Birchfield Clemson University.
Chapter2: Drawing a Window
Understand How to Create New Controls and Extend Existing Controls Windows Development Fundamentals LESSON 2.3A.
Graphical User Interface Components Version 1.1. Obectives Students should understand how to use these basic Form components to create a Graphical User.
Introduction to OpenGL
Learning Programming Windows API Morpheus Feb-28, 2008.
ProgrammingLanguages Programming Languages Visual Basic Controls This lesson describes the VB Controls: VB has two types of Controls: Intrinsic Controls.
Drawing in Windows. To help with drawing on the Windows operating system, Microsoft created the Graphical Device Interface, abbreviated as GDI. – It is.
Introduction To GDI GDI Definition : It is a interface present in windows which provide function and related structures that an application can use to.
Windows Programming Lecture 14. WM_PAINT message Whenever an application receives the WM_PAINT message, whether the entire window needs repainting? WM_PAINT.
Introduction to Windows Programming
Microsoft Foundation Classes MFC
Programming windows with MFC Chapter 2 - Drawing in a Window
Presentation Outline Introduction Painting and Repainting GDI.
Computing with C# and the .NET Framework
Introduction to Computer CC111
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Microsoft Office 2007 MS-Word.
Aspect-Oriented Programming
Graphics and Multimedia
Introduction to Windows Programming with Microsoft Framework Classes (MFC) Jim Fawcett Summer 2004 Syracuse University.
An Introduction to Visual Basic
VB 6.0.
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
Queued and Nonqueued Messages
Visual Basic.
Introduction to Computing Using Java
Social Media And Global Computing Introduction to Visual Studio
The University of Texas – Pan American
Windows Programming Lecture 13
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
Visual Studio.
CS 1253 Visual Programming Unit I Windows Environment
Computer Science 111 Fundamentals of Programming I User Interfaces
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
Graphics Laboratory Korea University
Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011
Chapter 14 Drawing in a Window
Presentation transcript:

Windows Controls & Concepts 11/22/2018

Window Controls This is a window button. It is also called a "control". There are MANY different controls in GUI's.

Textbox- scrollable text Listbox- scrollable list Child window controls Button Checkbox Radiobox Label Textbox- scrollable text Listbox- scrollable list ComboBox – selection list Need images to show what they look like © DJ Foreman 11/22/2018

More Child controls Picturebox Horizontal scroll bar Vertical scroll bar © DJ Foreman 11/22/2018

Terms Device Object logical, virtual, or physical device for which a driver handles I/O requests The imaging device is independent of the physical object © DJ Foreman 11/22/2018

Terms -2 Device Context (CDC) - A Windows data structure Describes the drawing attributes of a device All drawing calls are through a device-context object encapsulates APIs for drawing lines, shapes, and text allows device-independent drawing in Windows can be used to draw to the screen, to the printer, or to a metafile Device Classes CClientDC Window client area of associated device context object CWindowDC – Accesses the entire screen area of device context object © DJ Foreman 11/22/2018

Menu & toolbars (non-client area) Areas of a window Menu & toolbars (non-client area) Client area © DJ Foreman 11/22/2018

Graphic Device Interface (GDI) Elements GDI - A set of objects and methods for GUI's Windows GDI Object type Represented by an MFC Library Class Derived from CGdiObject (never used explicitly) General concept CDC – class of Device Context Objects Create the CDC object Draw (graphics or text) Destroy the CDC object © DJ Foreman 11/22/2018

Win32API example PAINTSTRUCT ps; // paints client area only HDC hdc; // handle to device context TCHAR greeting[] = _T("DJ says, 'Hello World!'"); switch (message) { // hWnd is arg 1 in the callback parameter list case WM_PAINT: hdc = BeginPaint(hWnd, &ps); TextOut(hdc, 5, 5, greeting, _tcslen(greeting)); EndPaint(hWnd, &ps); break; Case WM_MOVE: Break; } © DJ Foreman 11/22/2018

MFC example void CMainFrame::OnPaint() { } CPaintDC dc(this);// "this" is handle to current window dc.TextOut(mPt.x, mPt.y, mStr); // no dereferencing of ptr dc } void CMainFrame::OnMove(int x, int y)Cstring { greeting="Hello World"; CDC* dc; // create a device context object dc = GetDC(); // get the context OnPaint created // now put some text in the client area (*dc).TextOut (x-pos, y-pos, greeting); // note de-referencing © DJ Foreman 11/22/2018