|
using System;
using System.Windows;
using System.Windows.Forms;
using System.Diagnostics;
namespace GlacialComponents.Controls
{
internal class ManagedHScrollBar : System.Windows.Forms.HScrollBar
{
internal ManagedHScrollBar()
{
this.TabStop = false;
this.GotFocus += new EventHandler( ReflectFocus );
}
public void ReflectFocus( object source, EventArgs e )
{
Debug.WriteLine( "focus called" );
this.Parent.Focus();
}
private void InitializeComponent()
{
//
// ManagedHScrollBar
//
}
public int mTop
{
set
{
if ( Top!=value)
Top = value;
}
}
public int mLeft
{
set
{
if ( value != Left )
Left = value;
}
}
public int mWidth
{
get
{
if ( Visible != true )
return 0;
else
return Width;
}
set
{
if ( Width != value )
Width = value;
}
}
public int mHeight
{
get
{
if ( Visible != true )
return 0;
else
return Height;
}
set
{
if ( Height != value )
Height = value;
}
}
public bool mVisible
{
set
{
if ( Visible != value )
Visible = value;
}
}
public int mSmallChange
{
set
{
if ( SmallChange != value )
SmallChange = value;
}
}
public int mLargeChange
{
set
{
if ( LargeChange != value )
LargeChange = value;
}
}
public int mMaximum
{
set
{
if ( Maximum != value )
Maximum = value;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I started my programming career in the late 80's with video games and have since written games on the AppleIIgs, SNES, Saturn, Playstation, and PC. After leaving the games industry and joining the ranks of consultants I began doing a lot of work with client/server applications, data movement, and communications. I've also become a recent convert to the XP principles of software development. Despite my defection to the business world I am still an avid gamer and I can be found on the gamezone most weekends slugging it out with others in the various online games there.
I currently live in Utah where I run PA (enterprise architecture consulting firm) and occasionally guest speak at architect forums. I mountain bike (badly), golf (very badly), and have fun (often).