IsComposing() public static méthode

Indicates whether a compose sequence is in progress
public static IsComposing ( ) : bool
Résultat bool
Exemple #1
0
        private static void ComposerStateChanged(object sender, EventArgs e)
        {
            m_tray_icon.Icon = Composer.IsDisabled()  ? Properties.Resources.IconDisabled
                             : Composer.IsComposing() ? Properties.Resources.IconActive
                                                      : Properties.Resources.IconNormal;
            m_tray_icon.Text = Composer.IsDisabled()
                              ? i18n.Text.DisabledToolTip
                              : String.Format(i18n.Text.TrayToolTip,
                                              Settings.ComposeKey.Value.FriendlyName,
                                              Settings.GetSequenceCount(),
                                              Program.Version);

            m_disable_item.Checked = Composer.IsDisabled();
        }
Exemple #2
0
 private System.Drawing.Icon GetCurrentIcon()
 {
     return(GetIcon((Composer.IsDisabled() ?     0x1 : 0x0) |
                    (Composer.IsComposing() ?    0x2 : 0x0) |
                    (Updater.HasNewerVersion() ? 0x4 : 0x0)));
 }