How to attach spin control to Edit Control which is designed in older version of the project, in MFC
dialog box.
The older version Edit Boxes are w/o spin controls .. and I need spin control now.
What to do ?
Printable View
How to attach spin control to Edit Control which is designed in older version of the project, in MFC
dialog box.
The older version Edit Boxes are w/o spin controls .. and I need spin control now.
What to do ?
Either use a resource editor to add the spin control and set its properties like UDS_AUTOBUDDY, UDS_AUTOBUDDY and so on
or create it dynamically using CSpinButtonCtrl::Create
Thank u Sir ..
I have already tried that but with resource editor , I failed to attach it to required Edit Box.
Now I will try dynamically
Define "I failed to attach it":what exactly failed?
I believe that for AUTOBUDDY to work the spin control must immediately follow edit control in the tab order.
Sir ,
what mr Vald has said is 100 % correct .
U need to create Edit Control and then Spin Control with Auto buddy on . Then it is attached to
the Edit Control.
I have old dialog box with many Edit Controls in that and I need to attach Spin control to some
of them as an additional feature.
I tried hard to attach Spin afterwards .. not possible.
Either I need to delete Edit Controls and put new ones with spin or altogether a new dialog box.
I was just trying for any other simpler way.
You don't need to delete anything. Just add Spin controls and then change the Tab Order of the controls to let every spin follow the corresponding buddy edit control
Thankx a lot sir .. for answering my simple query.
I am learning VC++ on my own and working on the project.
and always get a gr8 help from Net.
Thank u once again