Hello,
I have made available for download my latest Appearance override.Incl
file.
Although I don't recommend to use it in real projects, It is still
amazing to play with.
Since you can build in a matter of seconds an Appearance savvy window,
it is very tempting to use it, but my advice is to work with the Toolbox
or wait for something new to come with FB^3.
I am aware of a few misbehaviors that were reported to me,
and I have not yet found fixes for:
- the extra line in list boxes
- how to handle double-click in list boxes
- the wrong selection on first click in dater and timer controls.
Notice that the LongDateRec record is strangely defined in the Runtime,
this has been done like this to work around a bug in a Toolbox call.
If you change the Runtime definition of that record (unreming the
era field), I don't know what could happen later, so you should better
define a record of your own with the fields mentioned in the
documentation, to retrieve the values at the good offsets.
Corrections and enhancements
Release 1.2
- variants added for bevel buttons (small, medium, large +
menuOnRight)
The following constants have been added:
_bevelButtonSmall
_bevelButtonMedium
_bevelButtonLarge
_menuOnRight
You can write something like this:
BUTTON 2,_resID,"",theRect,_bevelButtonMedium_menuOnRight
You must give the same res ID to the menu and the icon resources
if you wish to get them both inside the bevel button. You can
also use the title$ parameter for the text in the button.
- Edit text controls are no longer entirely selected when activated
by a mouse click (the insertion point is set at the end of the text)
- global gAutoFocus added
if true then the focus is automatically handled for Text Edit
controls,
if false the DIALOG function returns an event (_efTab or _efShiftTab)
with a value of _maxint.
This allows to handle tab and shift tab when Edit Text controls and
regular Edit Fields are used simultaneously in the same window.
Although I have not tested it, I think it is possible to activate or
deactivate that feature depending on the design of the window
you are working with at a given time.
- The automatic focus ring around regular EDIT FIELDs has been
removed.
I had a good reason to change this behavior but I've forgotten
what it was.
- Icon changes are allowed now for icon buttons
Although it was possible to change the icon or the picture in an
imagewell, I forgot to implement that feature for icon controls.
See example: Demo FB Icon Button
- The handling of bevel buttons with popup menu have slightly
been modified.
Release 1.1.1
- Icon + pop menu in bevel buttons are allowed
Release 1.1
- The omission of the state parameter is now allowed for setting
Static and Edit Text buttons. ex:
BUTTON 1,,"the replacement text"
- Handling of tab and shift tab with Edit Text buttons
The files are at:
http://www.pixmix.com/AppearanceOverride.1.2.sea.hqx
Cheers
Alain