home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' Objects.rlz
- '
- ' Realizer User's Guide Tutorial
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- PROC formprocObjects(params)
- LOCAL s
-
- FormSelect(formObjects)
- SELECT CASE params[_ItemNum]
- CASE 21 'Normal Button
- s = "When you click on a button, usually some action occurs. Often you will"
- s = s + " need to click an OK button to register changes is a form, while a"
- s = s + " CANCEL button will throw out any changes you have made."
- FormModifyObject(200, _Normal, s)
- CASE 22 'DefButton
- s = "A default button has a thicker border than a normal button, and it"
- s = s + " usually indicates what will happen if you hit ENTER on the keyboard."
- FormModifyObject(200, _Normal, s)
- CASE 41, 42, 43 'Check Boxes
- s = "Check boxes indicate a set of options that are either on or off. In this"
- s = s + " example, you can select any, all, or none of the options: bold, italics, or underline."
- FormModifyObject(200, _Normal, s)
- CASE 51, 52, 53 'Option Buttons
- s = "Option buttons indicate a set of options you must choose from."
- s = s + " In many cases only one of the choices may be selected at a"
- s = s + " time, such as temperature in this example."
- FormModifyObject(200, _Normal, s)
- CASE 60 'List Box
- s = "A list box contains a set of choices to choose from. You can scroll"
- s = s + " through them, click on a choice to highlight it, or double click"
- s = s + " a choice to select it."
- FormModifyObject(200, _Normal, s)
- CASE 65 'More list boxes
- FormControl(_Hide)
- FormSelect(formListbox)
- FormControl(_Show)
- CASE 70 'Frame
- s = "Frames work just like sizeable windows. You can move them or change"
- s = s + " their shape."
- FormModifyObject(200, _Normal, s)
- CASE 91 'Bitmap
- s = "Bitmaps are graphic pictures that can be placed anywhere in a form. They "
- s = s + "are created with any drawing or paint program."
- FormModifyObject(200, _Normal, s)
- CASE 92 'Bitmap button
- s = "Bitmap buttons invert when they are pressed. The user can cancel the "
- s = s + "mouse click by moving off of the bitmap before releasing the mouse button."
- FormModifyObject(200, _Normal, s)
- CASE 190 'Main menu...
- FormControl(_Hide)
- FormSelect(formMain)
- FormControl(_Show)
- END SELECT
- END PROC
-
- names = {"Aquarius", "Aries", "Cancer", "Capricorn", "Gemini", "Libra"}
- names = {names, "Leo", "Pisces", "Sagitarius", "Scorpio", "Taurus", "Virgo"}
-
- formObjects = FormQUnique
- FormNew(formObjects; "Interface Controls", _Title + _Minimize + _ContextEnter + _HotClick)
- FormControl(_Size; 1 pct, 1 pct, 98 pct, 98 pct)
- FormSetObject(10, _CaptionCenter, "Interface Controls", fontTitle, 0 pct, 2 pct, 100 pct, _Default)
-
- FormSetObject(20, _GroupBox, "Buttons", 3 pct, 10 pct, 22 pct, 28 pct)
- FormSetObject(21, _Button, "Normal Button", 5 pct, 16 pct, 18 pct, 8 pct)
- FormSetObject(22, _DefButton, "Default Button", 5 pct, 27 pct, 18 pct, 8 pct)
-
- FormSetObject(40, _GroupBox, "Check Boxes", 28 pct, 10 pct, 20 pct, 28 pct)
- FormSetObject(41, _CheckBox, "Bold", 30 pct, 16 pct; _Notify, 0, 1)
- FormSetObject(42, _CheckBox, "Italics", 30 pct, 22 pct; _Notify, 0, 1)
- FormSetObject(43, _CheckBox, "Underline", 30 pct, 28 pct; _Notify, 0, 1)
-
- FormSetObject(50, _GroupBox, "Option Buttons", 51 pct, 10 pct, 20 pct, 28 pct)
- FormSetObject(51, _OptionButton, "Cold", 53 pct, 16 pct; _Notify, 1, 2)
- FormSetObject(52, _OptionButton, "Warm", 53 pct, 22 pct; _Notify, 0, 2)
- FormSetObject(53, _OptionButton, "Hot", 53 pct, 28 pct; _Notify, 0, 2)
-
- FormSetObject(70, _Frame, "Frame", 74 pct, 12 pct, 23 pct, 26 pct)
-
- FormSetObject(61, _GroupBox, "List Boxes", 3 pct, 41 pct, 22 pct, 42 pct)
- FormSetObject(60, _ListBox, "listbox", 5 pct, 47 pct, 18 pct, 25 pct; names)
- FormSetObject(65, _Button, "More List Boxes", 4 pct, 74 pct, 20 pct, _Default)
-
- FormSetObject(80, _GroupBox, "Text Boxes", 28 pct, 41 pct, 43 pct, 32 pct)
- FormSetObject(81, _TextBox, "Type in me", 32 pct, 47 pct, 35 pct, _Default)
- FormSetObject(82, _TextBox, "I have multiple lines", 32 pct, 55 pct, 35 pct, 15 pct; _MultiLine)
-
- 'Bitmaps are 100 pxl x 60 pxl
- FormSetObject(90, _GroupBox, "Bitmaps", 74 pct, 41 pct, 23 pct, 42 pct)
- sz[1:4] = FormQObject(90)[3:6]
- bmLeft = sz[1] + (sz[3] - 80)/2
- FormSetObject(91, _Bitmap, "Bitmap.bmp", bmLeft pxl, 47 pct)
- FormSetObject(92, _BitmapButton, "Bitmap.bmp", bmLeft pxl, 65 pct)
-
- FormSetObject(190, _Button, "Main Menu...", _Center, 76 pct, 18 pct, 7 pct)
-
- FormSetObject(200, _CaptionCenter, "Try manipulating these interface controls.", 5 pct, 85 pct, 90 pct, 14 pct; _Brick)
- FormSetProc(formprocObjects)
-