File: askpositionorsize.cpp

package info (click to toggle)
open-amulet 4.3.1-7.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,804 kB
  • ctags: 9,779
  • sloc: cpp: 97,058; sh: 7,698; ansic: 1,881; makefile: 756; lisp: 153; exp: 15
file content (103 lines) | stat: -rw-r--r-- 3,362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* ************************************************************* *
 *   The Amulet User Interface Development Environment           *
 * ************************************************************* *
 *   Created automatically by the Gilt program in Amulet.        *
 *   Do not edit this file directly.                             *
 *   For more information on Amulet, contact amulet@cs.cmu.edu   *
 * ************************************************************* *
 *   Generated on Thu Jul 17 15:59:20 1997

 *   Amulet version 3.0
 * ************************************************************* */

#include <amulet.h>
#include OBJECT__H			// am_object
#include OPAL__H			// am_window
#include STANDARD_SLOTS__H	// am_destroy_window_method
#include WIDGETS__H			// am_default_pop_up_window_destroy_method

Am_Object askpositionorsize;

Am_Object askpositionorsize_Initialize () {
  askpositionorsize = Am_Window.Create(DSTR("askpositionorsize"))
    .Set(Am_DESTROY_WINDOW_METHOD, Am_Default_Pop_Up_Window_Destroy_Method)
    .Set(Am_FILL_STYLE, Am_Amulet_Purple)
    .Set(Am_TITLE, "Choose Position")
    .Set(Am_ICON_TITLE, "Choose Position")
    .Set(Am_WIDTH , Am_Width_Of_Parts)
    .Set(Am_HEIGHT, Am_Height_Of_Parts)
    ;
  askpositionorsize
    .Add_Part(Am_Text.Create()
      .Set(Am_LEFT, 16)
      .Set(Am_TOP, 16)
      .Set(Am_WIDTH, 280)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "Please click in the window to specify a ")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Text.Create()
      .Set(Am_LEFT, 16)
      .Set(Am_TOP, 99)
      .Set(Am_WIDTH, 301)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "or hit Cancel to stop executing the script.")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Button_Panel.Create()
      .Set(Am_LEFT, 109)
      .Set(Am_TOP, 126)
      .Set(Am_FILL_STYLE, Am_Amulet_Purple)
      .Set(Am_LAYOUT, Am_Horizontal_Layout)
      .Set(Am_H_SPACING, 10)
      .Set(Am_V_SPACING, 0)
      .Set(Am_MAX_RANK, 0)
      .Set(Am_ITEMS, Am_Value_List()
        .Add(Am_Standard_OK_Command.Create())
        .Add(Am_Standard_Cancel_Command.Create())
        )
    )
    .Add_Part(Am_Text.Create()
      .Set(Am_LEFT, 16)
      .Set(Am_TOP, 58)
      .Set(Am_WIDTH, 161)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "or fill in values here:")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Text_Input_Widget.Create()
      .Set(Am_LEFT, 190)
      .Set(Am_TOP, 37)
      .Set(Am_WIDTH, 115)
      .Set(Am_HEIGHT, 25)
      .Get_Object(Am_COMMAND)
        .Set(Am_LABEL, "Left")
        .Get_Owner()
      .Set(Am_FILL_STYLE, Am_Amulet_Purple)
    )
    .Add_Part(Am_Text_Input_Widget.Create()
      .Set(Am_LEFT, 197)
      .Set(Am_TOP, 63)
      .Set(Am_WIDTH, 108)
      .Set(Am_HEIGHT, 25)
      .Get_Object(Am_COMMAND)
        .Set(Am_LABEL, "Top")
        .Get_Owner()
      .Set(Am_FILL_STYLE, Am_Amulet_Purple)
    )
    .Add_Part(Am_Text.Create()
      .Set(Am_LEFT, 296)
      .Set(Am_TOP, 16)
      .Set(Am_WIDTH, 56)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "Position")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Tab_To_Next_Widget_Interactor.Create())
  ;
  return askpositionorsize;
}