Subject | Re: [IBO] IB_LookupEnh question |
---|---|
Author | Geoff Worboys |
Post date | 2001-08-23T04:34:50Z |
Marcin - and others interested in the second button of
EditEnh/LookupEnh controls...
button drawing are certainly not obvious. So I think that (at least)
the help needs updating. A few things...
OnDrawButton ONLY works when using Button.Style = eebCustom (it is
ignored for all other styles).
Because of this OnDrawButton is pretty much useless for the split/dual
buttons, since the control will treat the eebCustom button as a single
button. (That is; you could draw two buttons but the control will
only give you mouse/keyboard events for a single all-in-one button.)
I thought about creating additional styles eebLeftRightCustom and
eebUpDownCustom but this would require that I change the OnDrawButton
event to also include an indication of which button is to be drawn -
and such a change would break existing apps (although fixing the
problem should be fairly easy).
The button styles eebLeftRightGlyph and eebUpDownGlyph allow you to
choose a glyph to be drawn from the assigned Button.ImageList
property. The glyph for the first button drawn using
Button.ImageIndex and the glyph for the second button simply assumed
to be Button.ImageIndex + 1.
These *Glyph button styles assume that you will provide glyphs for
both buttons, not allowing you to use a standard image (eg. DownArrow)
for one button and a glyph for the other. So to produce a down arrow
for the first button you must provide your own glyph for the arrow in
the imagelist.
I could introduce some additional button styles to cover this
requirement if you thought it made sense.
Any thoughts, comments or suggestions welcome. So far the button
arrangement has been setup according to what I use in my own apps. As
such I will need some suggestions on how others would like this
feature to operate.
At the moment I am thinking that the current arrangements may be
adequate, provided I add sufficient detail into the online help.
Geoff Worboys
Telesis Computing
EditEnh/LookupEnh controls...
> I was thinking about changing the button image fromHaving attempted to setup a demo I realised some aspects of custom
> ellipsis to i.e. query when the combo is dropped
> down. I tried your procedures for drawing images
> but without success. Any clues?
button drawing are certainly not obvious. So I think that (at least)
the help needs updating. A few things...
OnDrawButton ONLY works when using Button.Style = eebCustom (it is
ignored for all other styles).
Because of this OnDrawButton is pretty much useless for the split/dual
buttons, since the control will treat the eebCustom button as a single
button. (That is; you could draw two buttons but the control will
only give you mouse/keyboard events for a single all-in-one button.)
I thought about creating additional styles eebLeftRightCustom and
eebUpDownCustom but this would require that I change the OnDrawButton
event to also include an indication of which button is to be drawn -
and such a change would break existing apps (although fixing the
problem should be fairly easy).
The button styles eebLeftRightGlyph and eebUpDownGlyph allow you to
choose a glyph to be drawn from the assigned Button.ImageList
property. The glyph for the first button drawn using
Button.ImageIndex and the glyph for the second button simply assumed
to be Button.ImageIndex + 1.
These *Glyph button styles assume that you will provide glyphs for
both buttons, not allowing you to use a standard image (eg. DownArrow)
for one button and a glyph for the other. So to produce a down arrow
for the first button you must provide your own glyph for the arrow in
the imagelist.
I could introduce some additional button styles to cover this
requirement if you thought it made sense.
Any thoughts, comments or suggestions welcome. So far the button
arrangement has been setup according to what I use in my own apps. As
such I will need some suggestions on how others would like this
feature to operate.
At the moment I am thinking that the current arrangements may be
adequate, provided I add sufficient detail into the online help.
Geoff Worboys
Telesis Computing