Alexej Kryukov wrote:
Hi Carsten and others,

I am experimenting with complex toolbar controls for my
add-on package. I would like to indicate the state of my
application by setting different images for an ImageButton control. Unfortunately, sending the "SetImage" command to
the control produces no result, although my code seems to
be correct (all operations with other controls work perfectly).

I had a look at OOo sources and noticed the following condition
in framework/source/uielement/imagebuttontoolbarcontroller.cxx:

  if ( rControlCommand.Command.equalsAsciiL( "SetImage", 7 ))

As you can see, the second argument of equalsAsciiL is probably wrong (should be 8). Is it possible that "SetImage"
fails for this reason?
Hi Alexej,

You're right that this is a problem. Please write me an issue for the problem. Set owner to "cd" and component to "framework". Could you please check if using "SetImag" can be used as a workaround. I would support both strings to be downward compatible.


BTW, I noticed some glitches with displaying custom toolbars
containing some complex controls with a variable width (such
as drop-down buttons) in OOo 2.1. Under certain conditions
these controls are not displayed, and the user has to manually
resize the toolbar (or change its layout to vertical) to
ensure that they are still there. The complex toolbar demo add-on
can be used to demonstrate this problem. Are there any plans of
fixing this?

Could please write an issue and send it to the gsl team (component gsl).

Regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to