diff --git a/reference/ScrollView/ScrollView.upp b/reference/ScrollView/ScrollView.upp deleted file mode 100644 index 02f45e011..000000000 --- a/reference/ScrollView/ScrollView.upp +++ /dev/null @@ -1,11 +0,0 @@ -description "Scrolling the view area"; - -uses - CtrlLib; - -file - main.cpp; - -mainconfig - "" = "GUI"; - diff --git a/reference/ScrollView/main.cpp b/reference/ScrollView/main.cpp deleted file mode 100644 index cc3dc0339..000000000 --- a/reference/ScrollView/main.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include - -using namespace Upp; - -struct App : public TopWindow { - Point pos; - - virtual void Paint(Draw &w) - { - Size sz = GetSize(); - for(int i = pos.x / 50 - 50; (i * 50 - pos.y) < sz.cy; i++) - for(int j = pos.y / 50 - 50; (j * 50 - pos.x) < sz.cx; j++) - w.DrawRect(j * 50 - pos.x, i * 50 - pos.y, 50, 50, - Color(33 * j % 255, 11 * i % 255, 100)); - } - - virtual bool Key(dword key, int count) - { - if(key == K_SPACE) { - Size sz = GetSize(); - Size delta(rand() % 50, rand() % 50); - pos += delta; - ScrollView(-delta); - } - return true; - } - - App() - { - pos = Point(0, 0); - } -}; - -GUI_APP_MAIN -{ -// Ctrl::ShowRepaint = 30; - App().Run(); -}