~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/TestApp_Sharp/Test_ScrollBar.cs

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using MyGUI.Sharp;
 
2
 
 
3
namespace TestApp.Sharp
 
4
{
 
5
        public class Test_ScrollBar
 
6
        {
 
7
                public static void Test()
 
8
                {
 
9
                        ScrollBar scroll = Gui.Instance.CreateWidget<ScrollBar>("ScrollBarV", new IntCoord(580, 120, 16, 100), Align.Default, "Main");
 
10
                        scroll.EventScrollChangePosition += new ScrollBar.HandleScrollChangePosition(scroll_EventScrollChangePosition);
 
11
 
 
12
                        scroll.MinTrackSize = scroll.MinTrackSize + 1;
 
13
                        scroll.TrackSize = scroll.TrackSize + 1;
 
14
 
 
15
                        int size = scroll.LineSize;
 
16
                        scroll.ScrollViewPage = scroll.ScrollViewPage + 1;
 
17
                        scroll.ScrollPage = scroll.ScrollPage + 1;
 
18
                        scroll.ScrollRange = scroll.ScrollRange + 10;
 
19
                        scroll.ScrollPosition = scroll.ScrollPosition + 1;
 
20
                }
 
21
 
 
22
                static void scroll_EventScrollChangePosition(ScrollBar _sender, uint _position)
 
23
                {
 
24
                        Gui.Instance.Log("TestApp", LogLevel.Info, "EventScrollChangePosition  position=" + _position.ToString());
 
25
                }
 
26
        }
 
27
}