Page 1 of 1

Adding/Removing tabstop

Posted: Tue May 16, 2006 5:43 pm
by Mdandrea
I was wondering if there was a way to add or remove the WS_TABSTOP from a get on a dialog ? The dialog is from an RC file and could also be from a dll file

Re: Adding/Removing tabstop

Posted: Tue May 16, 2006 5:55 pm
by Enrico Maria Giordano
Can't you just disable the control you don't want to have tabstop?

EMG

Posted: Wed May 17, 2006 11:53 am
by Mdandrea
Disabling isn't going to work in the situation.

because sometimes control 100 ( for example ) will be a say, and sometimes it will be a get and control 200 etc

so rathert than having duplicates of each control in the rc I have everything working except for removing the tabstop when its a say, or conversely adding a tabstop when its a get.

Posted: Wed May 17, 2006 11:57 am
by Enrico Maria Giordano
SAYs can't have tabstop, as far as I know. What am I missing?

EMG

Posted: Fri May 19, 2006 5:54 am
by Mdandrea
You're right ... but you can use the same edit text box control in an rc or dll file, for a get or a say, with the read only property. when it's redefined as a "Say" , i have to set the colors to look like a normal "say". the only problem is the tab stop. I would like to remove it when i use the text box control as a "say" , or conversely add it when its used as a get.

Posted: Fri May 19, 2006 7:01 am
by Enrico Maria Giordano
You can disable the GET and change its default disabled-color (oGet:lDisColors) to CLR_BLACK.

EMG

Posted: Sat May 20, 2006 5:15 pm
by James Bott
Why not just use a normal disabled GET? This is variable data that you are displaying--either editable or not. If you display non-editable data in a disabled GET (with the disabled colors) then everyone knows what it is. This is standard behavior. If you deviate from the standard then you confuse people.

Posted: Fri Jun 09, 2006 9:34 pm
by Mdandrea
That's kinda what I did in the end .. except I didn't want the disable look but i did use the button colour as the background colour for the get. I had to hide some as well. THanks for all suggestions