-
November 4th, 2003, 03:55 PM
#1
How to disable TabStops
I would like to disable some (or all) TabStops in a dialog box.
the following:
dlg.m_MyWord.TabStop=FALSE;
produces the error: TabStop is not a member of CString.
where m_MyWord identifies a ReadOnly edit window.
What did i do wrong?
TIA
--------------------------------------------
http://www.volfirst.net/~sirjorj/index.html
---------------------------------------------
-
November 4th, 2003, 04:11 PM
#2
I'm guessing you're used to VB ? MFC apps don't usually have those kinds of 'properties'.
Enableing/Disabling tabstop will take a bit more effort than that.
I'm assuming here that m_MyWord is a control variable (CEdit ?) and not a regular value type (int, word, dword...)
In that case, you'd use following:
to enable tabstop:
m_MyWord.ModifyStyle(0, WS_TABSTOP);
to disable tabstop
m_MyWord.ModifyStyle(WS_TABSTOP, 0);
-
November 4th, 2003, 06:41 PM
#3
Using MFC, at design time you can just uncheck the "Tab Stop" check box
-
November 4th, 2003, 06:50 PM
#4
Alternatively you can put some code in the OnTabStop functions if you want it to do really neat things which VB can't do
Microsoft LVP - Least Valuable Professional
Please rate this post... Pleeeeeeaaassee!!!
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
|