home *** CD-ROM | disk | FTP | other *** search
/ Internet Gallery / INTERGAL.bin / intergal / prgs / idv21 / data.z / OBJECTS.500 < prev    next >
INI File  |  1996-11-28  |  14KB  |  375 lines

  1. [Allevents]
  2. \?onClick\if ((e.target instanceof T\Name\) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
  3. \?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  4. \?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  5. \?onGotFocus\if ((e.target instanceof T\Name\) & (e.id == Event.GOT_FOCUS)) { return \onGotFocus\ (e); }\-\
  6. \?onKeyAction\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION)) { return \onKeyAction\ (e); }\-\
  7. \?onKeyActionRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION_RELEASE)) { return \onKeyActionRelease\ (e); }\-\
  8. \?onListDeselect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_DESELECT)) { return \onListDeselect\ (e); }\-\
  9. \?onListSelect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_SELECT)) { return \onListSelect\ (e); }\-\
  10. \?onLoadFile\if ((e.target instanceof T\Name\) & (e.id == Event.LOAD_FILE)) { return \onLoadFile\ (e); }\-\
  11. \?onLostFocus\if ((e.target instanceof T\Name\) & (e.id == Event.LOST_FOCUS)) { return \onLostFocus\ (e); }\-\
  12. \?onMouseDown\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DOWN)) { return \onMouseDown\ (e); }\-\
  13. \?onMouseDrag\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DRAG)) { return \onMouseDrag\ (e); }\-\
  14. \?onMouseEnter\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_ENTER)) { return \onMouseEnter\ (e); }\-\
  15. \?onMouseExit\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_EXIT)) { return \onMouseExit\ (e); }\-\
  16. \?onMouseMove\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_MOVE)) { return \onMouseMove\ (e); }\-\
  17. \?onMouseUp\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_UP)) { return \onMouseUp\ (e); }\-\
  18. \?onSaveFile\if ((e.target instanceof T\Name\) & (e.id == Event.SAVE_FILE)) { return \onSaveFile\ (e); }\-\
  19. \?onScrollAbsolute\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_ABSOLUTE)) { return \onScrollAbsolute\ (e); }\-\
  20. \?onScrollLineDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_DOWN)) { return \onScrollLineDown\ (e); }\-\
  21. \?onScrollLineUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_UP)) { return \onScrollLineUp\ (e); }\-\
  22. \?onScrollPageDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_DOWN)) { return \onScrollPageDown\ (e); }\-\
  23. \?onScrollPageUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_UP)) { return \onScrollPageUp\ (e); }\-\
  24. \?onWindowDeiconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DEICONIFY)) { return \onWindowDeiconify\ (e); }\-\
  25. \?onWindowDestroy\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DESTROY)) { return \onWindowDestroy\ (e); }\-\
  26. \?onWindowExpose\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_EXPOSE)) { return \onWindowExpose\ (e); }\-\
  27. \?onWindowIconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_ICONIFY)) { return \onWindowIconify\ (e); }\-\
  28. \?onWindowMoved\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_MOVED)) { return \onWindowMoved\ (e); }\-\
  29.  
  30. [Properties]
  31. Alignment=Alignment
  32. Caption=String
  33. CancelButton=Boolean
  34. Checked=Boolean
  35. Childcount=Integer
  36. Color=Color
  37. Columns=Integer
  38. Filename=Filename
  39. Fontcolor=Color
  40. Fontname=Fontname
  41. Fontsize=Integer
  42. Fontstyle=Fontstyle
  43. Height=Integer
  44. Items=Items
  45. Left=Integer
  46. Min=Integer
  47. Max=Integer
  48. MultiSelect=Boolean
  49. Name=Name
  50. NoButton=Boolean
  51. OkButton=Boolean
  52. Owner=String
  53. Path=Path
  54. Rows=Integer
  55. Text=String
  56. Top=Integer
  57. Width=Integer
  58. YesButton=Boolean
  59.  
  60. [Visualmain]
  61. Color=blue
  62. Height=300
  63. Name=
  64. onGotFocus=
  65. onKeyPress=
  66. onKeyRelease=
  67. onLostFocus=
  68. onMouseDown=
  69. onMouseMove=
  70. onMouseUp=
  71. Width=450
  72.  
  73. [Visualmain.Init]
  74. 1=setBackground (Color.\Color\);
  75. 2=resize (\Width\,\Height\);
  76.  
  77. [Visualmain.Events]
  78. 1=\?onGotFocus\if ((e.target == this) & (e.id == Event.GOT_FOCUS)) { return \onGotFocus\ (e); }\-\
  79. 2=\?onKeyPress\if ((e.target == this) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  80. 3=\?onKeyRelease\if ((e.target == this) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  81. 4=\?onLostFocus\if ((e.target == this) & (e.id == Event.LOST_FOCUS)) { return \onLostFocus\ (e); }\-\
  82. 5=\?onMouseDown\if ((e.target == this) & (e.id == Event.MOUSE_DOWN)) { return \onMouseDown\ (e); }\-\
  83. 6=\?onMouseMove\if ((e.target == this) & (e.id == Event.MOUSE_MOVE)) { return \onMouseMove\ (e); }\-\
  84. 7=\?onMouseUp\if ((e.target == this) & (e.id == Event.MOUSE_UP)) { return \onMouseUp\ (e); }\-\
  85.  
  86. [Label]
  87. Caption=ALabel
  88. Color=black
  89. Fontname=TimesRoman
  90. Fontcolor=black
  91. Fontstyle=Font.PLAIN
  92. Fontsize=8
  93. Left=10
  94. Name=
  95. Top=10
  96.  
  97. [Label.Class]
  98. 1=String \Name\ = "\Caption\";
  99.  
  100. [Label.Paint]
  101. 1=g.setFont (new Font ("\Fontname\",\Fontstyle\,\Fontsize\));
  102. 2=g.setColor (Color.\Fontcolor\);
  103. 3=g.drawString (\Name\,\Left\,\Top\);
  104.  
  105. [Button]
  106. Caption=AButton
  107. Left=10
  108. Name=
  109. onClick=
  110. onKeyPress=
  111. onKeyRelease=
  112. Owner=
  113. Top=10
  114. Height=25
  115. Width=75
  116.  
  117. [Button.Class]
  118. 1=T\Name\ \Name\ = new T\Name\ ("\Caption\", this);
  119.  
  120. [Button.Init]
  121. 1=add ("",\Name\);
  122.  
  123. [Button.Paint]
  124. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  125.  
  126. [Button.Typedef]
  127. 1=class T\Name\ extends Button { private \Owner\ TheOwner; T\Name\ (String Caption, \Owner\ o) { super (Caption); TheOwner = o; } 
  128. 2=public boolean handleEvent (Event e) { return TheOwner.handleEvent (e); } }
  129.  
  130. [Button.Events]
  131. 1=\?onClick\if ((e.target instanceof T\Name\) & (e.id == Event.ACTION_EVENT)) {return \onClick\ (e); }\-\
  132. 2=\?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  133. 3=\?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  134.  
  135. [CheckboxGroup]
  136. Childcount=0
  137. Height=50
  138. Left=10
  139. Name=
  140. Top=10
  141. Width=110
  142.  
  143. [CheckboxGroup.Class]
  144. 1=T\Name\ \Name\ = new T\Name\ ();
  145.  
  146. [CheckboxGroup.Typedef]
  147. 1=class T\Name\ extends CheckboxGroup { T\Name\ () { super (); } }
  148.  
  149. [Checkbox]
  150. Caption=ACheckbox
  151. Checked=false
  152. Height=12
  153. Left=10
  154. Name=
  155. onClick=
  156. onKeyPress=
  157. onKeyRelease=
  158. Owner=
  159. Top=10
  160. Width=100
  161.  
  162. [Checkbox.Class]
  163. 1=\?!Owner=VISUALWINNAME\>T\Owner\ \Owner\\-\
  164. 2=T\Name\ \Name\ = new T\Name\ ("\Caption\"\?!Owner=VISUALWINNAME\,\Owner\,\Checked\\-\);
  165.  
  166. [Checkbox.Init]
  167. 1=add ("",\Name\);
  168. 2=\?Owner=VISUALWINNAME\\Name\.setState (\Checked\);\-\
  169.  
  170. [Checkbox.Paint]
  171. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  172.  
  173. [Checkbox.Typedef]
  174. 1=class T\Name\ extends Checkbox { T\Name\ (String ACaption) { super (ACaption); } T\Name\ (String ACaption,CheckboxGroup AGroup,boolean AState) { super (ACaption,AGroup,AState); } }
  175.  
  176. [Checkbox.Events]
  177. 1=\?onClick\if ((e.target instanceof T\Name\) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
  178. 2=\?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  179. 3=\?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  180.  
  181. [TextField]
  182. Columns=11
  183. Height=22
  184. Left=10
  185. Name=
  186. onKeyPress=
  187. onKeyRelease=
  188. Owner=
  189. Text=ATextField
  190. Top=10
  191. Width=110
  192.  
  193. [TextField.Class]
  194. 1=T\Name\ \Name\ = new T\Name\ ("\Text\", \Columns\, this);
  195.  
  196. [TextField.Init]
  197. 1=add ("",\Name\);
  198.  
  199. [TextField.Paint]
  200. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  201.  
  202. [TextField.Typedef]
  203. 1=class T\Name\ extends TextField { private \Owner\ TheOwner; T\Name\ (String AText, int Columns, \Owner\ o) { super (AText,Columns); TheOwner = o; } public boolean handleEvent (Event e) { return TheOwner.handleEvent (e); } }
  204.  
  205. [TextField.Events]
  206. 1=\?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  207. 2=\?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  208.  
  209. [TextArea]
  210. Columns=15
  211. Height=200
  212. Left=150
  213. Name=
  214. Rows=20
  215. Text=ATextArea
  216. Top=10
  217. Width=150
  218.  
  219. [TextArea.Class]
  220. 1=T\Name\ \Name\ = new T\Name\ (\?Text\"\Text\",\-\\Rows\,\Columns\);
  221.  
  222. [TextArea.Init]
  223. 1=add ("",\Name\);
  224.  
  225. [TextArea.Paint]
  226. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  227.  
  228. [TextArea.Typedef]
  229. 1=class T\Name\ extends TextArea { T\Name\ (int ARows, int AColumns) { super (ARows,AColumns); } T\Name\ (String AText,int ARows,int AColumns) { super (AText,ARows,AColumns); } }
  230.  
  231. [FileDialog]
  232. Caption=Make your choices...
  233. FileDlgMode=LOAD
  234. Left=10
  235. Name=
  236. Top=10
  237.  
  238. [FileDialog.Class]
  239. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),"\Caption\");
  240.  
  241. [FileDialog.Start]
  242. 1=//\Name\.show();
  243.  
  244. [FileDialog.Typedef]
  245. 1=class T\Name\ extends FileDialog { T\Name\ (Frame AFrame,String Caption) { super (AFrame,Caption); } }
  246.  
  247. [MessageFrame]
  248. CancelButton=false
  249. Caption=A Message occured
  250. Left=10
  251. Name=
  252. NoButton=false
  253. OkButton=true
  254. Text=Information
  255. Top=10
  256. YesButton=false
  257.  
  258. [MessageFrame.Class]
  259. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),\OkButton\,\YesButton\,\NoButton\,\CancelButton\);
  260.  
  261. [MessageFrame.Start]
  262. 1=//\Name\.show("\Text\","\Caption\");
  263. 2=//if (\Name\.getResult==?) // ?: 0=OK 1=Yes 2=No 3=Cancel 
  264.  
  265. [MessageFrame.Typedef]
  266. 1=class T\Name\ extends Dialog { boolean wrhd; String TheText; int Width; Button Okbu=new Button("OK"); Button Yesbu=new Button("Yes"); Button Nobu=new Button("No"); Button Canbu=new Button("Cancel"); 
  267. 2=int AResult; T\Name\ (Frame AFrame,boolean okbu,boolean yesbu,boolean nobu,boolean canbu) { super(AFrame,true); setResizable (false); wrhd=false; Width=100; if(okbu) { Okbu.show(); add (Okbu); 
  268. 3=Okbu.reshape (Width-50,90,75,25); Width+=100; } if(yesbu) { Yesbu.show(); add (Yesbu); Yesbu.reshape (Width-50,90,75,25); Width+=100; } if(nobu) { Nobu.show(); add (Nobu); Nobu.reshape (Width-50,90,75,25); 
  269. 4=Width+=100; } if(canbu) { Canbu.show(); add (Canbu); Canbu.reshape (Width-50,90,75,25); Width+=100; } super.reshape (250,250,Width,150); } public int getResult () { return AResult; } public void paint (Graphics g) { if (!wrhd) 
  270. 5={ reshape (250,250,Width-25,150); wrhd=true; } g.setFont (new Font ("TimesRoman",Font.PLAIN,15)); g.drawString (TheText,((Width - (TheText.length()*10))/2),36); super.paint (g); } public int show (String ACaption,String AText) 
  271. 6={ TheText=AText; wrhd=false; setTitle (ACaption); super.show (); return AResult; } public boolean action (Event e,Object o) { switch (e.id) { case Event.ACTION_EVENT: { if ("OK".equals(o)) AResult=0; if ("Yes".equals (o)) 
  272. 7=AResult=1; if ("No".equals (o)) AResult=2; if ("Cancel".equals (o)) AResult=3; super.dispose(); return true; } default: return false; } } }
  273.  
  274. [FindDialog]
  275. Left=10
  276. Name=
  277. Text=
  278. Top=10
  279.  
  280. [FindDialog.Class]
  281. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),"\Text\");
  282.  
  283. [FindDialog.Start]
  284. 1=//\Name\.show();
  285. 2=//if (\Name\.getSearchtext ().equals ("")) { };
  286.  
  287. [FindDialog.Typedef]
  288. 1=class T\Name\ extends Dialog { Checkbox Cbox1=new Checkbox("Hole word"); Checkbox Cbox2=new Checkbox("Case sensitive"); CheckboxGroup Cbgr1=new CheckboxGroup();
  289. 2=Checkbox Cbox3=new Checkbox("Down",Cbgr1,true); Checkbox Cbox4=new Checkbox("Up",Cbgr1,false); CheckboxGroup Cbgr2=new CheckboxGroup();
  290. 3=Checkbox Cbox5=new Checkbox("From cursor",Cbgr2,false); Checkbox Cbox6=new Checkbox("Entire text",Cbgr2,true); Button Button1=new Button("Search");
  291. 4=TextField TxtFld1=new TextField(); boolean wsrhd;
  292. 5=T\Name\ (Frame AFrame,String ASearch) { super(AFrame,"Text search...",true); reshape (50,50,420,150); wsrhd=false; add(Cbox1); add(Cbox2);
  293. 6=add(Cbox3); add(Cbox4); add(Cbox5); add(Cbox6); add(Button1); add(TxtFld1); TxtFld1.setText(ASearch); }
  294. 7=public boolean action(Event e,Object o) { switch(e.id) { case Event.ACTION_EVENT: { if ("Search".equals (o)) { dispose(); return true; } } default: return false; } }
  295. 8=public String getSearchtext () { return TxtFld1.getText(); } public boolean getHoleword() { return Cbox1.getState(); } public boolean getCasesensitive() { return Cbox2.getState(); }
  296. 9=public boolean getDown() { return Cbox3.getState(); } public boolean getEntiretext () { return Cbox6.getState(); } 
  297. 10=public void paint(Graphics g) { g.setFont(new Font("TimesRoman",Font.PLAIN,10)); g.setColor(Color.black); g.drawString("Search for:",20,25); g.drawString("Direction",170,45); g.drawString("Method",170,75);
  298. 11=if (!wsrhd) { reshape(50,50,420,150); Cbox1.reshape(20,70,100,12); Cbox1.setState(false); Cbox2.reshape(20,100,120,12); Cbox2.setState(false); Cbox3.reshape(195,70,90,12); Cbox4.reshape(310,70,100,12); 
  299. 12=Cbox5.reshape(195,100,105,12); Cbox6.reshape(310,100,100,12); Button1.reshape(334,34,76,25); TxtFld1.reshape(70,35,256,23); wsrhd=true; } super.paint (g); } } 
  300.  
  301. [Rectangle]
  302. Color=black
  303. Height=20
  304. Left=10
  305. Name=
  306. Top=10
  307. Width=20
  308.  
  309. [Rectangle.Paint]
  310. 1=g.setColor (Color.\Color\);
  311. 2=g.drawRect (\Left\,\Top\,\Width\,\Height\);
  312.  
  313. [Image]
  314. Filename=
  315. Left=10
  316. Name=
  317. Path=
  318. Top=10
  319.  
  320. [Image.Class]
  321. 1=Image \Name\;
  322. 2=\?Path\URL \Name\URL = null;\-\
  323.  
  324. [Image.Init]
  325. 1=\?Path\try { \Name\URL = new URL ("\Path\"); } catch (MalformedURLException \Name\URL) { showStatus("Error"); }\-\
  326. 2=\Name\ = getImage (\?!Path\getCodeBase (), "\Filename\"\-\\?Path\\Name\URL\-\);
  327.  
  328. [Image.Paint]
  329. 1=g.drawImage (\Name\, \Left\, \Top\, this);
  330.  
  331. [List]
  332. Height=200
  333. Items=
  334. Left=10
  335. Name=
  336. Multiselect=false
  337. Selected=0
  338. Top=10
  339. Width=100
  340.  
  341. [List.Class]
  342. 1=List \Name\ = new List ();
  343.  
  344. [List.Init]
  345. 1=add ("",\Name\);
  346. 2=\Name\.setMultipleSelections (\Multiselect\);
  347. 3=\░░0\
  348. 4=\?Items░0\\Name\.addItem ("\Items░0\");\-\
  349. 5=\░+0\
  350. 6=\?Items░0\\░>0\\-\
  351.  
  352. [List.Paint]
  353. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  354.  
  355. [MenuBar]
  356. Items=
  357. Left=10
  358. Name=
  359. Top=10
  360.  
  361. [MenuBar.Class]
  362. 1=MenuBar \Name\ = new MenuBar ();
  363. 2=\░░0\
  364. 3=\?Items░0\Menu \Items░0\ = new Menu ("\Items░0\");\-\
  365. 4=\░+0\
  366. 5=\?Items░0\\░>0\\-\
  367.  
  368. [MenuBar.Init]
  369. 1=\░░0\
  370. 2=\?Items░0\\Name\.add (\Items░0\);\-\
  371. 3=\░+0\
  372. 4=\?Items░0\\░>0\\-\
  373. 5=setMenuBar (\Name\);
  374.  
  375.