To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83922
                 Issue #|83922
                 Summary|ControlCommand SetValue does not work for SpinField
               Component|framework
                 Version|OOo 2.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|hillerd





------- Additional comments from [EMAIL PROTECTED] Sat Nov 24 10:00:53 +0000 
2007 -------
Programming a complex toolbar with a SpinField, I realized that it was not
possible to "SetValue" this field. My code is correct because e.g."SetStep" etc.
work fine.

I found this bit of coding on the net (though I am not sure this is OOo code, no
experience with CVS yet)
(http://lxr.go-oo.org/source/framework/framework/source/uielement/spinfieldtoolbarcontroller.cxx):

if ( rControlCommand.Arguments[i].Name.equalsAsciiL( "Value", 4 ))
{
    sal_Int32   nValue;
    double      fValue;
    bool        bFloat( false );

    if ( impl_getValue( rControlCommand.Arguments[i].Value, nValue, fValue,
m_bFloat ))
    {
         aValue = bFloat ? ::rtl::OUString::valueOf( fValue ) :
::rtl::OUString::valueOf( nValue );
         bFloatValue = bFloat;
    }
    break;
}

Note that in "impl_getValue" "m_bFloat" gets set whereas afterwards "bFloat" is
checked.

Workaround: "SetValues" works fine; it uses b_Float all the time.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to