drop down list
-
Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks
C++Prog
-
Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks
C++Prog
Do you mean drop the list down programatically? m_open.ShowDropDown( TRUE );
- S 50 cups of coffee and you know it's on!
-
Do you mean drop the list down programatically? m_open.ShowDropDown( TRUE );
- S 50 cups of coffee and you know it's on!
no...not programatically.....but its default. Like when I type m_open. After "." it should open me a drop down list and we can select anything. For example "IsWindowEnabled". And then I won't have to type it, I can select and then press ENTER. I hope I explained it now. Thanks
C++Prog
-
no...not programatically.....but its default. Like when I type m_open. After "." it should open me a drop down list and we can select anything. For example "IsWindowEnabled". And then I won't have to type it, I can select and then press ENTER. I hope I explained it now. Thanks
C++Prog
Ah, you mean Intellisense. It's touch and go for me on VC6 - sometimes I get it, sometimes I don't. I have no idea what breaks it.
- S 50 cups of coffee and you know it's on!
-
Ah, you mean Intellisense. It's touch and go for me on VC6 - sometimes I get it, sometimes I don't. I have no idea what breaks it.
- S 50 cups of coffee and you know it's on!
O okay....but thanks anyways for telling me what is it called..Smile. Intellisense..now will remember it. Thanks
C++Prog
-
Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks
C++Prog
First make sure that the variable's type is known (as seen by the compiler) at the point you are typing. If the variable isn't already defined then intellisense won't know what to put in the list. If that doesn't work then possibly the intellisense database is corrupt (that's been happening for many VS versions :)). To rebuild the intellisense database: 1) Exit VS or at least close the project/solution. 2) Find the <solutionname>.ncb file in your solution/project folder. 3) Rename it to something like <solutionname>_bak.ncb if you want to be safe ;) 4) If you didn't rename it then delete it. 5) Open the project/solution in VS and a new .ncb file will be built
-
First make sure that the variable's type is known (as seen by the compiler) at the point you are typing. If the variable isn't already defined then intellisense won't know what to put in the list. If that doesn't work then possibly the intellisense database is corrupt (that's been happening for many VS versions :)). To rebuild the intellisense database: 1) Exit VS or at least close the project/solution. 2) Find the <solutionname>.ncb file in your solution/project folder. 3) Rename it to something like <solutionname>_bak.ncb if you want to be safe ;) 4) If you didn't rename it then delete it. 5) Open the project/solution in VS and a new .ncb file will be built
How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.
C++Prog
-
How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.
C++Prog
celllllllll wrote:
How would I make sure that the variable type is known at the point of typing?
Just like the compiler sees it - startin at the top, through all include files and their included files. If I just start typing: myvariable. Intellisense knows nothing. If I type: CWnd myvariable; myvariable. Intellisense gives me the list of CWnd members, assuming somewhere above these lines I have included the header file declaring the CWnd class. p.s. I still kind of chuckle every time I type the word "Intellisense", considering it is the #1 problem I've had over the years with VS :)
*edit* One other thing - Intellisense has always started working again at some point for me
:laugh: -
How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.
C++Prog
Ah shoot - I said "one other thing" - I lied. Also, if there's a coding error above the line you're typing and intellisense can't parse through the error then it will stop working as well. So, sometimes compiling (if the error isn't obvious) will show you where it's getting hung up. Mark
-
How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.
C++Prog
celllllllll wrote:
How would I make sure that the variable type is known at the point of typing?
It will also fail to work if you are in a method that has not yet been added to the class' .h file.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb