Widgetry - the future is nowPollock - the next VW GUIVertical Scrollbar Starting API- August 31, 2007 We've created and set up our ScrollingCanvas and an artist for it, ScrollingCanvasArtist. Now we need to add the API that the Scrollbars need in order to interact with our pane. Today we'll address only the vertical scrollbar. Testing 1-2 3 First we need to tell the world if we have an interior decoration. This is a simple method on our Artist ScrollingCanvasArtist>>hasInteriorDecoration interiorDecoration notNil This method is used by the inner edge clipping mechanism we have..http://www.cincomsmalltalk.com/userblogs/pollock/blogView?showComments=true&printTitle... Interior Decorations- August 24, 2007 In Widgetry, an interior decoration is an optional part of a widget much like a border but which is implicit to a pane. A simple example of an interior decoration can be seen in a Win9x look button: The interior decoration is that part of the button that makes it look 3Draised. If you are thinking that this interior decoration looks like a border, well in fact it is. For a Button with the Win9x look the interior decoration is a raised border object. For an InputField in the Win9x look the...http://www.cincomsmalltalk.com/userblogs/pollock/blogView?showComments=true&printTitle... Borders- August 17, 2007 Jumping right in today with little fanfare. Border Where a Pane has a Frame and an Agent, a border object only needs an Artist. It gets its layout information from the Pane which hosts it when it is asked to display itself. Indeed, a border object doesn't respond to the standard displayOn: method. Instead, it uses a displayOn:in: method, where the second argument is a rectangle which defines the bounds in which it should display itself. When in use, ArtistWithBorder or subclasses of that are.http://www.cincomsmalltalk.com/userblogs/pollock/blogView?showComments=true&printTitle... Creating Custom Panes - The Beginning- August 10, 2007 Here we are on the start of an adventure. The ultimate goal is to create a new custom Pane for Widgetry. On one of the public forums, it was suggested, and I agreed, that it would be nice to have a scrolling version of the Canvas. The resulting Pane will be called ScrollingCanvas (yes I know, you're just amazed at my creativity). Along the way, I'll try to educate you on how Widgetry works from the top down in order to create our ScrollingCanvas, taking time along the way to point out...http://www.cincomsmalltalk.com/userblogs/pollock/blogView?showComments=true&printTitle... Fun With TabControls- August 3, 2007 Today we look at the TabControl, which after all our other HOW-TOs, seems pretty simple. Design We'll create a window with a TabControl in it, then we'll add pages to the TabControl using previous work, and then show how to make the pages display well. As always, we start off with a subclass of UserInterface: Smalltalk defineClass: TabControlWork superclass: Widgetry.UserInterface indexedType: none private: false instanceVariableNames: 'tabControl ' classInstanceVariableNames:..http://www.cincomsmalltalk.com/userblogs/pollock/blogView?showComments=true&printTitle... |