Advertisement
anatolt

find-n-del-anomaly.pbf

Feb 5th, 2015
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Form Designer for Purebasic - 5.31
  2. ; Warning: this file uses a strict syntax, if you edit it, make sure to respect the Form Designer limitation or it won't be opened again.
  3.  
  4. ;
  5. ; This code is automatically generated by the FormDesigner.
  6. ; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
  7. ; Event procedures needs to be put in another source file.
  8. ;
  9.  
  10. Global Window_0
  11.  
  12. Global pole1, pole2, txt2, txt3, copy, btn, pole_del
  13.  
  14.  
  15. Procedure OpenWindow_0(x = 100, y = 100, width = 540, height = 400)
  16.   Window_0 = OpenWindow(#PB_Any, x, y, width, height, "Найти и уничтожить", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
  17.   pole1 = EditorGadget(#PB_Any, 10, 40, 190, 350)
  18.   pole2 = EditorGadget(#PB_Any, 340, 40, 190, 310)
  19.   txt2 = TextGadget(#PB_Any, 10, 10, 100, 25, "Поле 1")
  20.   txt3 = TextGadget(#PB_Any, 340, 10, 100, 25, "Поле 2")
  21.   copy = ButtonGadget(#PB_Any, 340, 360, 190, 25, "← Копировать")
  22.   btn = ButtonGadget(#PB_Any, 210, 40, 120, 25, "Удалить →")
  23.   pole_del = EditorGadget(#PB_Any, 210, 70, 120, 320)
  24. EndProcedure
  25.  
  26. Procedure Window_0_Events(event)
  27.   Select event
  28.     Case #PB_Event_CloseWindow
  29.       ProcedureReturn #False
  30.  
  31.     Case #PB_Event_Menu
  32.       Select EventMenu()
  33.       EndSelect
  34.  
  35.     Case #PB_Event_Gadget
  36.       Select EventGadget()
  37.       EndSelect
  38.   EndSelect
  39.   ProcedureReturn #True
  40. EndProcedure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement