⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s60uicodeextextcontrol.h

📁 symbian os c++ 自定义界面
💻 H
字号:
/*
* ============================================================================
*  Name     : S60UICodeExTextControl.h
*  Part of  : S60UICodeEx
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2005-2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ============================================================================
*/

#ifndef CS60UICODEEXTEXTCONTROL_H
#define CS60UICODEEXTEXTCONTROL_H

// INCLUDE FILES
#include <coecntrl.h>

// CLASS DECLARATION
/**
* CS60UICodeExTextControl control class.
* 
*/
class CS60UICodeExTextControl : public CCoeControl
    {
    public: // Constructors and destructor
        
        /** 
		 * First phase of two-phased constructor
		 * 
		 * @return the created CS60UICodeExTextControl object
		 */
		static CS60UICodeExTextControl* NewL( 
		    const TRect& aRect, 
		    const CCoeControl* aParent );
        
        /**
         * Destructor.
         */
        virtual ~CS60UICodeExTextControl();

    public: // Methods from base class
        
        void Draw(const TRect& aRect) const;

		void SizeChanged();
		

	public:	// New methods

        /**
        * Copies user input text from the given object to iText buffer.
        * @param aText Reference to the user input text.
        * @return Nothing
        */   					
		void SetText( TDes& aText );
		
		/**
        * Called when focus of this control has changed.
        * @param aFocus ETrue if this control has focus.
        * @return Nothing
        */ 
		void ControlFocusGained( TBool aFocus );

    private:
    
        /**
         * Second phase of constructor.
		 *
         */
        void ConstructL( const TRect& aRect, const CCoeControl* aParent );

    private:	// Data
		
		// Storage buffer for user input
		TBuf<200>   iText;
				
        // If ETrue, then this control has focus.				
		TBool		iFocus;
		
    };
    
#endif // CS60UICODEEXTEXTCONTROL_H

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -