ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text Input Controls in a undocked Autocad AcDialogBar always lost focus

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
216 Views, 0 Replies

Text Input Controls in a undocked Autocad AcDialogBar always lost focus

Hello,

I build a simple application that uses one MFC CEditBox in a AcDialogBar
(created by ArxWizard) .
It is not possible to input a string in the CEditBox if the AcDialogBar is
undocked because the CEditbox always lost the Focus to the Commandline oder
the Acad Mainframe.


If the AcDialogBar id docked the input works fine.

Can you help me ?

Regards

Peter



This code I used to create the Dialogbar:

AfxSetResourceHandle (_hdllInstance) ;
CWhatEver *p =new CWhatEver;
p->Create (acedGetAcadFrame (), CWhatEver::IDD,WS_CHILD | CBRS_BORDER_LEFT |
CBRS_BORDER_RIGHT | CBRS_SIZE_DYNAMIC,AFX_IDW_CONTROLBAR_FIRST + 32 + 1) ;
AfxSetResourceHandle (acedGetAcadResourceInstance ()) ;
p->EnableDocking (CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT) ;
acedGetAcadFrame ()->FloatControlBar (p, CPoint (100, 100), CBRS_ALIGN_TOP)
;
acedGetAcadFrame ()->ShowControlBar (p, TRUE, TRUE) ;
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost