-
Notifications
You must be signed in to change notification settings - Fork 0
MUI_Prop
Prop class generates the well known proportional gadgets. It offers the same attributes as a usual boopsi gadget of propgclass. However, MUI's prop gadgets allow using any imagery for the knob and for the background.
Attribute | Version | ISG | Type |
---|---|---|---|
MUIA_Prop_DeltaFactor | V4 | ISG | LONG |
MUIA_Prop_Entries | V4 | ISG | LONG |
MUIA_Prop_First | V4 | ISG | LONG |
MUIA_Prop_Horiz | V4 | I.G | BOOL |
MUIA_Prop_Slider | V4 | ISG |
BOOL (OBSOLETE)
|
MUIA_Prop_UseWinBorder | V13 | I.. | LONG |
MUIA_Prop_Visible | V4 | ISG | LONG |
Method | Version |
---|---|
MUIM_Prop_Decrease | V16 |
MUIM_Prop_Increase | V16 |
MUIA_Prop_DeltaFactor -- V4 [ISG], LONG
, 0x80427c5e
Set or get an additional delta factor to speed up keyboard navigation. All "fast" movements, like "alt+cursor up", will be multiplied by this factor.
Defaults to 1.
MUIA_Prop_Visible, MUIA_Prop_Entries
MUIA_Prop_Entries -- V4 [ISG], LONG
, 0x8042fbdb
Set or get the total number of entries.
MUIA_Prop_Horiz, MUIA_Prop_Visible, MUIA_Prop_First
MUIA_Prop_First -- V4 [ISG], LONG
, 0x8042d4b2
Set or get the number of the first entry.
MUIA_Prop_Horiz, MUIA_Prop_Visible, MUIA_Prop_Entries
MUIA_Prop_Horiz -- V4 [I.G], BOOL
, 0x8042f4f3
Determine if you want a horizontal or a vertical prop gadget.
Defaults to FALSE, i.e. vertical.
MUIA_Prop_Entries, MUIA_Prop_First, MUIA_Prop_Visible
MUIA_Prop_Slider -- V4 [ISG], BOOL
, 0x80429c3a (OBSOLETE)
OBSOLETE. DO NOT USE. PREVIOUSLY: Indicate that this prop gadget is used in a slider. MUI might then use different imagery. Since you really should use the slider class when creating sliders, you normally don't need to care about this attribute.
MUIA_Prop_UseWinBorder -- V13 [I..], LONG
, 0x8042deee
- MUIV_Prop_UseWinBorder_None
- MUIV_Prop_UseWinBorder_Left
- MUIV_Prop_UseWinBorder_Right
- MUIV_Prop_UseWinBorder_Bottom
If you set this attribute to one of
MUIV_Prop_UseWinBorder_Left, MUIV_Prop_UseWinBorder_Right, MUIV_Prop_UseWinBorder_Bottom,
some very special magic will take place with this proportional gadget. In fact, it will not eat any display space at all or render anything, it stays invisible in your windows GUI. Instead, the gadgets control and display will be linked to one of the scrollbars in the window border.
There is no difference in talking to the object, you can use all prop gadget attributes regardless whether its a real prop gadget or just a window border link. Of course, gadgets in window borders will use the intuition look regardless what the user has configured.
You MUST enable border scrollers for the parent window with the corresponding attributes (see below) before using MUIA_Prop_UseWinBorder.
Obviously, you can only link exactly one prop gadget to one window scroller. Linking more than one gadget to the same window scroller will result in big confusion.
To simplify programming, the classes Scrollbar class and Listview class also accept the MUIA_Prop_UseWinBorder attribute and pass it on when creating their prop gadgets. This allows you to do something like
WindowObject,
MUIA_Window_UseRightBorderScroller, TRUE,
MUIA_Window_RootObject, VGroup,
Child, ListviewObject,
MUIA_Prop_UseWinBorder, MUIV_Prop_UseWinBorder_Right,
...
to create a listview thats controllable with a scrollbar in the right window border.
Scrollgroup class (for virtual groups) features another attribute called MUIA_Scrollgroup_UseWinBorder, TRUE/FALSE to allow control of virtual group from window borders.
MUIA_Window_UseBottomBorderScroller, MUIA_Window_UseLeftBorderScroller, MUIA_Window_UseRightBorderScroller, MUIA_Scrollgroup_UseWinBorder
MUIA_Prop_Visible -- V4 [ISG], LONG
, 0x8042fea6
Set or get the number of visible entries.
MUIA_Prop_Horiz, MUIA_Prop_Entries, MUIA_Prop_First
MUIM_Prop_Decrease -- V16, 0x80420dd1
DoMethod(obj, MUIM_Prop_Decrease, LONG amount);
This method decreases the value of a proportional gadget by the specified amount. Negative values are ok. Range checking is done automatically.
LONG amount
amount to substract from the gadgets current position.
MUIM_Prop_Increase, MUIA_Prop_First
MUIM_Prop_Increase -- V16, 0x8042cac0
DoMethod(obj, MUIM_Prop_Increase, LONG amount);
This method increases the value of a proportional gadget by the specified amount. Negative values are ok. Range checking is done automatically.
LONG amount
amount to add to the gadgets current position.
MUIM_Prop_Decrease, MUIA_Prop_First
Copyright © 1992-2006 by Stefan Stuntz Copyright © 2006-2021 by Thore Böckelmann, Jens Maus |
MUI for AmigaOS Homepage MUI for AmigaOS Wiki |
Updated: 11-Oct-2021 |