Microsoft PowerPoint - 02-GUI Basics.pptx

Similar documents
Microsoft PowerPoint - 03-Points.pptx

Microsoft PowerPoint - 06-Body Data Class.pptx

PowerPoint Template

Microsoft PowerPoint - 07-Data Manipulation.pptx

ๆญฏMDI.PDF

iii. Design Tab ์„ Click ํ•˜์—ฌ WindowBuilder ๊ฐ€์ž๋™์œผ๋กœ์ƒ์„ฑํ•œ GUI ํ”„๋กœ๊ทธ๋ž˜๋ฐํ™˜๊ฒฝ์„ํ™•์ธํ•œ๋‹ค.

Microsoft PowerPoint - 09-Object Oriented Programming-3.pptx

Orcad Capture 9.x

์œˆ๋„์šฐ์‹œ์Šคํ…œํ”„๋กœ๊ทธ๋ž˜๋ฐ

DocsPin_Korean.pages

์Šฌ๋ผ์ด๋“œ 1

Dialog Box ์‹คํ–‰ํŒŒ์ผ์„ Web์— ํฌํ•จ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•

UNIST_๊ต์› ํ™ˆํŽ˜์ด์ง€ ๊ด€๋ฆฌ์ž_Manual_V1.0

Interstage5 SOAP์„œ๋น„์Šค ์„ค์ • ๊ฐ€์ด๋“œ

์œˆ๋„์šฐ์‹œ์Šคํ…œํ”„๋กœ๊ทธ๋ž˜๋ฐ

var answer = confirm(" ํ™•์ธ์ด๋‚˜์ทจ์†Œ๋ฅผ๋ˆ„๋ฅด์„ธ์š”."); // ํ™•์ธ์ฐฝ์€์‚ฌ์šฉ์ž์˜์˜์‚ฌ๋ฅผ๋ฌป๋Š”๋ฐ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. if(answer == true){ document.write(" ํ™•์ธ์„๋ˆŒ๋ €์Šต๋‹ˆ๋‹ค."); else { document.write(" ์ทจ์†Œ๋ฅผ๋ˆŒ๋ €์Šต๋‹ˆ๋‹ค.");

Microsoft Word - ntasFrameBuilderInstallGuide2.5.doc

์Šฌ๋ผ์ด๋“œ 1

MAX+plus II Getting Started - ๋ฌด์ž‘์ •๋”ฐ๋ผํ•˜๊ธฐ

์Šฌ๋ผ์ด๋“œ 1

Microsoft PowerPoint - 12-Custom Classes.pptx

MPLAB C18 C

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

๊ฒŒ์ž„ ๊ธฐํš์„œ ํ‘œ์ค€์–‘์‹ ์—ฐ๊ตฌ๋ณด๊ณ ์„œ

์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ C++

์œˆ๋„์šฐ์‹œ์Šคํ…œํ”„๋กœ๊ทธ๋ž˜๋ฐ

Chapter 1

API - Notification ๋ฉ”ํฌ๋กœ๋ฅผํ†ตํ•˜์—ฌ์–ด๋ŠํŠน์ •์ƒํ™ฉ์ด๋˜์—ˆ์„๋•Œ SolidWorks ๋ฐ๋ณด๋‚ธ๊ฒฝ๋กœ๋ฅผํ†ตํ•˜์—ฌ์•Œ๋ฆผ๋ฉ”์‹œ์ง€๋ฅผ๋ณด๋‚ผ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ๊ธฐ์ˆ ์ž๋ฃŒ์—์„œ๋Š”๋ฉ”ํฌ๋กœ์—์„œ์ด๋ฒคํŠธ์ฒ˜๋ฆฌ๊ธฐ๋ฅผํ†ตํ•˜์—ฌ์ง„ํ–‰ํ• ์˜ˆ์ •์ด๋ฉฐ, ๋ฉ”ํฌ๋กœ์—์„œ์ž‘์—…์„์ˆ˜ํ–‰ํ•˜๋Š”๋ฐ์œ ์šฉํ• ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์•Œ๋ฆผ์ด๋ฒคํŠธํ•ธ๋“ค๋Ÿฌ๋Š”์‘์šฉํ”„๋กœ๊ทธ๋žจ๊ตฌํ˜„ํ•˜๋Š”๋ฐ์žˆ์–ด

Eclipse ์™€ Firefox ๋ฅผ์ด์šฉํ•œ Javascript ๊ฐœ๋ฐœ ๋ฐœํ‘œ์ž : ๋ฌธ๊ฒฝ๋Œ€ 11 ๋…„ 10 ์›” 26 ์ผ์ˆ˜์š”์ผ

CD-RW_Advanced.PDF

Javascript

EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :

Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer

์ œ์ด์ฟผ๋ฆฌ (JQuery) ์ •์˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธํ•จ์ˆ˜๋ฅผ์‰ฝ๊ฒŒ์‚ฌ์šฉํ•˜๊ธฐ์œ„ํ•ด๋งŒ๋“ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ. ์›นํŽ˜์ด์ง€๋ฅผ์ฆ‰์„์—์„œ๋ณ€๊ฒฝํ•˜๋Š”๊ธฐ๋Šฅ์—ํŠนํ™”๋œ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ. ์‚ฌ์šฉ๋ฒ• $( ์ œ์ด์ฟผ๋ฆฌ๊ฐ์ฒด ) ํ˜น์€ $( ์—˜๋ฆฌ๋จผํŠธ ) ์ฐธ๊ณ  ) $() ์ด๊ธฐํ˜ธ๋ฅผ์ œ์ด์ฟผ๋ฆฌ๋ž˜ํผ๋ผ๊ณ ํ•œ๋‹ค. ์ฆ‰, ์ œ์ด์ฟผ๋ฆฌ๋ฅผํ˜ธ์ถœํ•˜๋Š”๊ธฐํ˜ธ

DE1-SoC Board

MVVM ํŒจํ„ด์˜ ์ดํ•ด

์Šฌ๋ผ์ด๋“œ 1

10X56_NWG_KOR.indd

[ ๊ทธ๋ฆผ 8-1] XML ์„์ด์šฉํ•œ์˜ต์…˜๋ฉ”๋‰ด์„ค์ •๋ฐฉ๋ฒ• <menu> <item ํ•ญ๋ชฉID" android:title=" ํ•ญ๋ชฉ์ œ๋ชฉ "/> </menu> public boolean oncreateoptionsmenu(menu menu) { getme

8 ์žฅ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค 8.1 ๊ธฐ๋ณธ๊ฐœ๋… - ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค : ๋ฐ์ดํ„ฐ๋ฅผ์กฐ์ง์ ์œผ๋กœ๊ตฌ์กฐํ™”ํ•œ์ง‘ํ•ฉ (cf. ์—‘์…€ํŒŒ์ผ ) - ํ…Œ์ด๋ธ” : ๋ฐ์ดํ„ฐ์˜๊ธฐ๋กํ˜•์‹ (cf. ์—‘์…€์‹œํŠธ์˜์ฒซ์ค„ ) - ํ•„๋“œ : ๊ฐ™์€์ข…๋ฅ˜์˜๋ฐ์ดํ„ฐ (cf. ์—‘์…€์‹œํŠธ์˜๊ฐ์นธ ) - ๋ ˆ์ฝ”๋“œ : ๋ฐ์ดํ„ฐ๋‚ด์šฉ (cf. ์—‘์…€์‹œํŠธ์˜ํ•œ์ค„ )

1

PCServerMgmt7

Microsoft PowerPoint Android-SDK์„ค์น˜.HelloAndroid(1.0h).pptx

C. KHU-EE xmega Board ์—์„œ๋Š” Button ์„ 2 ๊ฐœ๋งŒ์‚ฌ์šฉํ•˜๊ธฐ๋•Œ๋ฌธ์— GPIO_PUSH_BUTTON_2 ๊ณผ GPIO_PUSH_BUTTON_3 define ์„ Comment ์ฒ˜๋ฆฌ ํ•œ๋‹ค. D. AT45DBX ๋„์‚ฌ์šฉํ•˜์ง€์•Š๊ธฐ๋•Œ๋ฌธ์— Comment ์ฒ˜๋ฆฌํ•œ๋‹ค. E.

4S 1์ฐจ๋…„๋„ ํ‰๊ฐ€ ๋ฐœํ‘œ์ž๋ฃŒ

Microsoft PowerPoint - 04-Lines.pptx

BMP ํŒŒ์ผ ์ฒ˜๋ฆฌ

Microsoft PowerPoint - Java7.pptx

SQL Developer Connect to TimesTen ์œ ๋‹ˆ์›์•„์ด์•ค์”จ DB ๊ธฐ์ˆ ์ง€์›ํŒ€ 2010 ๋…„ 07 ์›” 28 ์ผ ๋ฌธ์„œ์ •๋ณด ํ”„๋กœ์ ํŠธ๋ช… SQL Developer Connect to TimesTen ์„œ๋ธŒ์‹œ์Šคํ…œ๋ช… ๋ฒ„์ „ 1.0 ๋ฌธ์„œ๋ช… ์ž‘์„ฑ์ผ ์ž‘์„ฑ์ž

untitled

Solaris Express Developer Edition

1

NTD36HD Manual

Database Design Lab: MS Access Queries 1. Download lab6.accdb and rename it to lab7.accdb. 2. ์ด๋ฆ„ ๊ฐ’์„๊ฐ€์ง€๋Š”์ฟผ๋ฆฌ qryauthor ๋ฅผ๋งŒ๋“ ๋‹ค a) Open lab6.accdb. b) ๋ฆฌ๋ณธ๋ฉ”๋‰ด ๋งŒ๋“ค

์Šฌ๋ผ์ด๋“œ 1

์–ด๋Œ‘ํ„ฐ๋ทฐ

์†Œํ”„ํŠธ์›จ์–ด๊ณตํ•™ Tutorial #2: StarUML Eun Man Choi

Network Security - Wired Sniffing ์‹ค์Šต ICNS Lab. Kyung Hee University

APOGEE Insight_KR_Base_3P11

1

C# Programming Guide - Types

Mentor_PCB์„ค๊ณ„์ž…๋ฌธ

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ADO 21์ผ ์™„์„ฑ

01์žฅ

Studuino์†Œํ”„ํŠธ์›จ์–ด ์„ค์น˜

LCD Display

์„œํ˜„์ˆ˜

Facebook API

Remote UI Guide

ISP and CodeVisionAVR C Compiler.hwp

chapter4

Microsoft PowerPoint SDK์„ค์น˜.HelloAndroid(1.5h).pptx

Microsoft Word - [2017SMA][T8]OOPT_Stage_2040 ver2.docx

์ž‘๋™ ์›๋ฆฌ


PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

Microsoft PowerPoint - 06-Pointer and Memory.pptx

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

UI VoC Process ์•ˆ

Visual Basic ๋ฐ˜๋ณต๋ฌธ

<4D F736F F F696E74202D20B8AEB4AABDBA20BFC0B7F920C3B3B8AEC7CFB1E22E BC8A3C8AF20B8F0B5E55D>

Install stm32cubemx and st-link utility

Convenience Timetable Design

02 C h a p t e r Java

PowerPoint Template

์œˆ๋„์šฐ์‹œ์Šคํ…œํ”„๋กœ๊ทธ๋ž˜๋ฐ

untitled

Microsoft PowerPoint - 11์ฃผ์ฐจ_Android_GoogleMap.ppt [ํ˜ธํ™˜ ๋ชจ๋“œ]


์ œ8์žฅ ์ž๋ฐ” GUI ํ”„๋กœ๊ทธ๋ž˜๋ฐ II

Microsoft Word - 3๋ถ€A windows ํ™˜๊ฒฝ IVF + visual studio.doc

01-OOPConcepts(2).PDF

์Šฌ๋ผ์ด๋“œ 1

09-interface.key

Microsoft PowerPoint - chap02-Cํ”„๋กœ๊ทธ๋žจ์‹œ์ž‘ํ•˜๊ธฐ.pptx

Windows Embedded Compact 2013 [๊ทธ๋ฆผ 1]์€ Windows CE ๋กœ ์•Œ๋ ค์ง„ Microsoft์˜ Windows Embedded Compact OS์˜ history๋ฅผ ๋ณด์—ฌ์ฃผ๊ณ  ์žˆ๋‹ค. [ํ‘œ 1] ์€ ๊ฐ Windows CE ๋ฒ„์ „๋“ค์˜ ์ฃผ์š” ํŠน์ง•๋“ค์„ ๋‹ด๊ณ 

์Šฌ๋ผ์ด๋“œ 1

USER GUIDE

Transcription:

Development of Fashion CAD System 2. GUI Basics Sungmin Kim SEOUL NATIONAL UNIVERSITY GUI GUI (Graphical User Interface) Definition ํ™”๋ฉด์ƒ์˜ ๋ฌผ์ฒด, ํ‹€, ์ƒ‰์ƒ๊ณผ ๊ฐ™์€ ๊ทธ๋ž˜ํ”ฝ ์š”์†Œ๋“ค์„ ์‚ฌ์šฉํ•œ ์ปดํ“จํ„ฐ ์ธํ„ฐํŽ˜์ด์Šค 2์ฐจ์›์ด๋‚˜ 3์ฐจ์› ๊ฐ€์ƒ ๊ณต๊ฐ„์—์„œ ๊ธฐ๋Šฅ์„ ์€์œ ์ /๋Œ€ํ‘œ์ ์œผ๋กœ ๋‚˜ํƒ€๋‚ด๋Š” ๊ทธ๋ž˜ํ”ฝ์œผ๋กœ ๊ตฌ์„ฑ X์ž์™€ ๊ฐ™์€ ํ˜•ํƒœ์˜ ๊ทธ๋ž˜ํ”ฝ ์š”์†Œ๋Š” ์‚ญ์ œ๋‚˜ ์ทจ์†Œ๋ฅผ ์˜๋ฏธ ํŒŒ์ผ์„ ๋‚˜ํƒ€๋‚ด๋Š” ์•„์ด์ฝ˜์„ ์ด๋™ํ•˜๋ฉด ๋ณต์‚ฌ CUI (Command line User Interface) ์— ๋น„ํ•ด ์ง๊ด€์  2

GUI GUI (Graphical User Interface) History 1963 ์ด๋ฐ˜์„œ๋œ๋žœ๋“œ์Šค์ผ€์น˜ํŒจ๋“œ CAD ์†Œํ”„ํŠธ์›จ์–ด์˜์กฐ์ƒ์ตœ์ดˆ๋กœ์™„์ „ํ•œ GUI ๋ฅผ๊ตฌํ˜„ 1973 ์ œ๋ก์Šค์•Œํ† ์ปดํ“จํ„ฐ GUI ๋ฅผ์‚ฌ์šฉํ•˜๋Š”์ตœ์ดˆ์˜์ปดํ“จํ„ฐ ( ๋งˆ์šฐ์Šค, ํ‚ค๋ณด๋“œ๋ฅผ์‚ฌ์šฉ ) 1983 ์• ํ”Œ LISA ์ œ๋ก์Šค์˜ GUI ๊ธฐ๋ฐ˜, ์ƒ์—…์ ์œผ๋กœ์‹คํŒจ 1984 ์• ํ”Œ๋งคํ‚จํ† ์‹œ์ƒ์—…์ ์ธ์„ฑ๊ณต 1984 IBM/MIT/DEC X-Window Unix, Linux ์šฉ GUI 1995 ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ Windows 95 ๋ณธ๊ฒฉ์ ์ธ๊ทธ๋ž˜ํ”ฝ์‚ฌ์šฉ์ž์ธํ„ฐํŽ˜์ด์Šค์˜๋Œ€์ค‘ํ™” 3 GUI Document-View Structure Components Document View Advantages Types ํ”„๋กœ๊ทธ๋žจ์—์„œ์‚ฌ์šฉํ•˜๋Š”๋ฐ์ดํ„ฐ๋ฅผ๊ด€๋ฆฌํ•˜๊ณ ์ฒ˜๋ฆฌํ•˜๋Š”์ž‘์—…์„๋‹ด๋‹นํ•˜๋Š”๊ฐ์ฒด ํŒŒ์ผ์ž…์ถœ๋ ฅ๋ฐ์ž๋ฃŒ์ •์˜, ์ฒ˜๋ฆฌ๋“ฑ์„์ˆ˜ํ–‰ Document ์˜์ž๋ฃŒ๋ฅผ์ถœ๋ ฅํ•ด์‚ฌ์šฉ์ž๊ฐ€๋ณผ์ˆ˜์žˆ๋„๋กํ•˜๋Š”๊ฐ์ฒด ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ์ž๋ฃŒ๋‚˜๋ช…๋ น์„๋ฐ›์•„๋ฌธ์„œ์˜๋‚ด์šฉ์„ํŽธ์ง‘ ์ž๋ฃŒ์™€ํ‘œํ˜„์˜๋ถ„๋ฆฌ๋กœ๋ชจ๋“ˆํ™”๊ฐ€๋Šฅ ๊ฐœ๋ฐœํ”„๋กœ์„ธ์Šค์˜๋‹จ์ˆœํ™” SDI (Single Document Interface) MDI (Multiple Document Interface) 4

SDI SDI Application Document-View Type C++ Builder Application ์˜์ „ํ˜•์ ์ธ๊ตฌ์กฐ Form Unit Form Unit Project Dialog Unit Dialog Unit Document Unit Document Unit 5 SDI SDI Application SDI Project ๋งŒ๋“ค๊ธฐ C++ Builder 6๋ฅผ์—ด๊ณ  File-Close All ๋ฉ”๋‰ด๋กœ์—ด๋ ค์žˆ๋Š”ํ”„๋กœ์ ํŠธ๋ฅผ๋‹ซ์Œ File-New-Application ๋ฉ”๋‰ด๋กœ์ƒˆํ”„๋กœ์ ํŠธ๋ฅผ์‹œ์ž‘ File-Save Project As ๋ฉ”๋‰ด๋กœํ”„๋กœ์ ํŠธ๋ฅผ์ €์žฅ ํŒŒ์ผ์ €์žฅ์‹œ C++ Builder project ๋ฅผ์ €์žฅํ•˜๋Š”ํด๋”๋ฅผ๋”ฐ๋กœ๋งŒ๋“œ๋Š”๊ฒƒ์ด๋ฐ”๋žŒ์งํ•จ ๋ชฉํ‘œ๋กœํ•˜๋Š”์‹คํ–‰ํŒŒ์ผ (exe) ์ด๋ฆ„๊ณผ๋™์ผํ•œํด๋”๋ฅผ๋งŒ๋“ค๊ธฐ» ์‹คํ–‰ํŒŒ์ผ์ด SDITest.exe ์ธ๊ฒฝ์šฐ D:\C++ Builder Projects\SDITest ์™€๊ฐ™์ด๋งŒ๋“ฆ ์ฒซ๋ฒˆ์งธ์ €์žฅ๋‹ค์ด์–ผ๋กœ๊ทธ๋Š” unit ์˜์ €์žฅ» SDI ์˜ main form ์ด๋ ์œ ๋‹›์ด๋ฏ€๋กœ TMainForm.cpp ๋ผ๋Š”์ด๋ฆ„์œผ๋กœ์ €์žฅ ๋‘๋ฒˆ์งธ์ €์žฅ๋‹ค์ด์–ผ๋กœ๊ทธ๋Š” project ์˜์ €์žฅ» ์‹คํ–‰ํŒŒ์ผ์˜์ด๋ฆ„์ด๋ ๊ฒƒ์ด๋ฏ€๋กœ SDITest.bpr ์ด๋ผ๋Š”์ด๋ฆ„์œผ๋กœ์ €์žฅ F9 ๋ฅผ๋ˆŒ๋Ÿฌ์‹คํ–‰ View-Project Manager 6

SDI SDI Application SDI Project ๋งŒ๋“ค๊ธฐ ์ „์ฒดํ™˜๊ฒฝ์„ค์ • Tools-Environment options ๋ฉ”๋‰ด๋กœํ™˜๊ฒฝ์„ค์ •์ฐฝ์„์—ฐ๋‹ค Autosave options ์˜ Editor Files ์™€ Project desktop ์—์ฒดํฌํ•œ๋‹ค Project ์†์„ฑ์„ค์ • Project-Options ๋ฉ”๋‰ด๋กœ project option ์„ค์ •์ฐฝ์„์—ฐ๋‹ค Linker tab ์—์„œ Use Dynamic RTL ์˜์ฒดํฌ๋ฅผํ•ด์ œํ•œ๋‹ค Package tab ์—์„œ Build with runtime packages ์˜์ฒดํฌ๋ฅผํ•ด์ œ Application tab ์—์„œ title ์„ SDI Test ๋กœ์ž…๋ ฅํ•œ๋‹ค 7 SDI SDI Application SDI Project ๋งŒ๋“ค๊ธฐ Unit ์ˆ˜์ •ํ•˜๊ธฐ Project Manager ์—์„œ TMainForm.cpp ๋ฅผ๋”๋ธ”ํด๋ฆญํ•ด์„œ์ฐฝ์„๋ถˆ๋Ÿฌ์˜ด F12 ํ‚ค๋ฅผ๋ˆŒ๋Ÿฌ๋””์ž์ธ๊ณผ์†Œ์Šค์ฝ”๋“œ์‚ฌ์ด๋ฅผ์˜ค๊ฐˆ์ˆ˜์žˆ์Œ ์†Œ์Šค์ฝ”๋“œ์ฐฝ์˜์•„๋ž˜์ชฝํƒญ์—์„œ์†Œ์ŠคํŒŒ์ผ๊ณผํ—ค๋”ํŒŒ์ผ์„์„ ํƒํ• ์ˆ˜์žˆ์Œ F12 Source Header 8

SDI SDI Application SDI Project ๋งŒ๋“ค๊ธฐ Form ์˜์†์„ฑ๋ณ€๊ฒฝ F11 ํ‚ค๋ฅผ๋ˆŒ๋Ÿฌ form ์˜์†์„ฑ (property) ์„ค์ •์ฐฝ (object inspector) ์„์—ฐ๋‹ค Properties ํƒญ์—์„œ Name-Value ๋กœ์ •์˜๋œ๊ฐ’์„์ˆ˜์ •ํ•˜๋ฉด form ์˜์†์„ฑ์„๋ฐ”๊ฟ€์ˆ˜์žˆ๋‹ค Caption SDI Application Test Name MainForm WindowState wsmaximized 9 SDI SDI Application SDI Project ๋งŒ๋“ค๊ธฐ ํ”„๋กœ๊ทธ๋žจ์ข…๋ฃŒ์„ค์ • ํ”„๋กœ๊ทธ๋žจ์ข…๋ฃŒ์ด๋ฒคํŠธ๋ฅผ๋ฐ›์•˜์„๋•Œ๋™์ž‘์„ค์ • Object inspector ์˜ Event ํƒญ์—์„œ OnClose ๋ฅผ๋”๋ธ”ํด๋ฆญ TChildForm.cpp ์— event handler ์†Œ์Šค์ฝ”๋“œ๊ฐ€์ž๋™์ƒ์„ฑ ๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ User Interaction O/S Event Notification App App Event Notification 10

MDI MDI Project ๋งŒ๋“ค๊ธฐ File-Close All ๋ฉ”๋‰ด๋กœ์—ด๋ ค์žˆ๋Š”ํ”„๋กœ์ ํŠธ๋ฅผ๋‹ซ์Œ File-New-Application ๋ฉ”๋‰ด๋กœ์ƒˆํ”„๋กœ์ ํŠธ๋ฅผ์‹œ์ž‘ File-Save Project As ๋ฉ”๋‰ด๋กœํ”„๋กœ์ ํŠธ๋ฅผ์ €์žฅ ํด๋”๋Š” D:\C++ Builder Projects\MDITest ์™€๊ฐ™์ด๋งŒ๋“ฆ MDI ์˜ main form ์ด๋ ์œ ๋‹›์€ TMainForm.cpp ๋ผ๋Š”์ด๋ฆ„์œผ๋กœ์ €์žฅ ํ”„๋กœ์ ํŠธ๋Š” MDI Test.bpr ๋กœ์ €์žฅ ํ”„๋กœ์ ํŠธ์†์„ฑ์„ค์ • SDI ์™€๋™์ผํ•˜๊ฒŒ linker, packages ํƒญ๋“ฑ์˜์†์„ฑ์„์„ค์ • Application tab ์˜ title ์€ MDI Test๋กœ 11 MDI MDI Project ๋งŒ๋“ค๊ธฐ TMainForm ์˜์†์„ฑ์„ค์ • Caption Test Color clappworkspace FormStyle fsmdiform Name MainForm WindowState wsmaximized TChildForm ์˜์ถ”๊ฐ€ File-New-Form ๋ฉ”๋‰ด๋กœ์ƒˆ๋กœ์šดํผ์„์ž‘์„ฑ TChildForm์˜์†์„ฑ์„ค์ •» Caption ( ๊ณต๋ฐฑ )» FormStyle fsmdichild» Name ChildForm TChildForm.cpp ๋กœ์ €์žฅ 12

MDI Child Form ์„ค์ • Project-Options ๋ฉ”๋‰ด๋กœ์„ค์ •์ฐฝ์„๋ถˆ๋Ÿฌ์˜ด Forms ํƒญ์—์„œ Auto-create forms์˜ ChildForm ์„์˜ค๋ฅธ์ชฝ Available forms ๋กœ์ด๋™ TChildForm.cpp ์™€ TChildForm.h ์—์„œ๊ฐ๊ฐ๋‹ค์Œ๋ผ์ธ์„์‚ญ์ œ OnClose ์ด๋ฒคํŠธํ•ธ๋“ค๋Ÿฌ์ž‘์„ฑ (SDI ์™€๋™์ผ ) 13 MDI Main Form ์ˆ˜์ • TMainForm.h ์—๋‹ค์Œํ–‰์„์ถ”๊ฐ€ Standard component ์—์„œ๋ฉ”๋‰ด component ๋ฅผ MainForm ์œ„์—์˜ฌ๋ ค๋†“๊ณ ๋”๋ธ”ํด๋ฆญํ•ด์„œํŽธ์ง‘ 14

MDI Child Form ์ถ”๊ฐ€๋ฉ”๋‰ด์„ค์ • New Window ๋ฅผ๋”๋ธ”ํด๋ฆญ TMainForm.cpp ์—๋ฉ”๋‰ดํด๋ฆญ์ด๋ฒคํŠธํ•ธ๋“ค๋Ÿฌ์†Œ์Šค๊ฐ€์ƒ์„ฑ๋จ ๋‹ค์Œ๊ณผ๊ฐ™์ด child form ์„์—ฌ๋Š”์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ 15 MDI MainForm ์˜ OnClose Event ์ž‘์„ฑ SDI ์™€๋™์ผํ•˜๊ฒŒ์ž‘์„ฑ FormClose ์ด๋ฒคํŠธํ•ธ๋“ค๋Ÿฌ์— Action=caFree; ์ž‘์„ฑ 16

MDI Window ๊ด€๋ฆฌ๋ฉ”๋‰ด์ถ”๊ฐ€ MainForm ์˜๋ฉ”๋‰ด๋ฅผ๋”๋ธ”ํด๋ฆญํ•ด์„œ์—ด๊ณ ์šฐ์ธก๊ณผ๊ฐ™์ด์ˆ˜์ • ์ด๋•Œ๊ฐ๋ฉ”๋‰ด์•„์ดํ…œ์˜ GroupIndex ๋ฅผ 10 ์ •๋„๋กœ์„ค์ • ๊ฐ๊ฐ์˜๋ฉ”๋‰ด์•„์ดํ…œ์„์„ ํƒํ•˜๊ณ ๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ 17 MDI Window ๊ด€๋ฆฌ๋ฉ”๋‰ด์ถ”๊ฐ€ MainForm ์˜ object inspector ์—์„œ WindowMenu ๋ฅผ Window1๋กœ์„ค์ • ChildForm ์˜๋ฉ”๋‰ด์„ค์ • ChildForm ์— standard component ์˜ Menu component๋ฅผ์˜ฌ๋ ค๋†“๊ณ ๋‹ค์Œ๊ณผ๊ฐ™์ด์ˆ˜์ • ์ด๋•Œ Edit ๋ฉ”๋‰ด์˜ GroupIndex ๋Š” 1๋กœ์„ค์ • 18

MDI 19 Project Group Project Group Management ์—ฌ๋Ÿฌ๊ฐœ์˜ํ”„๋กœ์ ํŠธ๋ฅผ๊ทธ๋ฃน์œผ๋กœ๋ฌถ์–ด์„œ๊ด€๋ฆฌ๊ฐ€๋Šฅ Project Manager ์ฐฝ์—์„œ Project Group ์„์˜ค๋ฅธ์ชฝํด๋ฆญ Add Existing Project ๋ฉ”๋‰ด๋ฅผ์„ ํƒํ•œ๋‹ค์Œ SDITest.bpr ์„์ถ”๊ฐ€ File-Save All ๋ฉ”๋‰ด๋กœ Group ์„์ €์žฅ (TestApps ๋“ฑ์˜์ด๋ฆ„์œผ๋กœ ) 20

VCL VCL (Visual Component Library) ๊ฐœ์š” Borland ( ํ˜„ Embarcadero) ์—์„œ Delphi์™€ C++ Builder ๋ฅผ์œ„ํ•ด๊ฐœ๋ฐœ RAD (Rapid Application Development) ๋„๊ตฌ Property ์™€ Event Handler ๋กœ๊ตฌ์„ฑ Component ์˜์กฐํ•ฉ๋งŒ์œผ๋กœ๋ณต์žกํ•œ GUI ๊ตฌ์„ฑ์ด๊ฐ€๋Šฅ ๊ตฌ์„ฑ์š”์†Œ ์œˆ๋„์šฐ์ฐฝ (TForm class) ํ‘œ์ค€์ปจํŠธ๋กค (TButton, TCheckBox, TLabel, TComboBox ๋“ฑ ) ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์•ก์„ธ์Šค (ADO, Active Database Object) ์ธํ„ฐ๋„ท์—ฐ๊ฒฐ (Indy) ๊ธฐํƒ€๋ฌด์ˆ˜ํ•œ third-party components JEDI, TMS, TurboPower, IOComp, SDL, DA-SOFT... 21 VCL VCL ์˜๊ธฐ๋ณธ์ ์ธ์‚ฌ์šฉ๋ฒ• SDI Test ํ”„๋กœ์ ํŠธ๋ฅผํ™œ์šฉ MainForm ์˜ WindowState property ๋ฅผ wsnormal ๋กœ์„ค์ • MainForm ์œ„์— TLable, TEdit, TButton, TListBox ์ปจํŠธ๋กค์„์˜ฌ๋ ค๋†“๊ณ  property ๋ฅผ์ˆ˜์ • TLabel Caption=Text TButton Caption=Add TEdit Name=TEXT Text=empty TListBox Name=LIST TButton Caption=Clear 22

VCL VCL ์˜๊ธฐ๋ณธ์ ์ธ์‚ฌ์šฉ๋ฒ• ๊ตฌํ˜„๋ชฉํ‘œ Edit box ์—๋‚ด์šฉ์„์ž…๋ ฅํ•˜๊ณ  Add ๋ฒ„ํŠผ์„๋ˆ„๋ฅด๋ฉด List box ์—์ถ”๊ฐ€๋จ Clear ๋ฒ„ํŠผ์„๋ˆ„๋ฅด๋ฉด List box ์˜๋‚ด์šฉ์ด์ง€์›Œ์ง ๊ตฌํ˜„๋ฐฉ๋ฒ• 'Add' ๋ฒ„ํŠผ์„์„ ํƒํ•˜๊ณ  object inspector ์˜ event ์—์„œ OnClick ์„๋”๋ธ”ํด๋ฆญ» ์‚ฌ์šฉ์ž๊ฐ€๋ฒ„ํŠผ์„ํด๋ฆญํ–ˆ์„๋•Œ๋ฐœ์ƒํ•˜๋Š” event ์˜ handler ๊ฐ€์ž๋™์œผ๋กœ์ƒ์„ฑ๋จ» Event handler ๋‚ด๋ถ€์—๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ void fastcall TMainForm::Button1Click(TObject *Sender) { LIST->Items->Add(TEXT->Text);» '->' ์—ฐ์‚ฐ์ž๋Š”๊ฐ์ฒด์˜ property ๋‚˜ method ๋ฅผ์ฐธ์กฐ (refer) ํ•˜๊ธฐ์œ„ํ•ด์‚ฌ์šฉ» Items ๋Š” TListBox ๊ฐ์ฒด์˜ property ์ค‘ํ•˜๋‚˜ (List ์—ํ‘œ์‹œํ• ๋ฌธ์ž์—ด๋“ค์˜๋ชจ์Œ )» Add ๋Š” TListBox ๊ฐ์ฒด์˜ method ์ค‘ํ•˜๋‚˜ ( ๋ฆฌ์ŠคํŠธ๋ฐ•์Šค์—์ฃผ์–ด์ง„๋ฌธ์ž์—ด์„๋”ํ•˜๋Š” method)» Text ๋Š” TEdit ๊ฐ์ฒด์˜ property ์ค‘ํ•˜๋‚˜ (Edit ์นธ์—์ž…๋ ฅํ•œ๋ฌธ์ž์—ด์˜๋‚ด์šฉ ) 23 VCL VCL ์˜๊ธฐ๋ณธ์ ์ธ์‚ฌ์šฉ๋ฒ• ๊ตฌํ˜„๋ฐฉ๋ฒ• 'Clear' ๋ฒ„ํŠผ์„์„ ํƒํ•˜๊ณ  object inspector ์˜ event ์—์„œ OnClick ์„๋”๋ธ”ํด๋ฆญ Event handler ๋‚ด๋ถ€์—๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ void fastcall TMainForm::Button2Click(TObject *Sender) { LIST->Items->Clear();» Clear ๋Š” List Box ์˜ Items property ์˜ method» Items ๋Š” List Box ์˜ Property ์ด๋ฉด์„œ๊ฐ์ฒด์ด๋ฏ€๋กœ๋˜๋‹ค์‹œ property ์™€ method ๋ฅผ๊ฐ€์งˆ์ˆ˜์žˆ์Œ 24

VCL VCL ์˜๊ธฐ๋ณธ์ ์ธ์‚ฌ์šฉ๋ฒ• TCheckBox, TRadioButton Checked property ๊ฐ’์ด true/false ๋กœ๋ณ€ํ™” TRadioGroup Radio button ์œผ๋กœ์„ค์ •ํ• ์˜ต์…˜์ด์—ฌ๋Ÿฌ์ข…๋ฅ˜์ธ๊ฒฝ์šฐ์‚ฌ์šฉ TComboBox Edit ์™€ ListBox ๋ฅผ๊ฒฐํ•ฉํ•œํ˜•ํƒœ (Drop down list box) ์ผ๊ด€๋œ์‚ฌ์šฉ๋ฐฉ๋ฒ•์„๋”ฐ๋ฆ„ VCL Object ๋Š” Property ์™€ Method ๋ฅผ๊ฐ€์ง Event Handler ๋ฅผ๊ฐ€์ง€๋Š” VCL ์ด์žˆ์Œ ๋ฒ„ํŠผํด๋ฆญ ๋‚ด์šฉ๋ณ€๊ฒฝ ํƒ€์ด๋จธ์„ค์ • 25 VCL Custom Dialog Box ๋งŒ๋“ค๊ธฐ ๋ชฉํ‘œ Edit, Check Box, Radio Group ์„๊ฐ€์ง€๋Š” dialog box ๋ฅผ๋งŒ๋“ค๊ธฐ ์‚ฌ์šฉ์ž์ž…๋ ฅ์„๋ฐ›์•„์„œํ™”๋ฉด์—ํ‘œ์‹œ ๊ตฌํ˜„๋ฐฉ๋ฒ• File-New-Form ์œผ๋กœ Form ์„์ถ”๊ฐ€ ๋‹ค์Œ๊ณผ๊ฐ™์ด property ๋ฅผ๋ณ€๊ฒฝ» BorderIcons bisystemmenu, biminimize, bimaximize, bihelp ๋ชจ๋‘ false» BorderStyle bsdialog» Caption User Input» Name UserInputDialog» Position poscreencenter 26

VCL Custom Dialog Box ๋งŒ๋“ค๊ธฐ ๋‹ค์Œ๊ณผ๊ฐ™์ด control ์„๋ฐฐ์น˜ํ•˜๊ณ  property ๋ฅผ์ˆ˜์ • Name=NAME Name=MEMBER Name=Interest Items=Music, History, Science, Literature ItemIndex=0 27 VCL Custom Dialog Box ๋งŒ๋“ค๊ธฐ 'Ok' ์™€ 'Cancel' ๋ฒ„ํŠผ์„๋”๋ธ”ํด๋ฆญํ•ด์„œ๊ฐ๊ฐ event handler ๋ฅผ๋งŒ๋“ค๊ณ ๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ž…๋ ฅ void fastcall TUserInputDialog::Button1Click(TObject *Sender) { Result=1; Close(); void fastcall TUserInputDialog::Button2Click(TObject *Sender) { Result=0; Close(); TUserInputDialog.h ํŒŒ์ผ์—๋‹ค์Œ์ฝ”๋“œ๋ฅผ์ถ”๊ฐ€ public: // User declarations fastcall TUserInputDialog(TComponent* Owner); ; int Result; 28

VCL Custom Dialog Box ๋งŒ๋“ค๊ธฐ TMainForm.cpp ํŒŒ์ผ์— header ํŒŒ์ผ์„์ถ”๊ฐ€ Main Form ์— 'Open' ๋ฒ„ํŠผ์„ํ•˜๋‚˜์ถ”๊ฐ€ Open ๋ฒ„ํŠผ์˜ OnClik event handler ๋ฅผ์ž‘์„ฑ #pragma hdrstop #include "TMainForm.h" #include "TUserInputDialog.h" void fastcall TMainForm::Button3Click(TObject *Sender) { UserInputDialog->ShowModal(); if (UserInputDialog->Result==1){ LIST->Items->Add(UserInputDialog->NAME->Text); if (UserInputDialog->MEMBER->Checked==true){ LIST->Items->Add("Member"); else{ LIST->Items->Add("None Member"); int n=userinputdialog->interest->itemindex; LIST->Items->Add(UserInputDialog->INTEREST->Items->Strings[n]); LIST->Items->Add("-----"); 29 VCL Custom Dialog Box ๋งŒ๋“ค๊ธฐ Open ์„๋ˆŒ๋Ÿฌ์„œ dialog ๋ฅผ์—ด๊ณ ์ž…๋ ฅํ…Œ์ŠคํŠธ 30