|
-
May 10th, 2011, 07:55 AM
#1
About Spin Control
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 ?
-
May 10th, 2011, 09:12 AM
#2
Re: About Spin Control
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
Victor Nijegorodov
-
May 11th, 2011, 07:34 AM
#3
Re: About Spin Control
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
-
May 11th, 2011, 07:41 AM
#4
Re: About Spin Control
Define "I failed to attach it":what exactly failed?
Victor Nijegorodov
-
May 11th, 2011, 09:51 AM
#5
Re: About Spin Control
I believe that for AUTOBUDDY to work the spin control must immediately follow edit control in the tab order.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
May 12th, 2011, 03:11 AM
#6
Re: About Spin Control
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.
-
May 12th, 2011, 03:46 AM
#7
Re: About Spin Control
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
Victor Nijegorodov
-
May 12th, 2011, 05:09 AM
#8
Re: About Spin 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|