Adding/Removing tabstop

Post Reply
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Adding/Removing tabstop

Post 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
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Post 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.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

SAYs can't have tabstop, as far as I know. What am I missing?

EMG
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Post 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.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

You can disable the GET and change its default disabled-color (oGet:lDisColors) to CLR_BLACK.

EMG
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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.
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Post 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
Post Reply