diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-089FE9FA-44C8-48D5-A473-9486BF763283.dita --- a/Symbian3/PDK/Source/GUID-089FE9FA-44C8-48D5-A473-9486BF763283.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-089FE9FA-44C8-48D5-A473-9486BF763283.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,57 +1,57 @@ - - - - - -Setting -properties for button states -

The state-specific properties and the methods used for setting them for -the generic button include the following:

- - - - -

Property

-

Method in CAknButtonState

-
- - - -

Text

-

SetTextL()

-
- -

Icon

-
    -
  • Dimmed state: SetDimmedIcon()

  • -
  • Normal state: SetIcon()

  • -
  • Pressed-down state: SetPressedIcon()

  • -
-
- -

Flags

-

SetFlags()

-
- -

Help text

-

SetHelpTextL()

-
- - -
-// Set second state as having latched frame -button->State( 1 )->SetFlags( KAknButtonStateHasLatchedFrame ); - -// Set text and help text to second state -HBufC* buttonText = StringLoader::LoadLC( R_MYAPP_BUTTON_TEXT ); -HBufC* buttonHelpText = StringLoader::LoadLC( R_MYAPP_BUTTON_HELP_TEXT ); -button->State( 1 )->SetTextL( *buttonText ); -button->State( 1 )->SetHelpTextL( *buttonHelpText ); -CleanupStack::PopAndDestroy( 2 ); // buttonText, buttonHelpText + + + + + +Setting +properties for button states +

The state-specific properties and the methods used for setting them for +the generic button include the following:

+ + + + +

Property

+

Method in CAknButtonState

+
+ + + +

Text

+

SetTextL()

+
+ +

Icon

+
    +
  • Dimmed state: SetDimmedIcon()

  • +
  • Normal state: SetIcon()

  • +
  • Pressed-down state: SetPressedIcon()

  • +
+
+ +

Flags

+

SetFlags()

+
+ +

Help text

+

SetHelpTextL()

+
+ + +
+// Set second state as having latched frame +button->State( 1 )->SetFlags( KAknButtonStateHasLatchedFrame ); + +// Set text and help text to second state +HBufC* buttonText = StringLoader::LoadLC( R_MYAPP_BUTTON_TEXT ); +HBufC* buttonHelpText = StringLoader::LoadLC( R_MYAPP_BUTTON_HELP_TEXT ); +button->State( 1 )->SetTextL( *buttonText ); +button->State( 1 )->SetHelpTextL( *buttonHelpText ); +CleanupStack::PopAndDestroy( 2 ); // buttonText, buttonHelpText
\ No newline at end of file