File: askclickpos.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 (67 lines) | stat: -rw-r--r-- 2,262 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
/* ************************************************************* *
 *   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 Tue Aug  5 00:24:40 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 am_askclickpos;

Am_Object am_askclickpos_Initialize () {
  am_askclickpos = Am_Window.Create(DSTR("am_askclickpos"))
    .Set(Am_DESTROY_WINDOW_METHOD, Am_Default_Pop_Up_Window_Destroy_Method)
    .Set(Am_FILL_STYLE, Am_Amulet_Purple)
    .Set(Am_TITLE, "Specify Location")
    .Set(Am_ICON_TITLE, "Specify Location")
    .Set(Am_WIDTH, 361)
    .Set(Am_HEIGHT, 102)
    .Add(Am_VALUE, (0L))
    ;
  am_askclickpos
    .Add_Part(Am_LABEL, Am_Text.Create()
      .Set(Am_LEFT, 31)
      .Set(Am_TOP, 14)
      .Set(Am_WIDTH, 475)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "Click in the window to define a new position")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Text.Create()
      .Set(Am_LEFT, 31)
      .Set(Am_TOP, 29)
      .Set(Am_WIDTH, 91)
      .Set(Am_HEIGHT, 15)
      .Set(Am_TEXT, "or hit cancel")
      .Set(Am_LINE_STYLE, Am_Black)
      .Set(Am_FILL_STYLE, Am_No_Style)
    )
    .Add_Part(Am_Button_Panel.Create()
      .Set(Am_LEFT, Am_Center_X_Is_Center_Of_Owner)
      .Set(Am_TOP, 48)
      .Set(Am_FILL_STYLE, Am_Amulet_Purple)
      .Set(Am_LAYOUT, Am_Horizontal_Layout)
      .Set(Am_H_SPACING, 0)
      .Set(Am_V_SPACING, 0)
      .Set(Am_MAX_RANK, 0)
      .Set(Am_ITEMS, Am_Value_List()
	   .Add(Am_Standard_Cancel_Command.Create()
		.Set(Am_DEFAULT, true)
		.Set(Am_ACCELERATOR, Am_Input_Char("RETURN"))
		)
	   )
    )
  ;
  return am_askclickpos;
}