Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » edit box problem Collapse All
Subject Author Date
Amit Mangal Jul 8, 2008 - 5:09 AM


 


hi All,




I have created a form view derived from CExtWA < CExtWS < CExtAFV < CFormView >  > >  i have created four edit boxes on that form view dialog.problem is that cursor come on one edit box when i click on any of the three edit boxes cursor is still on first edit box if i use keyboard tab key then i can move the cursor to any of the edit box. please any one tell me how can i move cursor on any of the edit box by clicking on edit box. key board tab key is working fine with tab key cursor move to edit box .but why mouse is not working.


I am using prof-uis freeware version .




 




 




Many thnaks in advance.




 




Amit Mangal


 


Amit Mangal Jul 9, 2008 - 12:29 AM

// vvvView.h : interface of the CVvvView class

//

/////////////////////////////////////////////////////////////////////////////


#if !defined(AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_)

#define AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_


#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000




class CVvvView : public CExtWA < CExtWS < CExtAFV < CFormView >  > >

{

protected: // create from serialization only

 CVvvView();

 DECLARE_DYNCREATE(CVvvView)


public:

 //{{AFX_DATA(CVvvView)

 enum{ IDD = IDD_VVV_FORM };

  // NOTE: the ClassWizard will add data members here

 //}}AFX_DATA


// Attributes

public:

 CVvvDoc* GetDocument();


// Operations

public:


// Overrides

 // ClassWizard generated virtual function overrides

 //{{AFX_VIRTUAL(CVvvView)

 public:

 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

 protected:

 virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

 virtual void OnInitialUpdate(); // called first time after construct

 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);

 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);

 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

 virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);

 //}}AFX_VIRTUAL


// Implementation

public:

 virtual ~CVvvView();

#ifdef _DEBUG

 virtual void AssertValid() const;

 virtual void Dump(CDumpContext& dc) const;

#endif


protected:


// Generated message map functions

protected:

 //{{AFX_MSG(CVvvView)

  // NOTE - the ClassWizard will add and remove member functions here.

  //    DO NOT EDIT what you see in these blocks of generated code !

 //}}AFX_MSG

 DECLARE_MESSAGE_MAP()

};


#ifndef _DEBUG  // debug version in vvvView.cpp

inline CVvvDoc* CVvvView::GetDocument()

   { return (CVvvDoc*)m_pDocument; }

#endif


/////////////////////////////////////////////////////////////////////////////


//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


>CPP


 


// vvvView.cpp : implementation of the CVvvView class

//


#include "stdafx.h"

#include "vvv.h"


#include "vvvDoc.h"

#include "vvvView.h"


#ifdef _DEBUG

#define new DEBUG_NEW

#undef THIS_FILE

static char THIS_FILE[] = __FILE__;

#endif


/////////////////////////////////////////////////////////////////////////////

// CVvvView


IMPLEMENT_DYNCREATE(CVvvView, CFormView)


BEGIN_MESSAGE_MAP(CVvvView, CFormView)

 //{{AFX_MSG_MAP(CVvvView)

  // NOTE - the ClassWizard will add and remove mapping macros here.

  //    DO NOT EDIT what you see in these blocks of generated code!

 //}}AFX_MSG_MAP

 // Standard printing commands

 ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)

 ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)

 ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)

END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////

// CVvvView construction/destruction


CVvvView::CVvvView()

 : CExtWA < CExtWS < CExtAFV < CFormView >  > > ( CVvvView::IDD, ((CWnd *)NULL) )

{

 //{{AFX_DATA_INIT(CVvvView)

  // NOTE: the ClassWizard will add member initialization here

 //}}AFX_DATA_INIT

 // TODO: add construction code here


}


CVvvView::~CVvvView()

{

}


void CVvvView::DoDataExchange(CDataExchange* pDX)

{

 CFormView::DoDataExchange(pDX);

 //{{AFX_DATA_MAP(CVvvView)

  // NOTE: the ClassWizard will add DDX and DDV calls here

 //}}AFX_DATA_MAP

}


BOOL CVvvView::PreCreateWindow(CREATESTRUCT& cs)

{

 // TODO: Modify the Window class or styles here by modifying

 //  the CREATESTRUCT cs


BOOL bPreCreated = CFormView::PreCreateWindow(cs);

 cs.style |= WS_CLIPSIBLINGS;

 return bPreCreated;

}


void CVvvView::OnInitialUpdate()

{

 CFormView::OnInitialUpdate();

 ResizeParentToFit();


}


/////////////////////////////////////////////////////////////////////////////

// CVvvView printing


BOOL CVvvView::OnPreparePrinting(CPrintInfo* pInfo)

{

 // default preparation

 return DoPreparePrinting(pInfo);

}


void CVvvView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)

{

 // TODO: add extra initialization before printing

}


void CVvvView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)

{

 // TODO: add cleanup after printing

}


void CVvvView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)

{

 // TODO: add customized printing code here

}


/////////////////////////////////////////////////////////////////////////////

// CVvvView diagnostics


#ifdef _DEBUG

void CVvvView::AssertValid() const

{

 CFormView::AssertValid();

}


void CVvvView::Dump(CDumpContext& dc) const

{

 CFormView::Dump(dc);

}


CVvvDoc* CVvvView::GetDocument() // non-debug version is inline

{

 ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVvvDoc)));

 return (CVvvDoc*)m_pDocument;

}

#endif //_DEBUG


/////////////////////////////////////////////////////////////////////////////

// CVvvView message handlers

Technical Support Jul 8, 2008 - 8:25 AM

Could you send the source code of your form view class to the support mail box at this web site?