Advertisement
DestBro

Счет [Nullc]

Jul 12th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. import network;
  2. import base.win;
  3. import std.file;
  4. import base.gui;
  5. import base.ini;
  6. int version = 1; //Локальная версия чита
  7.  
  8. Dialog ref Dlg_Obnova;
  9. HWND Button1, ButtonText1;
  10. int cout;
  11.  
  12. void Event_Timer(Dialog ref dlg, int param){
  13. ButtonText1.SetText(cout.str());
  14. cout=cout+1; }
  15.  
  16. void Event_Btn1(Dialog ref dlg, int param){
  17. dlg.AddTimer(100, Event_Timer, 0); // 100 это скорость, 0.1 секунд
  18. }
  19.  
  20. void Event_Close(Dialog ref dlg, int param){}
  21. Dlg_Obnova = CreateDialog("Счет", 100, 100, 270, 157, Event_Close);
  22. Button1 = Dlg_Obnova.AddButton("Начать считать", 10, 17, 242, 31, Event_Btn1,0);
  23. ButtonText1 = Dlg_Obnova.AddButton("", 10, 50, 242, 55, Event_Close,0);
  24. ButtonText1.Enable(0);
  25.  
  26. Dlg_Obnova.Show(true);
  27. Dlg_Obnova.OnTop(1);
  28. Dlg_Obnova.WaitClose();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement