已答复 Native UIRibbon in c++ Spinner->FormatString

  • Donnerstag, 31. Mai 2012 13:28
     
     

    Hiya,

    I'm using the native ribbon, actually I'm wrapping it for another language, and I've noticed an issue with the FormatString property.

    I have the complete spinner control working as it should be, setting and retrieving property values etc. However, there is an issue with setting the DecimalValue and also setting the FormatString. In spinners display it will show the correct value with the correct number of decimal places until I set the FormatString. When I set the FormatString the figures after the decimal are removed from the display, and the letters for the FormatString are displayed. If I click the up/down arrows then the value is displayed as expected, still with the correct FormatString characters appended.

    Is there a specific order I should set the spinners properties to avoid this.

    Many thanks

    Dave.


Alle Antworten

  • Sonntag, 3. Juni 2012 19:28
     
     Beantwortet

    The answer is YES.

    It seems that setting the FormatString after setting the DecimalPlaces works as expected for the initial settings during form loading.

    • Als Antwort markiert Dave Camp Montag, 4. Juni 2012 10:54
    •