From: Kevin A. <al...@se...> - 2002-03-26 02:46:15
|
I checked in a Gauge component based on wxGauge. Gauge was added to the resourceEditor too. Gauge has no special events, just the standard mouse events, but like the Static components you probably won't need to ever use an event handler. Use a Slider if you need the user to interact with the component. I didn't wrap any methods. The component has 'layout', 'max' and 'value' attributes. 'layout' can be 'horizontal' or 'vertical', the default is 'vertical'. The default 'max' is 100 and 'value' defaults to 0. I used the smooth (wxGA_SMOOTH) style, hopefully that works on GTK? Cliff sent me another possible implementation, but I'll let him repost that to the list in case we want a different implementation or two separate types of gauges. The one I checked in is very simple. ka |