Change the width of a scrollbar

Question!

Is it possible to change the width of a scroll bar on a form. This app is for a touch screen and it is a bit too narrow.

By : Johannes


Answers

This is a Windows Forms application? I was able to make a very fat and thick scrollbar by adjusting the "Width" property of my scroll bar control.

Fat Scroll Bar

Is your scroll bar something you have programmatic access to (i.e. it is a control you added to the form)?



The width of the scrollbars is controlled by Windows. You can adjust the scrollbar width in Display Properties and it will affect all windows on the terminal.

By : Martin


@Theo: How would you explain the following working in 3.0.0.477 with the default flex-config.xml (<strict>true</strict>) and even a -compiler.strict parameter passed to mxmlc?

Foo.as:

package
{
    public class Foo
    {
    	public var foo:String;

    	public function Foo()
    	{
    		foo = "foo!";
    	}
    }
}

footest.as:

package
{
    import flash.display.Sprite;

    public class footest extends Sprite
    {
    	public function footest()
    	{
    		Foo.prototype.method = function():String
    		{
    			return "Something";
    		}

    		var foo:Foo = new Foo();
    		trace(foo["method"]());
    	}
    }
}

Note that the OP said inheritance was unacceptable, as was modifying the generated code. (If that weren't the case, adding "dynamic" to the class definition would probably be the easiest solution.)

By : aib


This video can help you solving your question :)
By: admin