Download presentation
Presentation is loading. Please wait.
Published byCori McLaughlin Modified over 9 years ago
1
AI/ES (Artificial Intelligence / Expert System) Visual Prolog: Part 1 2012. Fall. SME., Pukyong Nat ’ l Univ. Kim, Minsoo
2
Contents Brief History The IDE - Overview Message Windows
3
Brief History Logic Programming Language: Prolog –1984, Alain Colmerauer –Declarative Programming Language Turbo Prolog for PC –Borland corp. Visual Prolog –PDC: the Prolog Development Company –Object-Oriented, Strongly Typed, GUI and IDE
4
The IDE - Overview VIP v7.3 PE –Task Window, Task Menu –Message Window
5
The IDE - Overview Sample Project –New Project Project Name: ch01p01
6
The IDE - Overview Project Tree –TaskWindow, main.manifest, main.pack
7
The IDE - Overview Build Empty Project –Build Build
8
The IDE - Overview Generated Files –main.cl, main.pro
9
The IDE - Overview Run Empty Project –Build Execute
10
The IDE - Overview Create a Form –Project Tree: highlight root ‘ch01p01’ –File New in Existing Package…
11
The IDE - Overview Form Edit Window –With Controls, Layout, Properties window
12
The IDE - Overview Form Files –*.cl, *.frm, *.i, *.pro
13
The IDE - Overview Enable the Task Menu Option –TaskWindow TaskMenu.mnu
14
The IDE - Overview Save / Build Project Again / Add All
15
The IDE - Overview Run Project Again –[File New] is enabled –Do nothing menu option
16
The IDE - Overview Add Event Listener to menu option –TaskWindow.win Open
17
The IDE - Overview Check the codes –addMenuItemListener / onFileNew
18
The IDE - Overview Change the code for onFileNew –Remove underscore from ‘_Source’ –Remember ending period! Rebuild / Execute Project –File New
19
The IDE - Overview Add Mouse Listener to Form –sampleForm.frm Open Properties/Event
20
The IDE - Overview Change the code for onMouseDown –Remove underscore from ‘_Source’, ‘_Point’ –Case Sensitive! Save, Rebuild and Run
21
Message Windows vpiCommonDialogs class –note/1, note/2 –error/1, error/2 –messageBox/6 –ask/2, ask/3 –getString/3 –listSelect/5 –getFileName/6
22
Message Windows Add new MenuItem to Task Window –TaskMenu.mnu Messages/WriteNote1
23
Message Windows Add Event Listener to menu option –TaskWindow.win id_messages
24
Message Windows Check the codes –onMessagesWritenote1
25
Message Windows Change code (onMessagesWritenote1) Save, Build and Run
26
Message Windows Try note/2 –TaskMenu.mnu Messages/WriteNote2 –TaskWindow.win onMessagesWritenote2 –Change code Save/Build/Execute
27
Message Windows Including class library –TaskWindow.pro Open
28
Message Windows Include vpiCommonDialogs class library Change codes
29
Message Windows Try error/1, error/2 –TaskMenu.mnu Messages/WriteError1,2 –TaskWindow.win onMessagesWriteError1,2 –Change code Save/Build/Execute
30
Message Windows Try messageBox/6 –Title String, Message, Icon(0~3), Buttons(0~5), Default Button(0~2), Suspending(0,1) –Change code Save/Build/Execute
31
Message Windows Try ask/2, ask/3 –(Title String), Question Line, Answer List –Max 3 answers (0~2)
32
Message Windows Try getString/3 –Title String, Question, Preset Answer Try listSelect/5 –Title String, Choice List, Selected Index (0~), Selected String, Selected Index
33
Message Windows Try getFileName/6 –Preset File Extension, List of File Filters (Pairs), Title String, Special Windows Properties List, Open Folder, Selected Files List
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.