Adding/Removing tabstop

Adding/Removing tabstop

Postby Mdandrea » Tue May 16, 2006 5:43 pm

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

Re: Adding/Removing tabstop

Postby Enrico Maria Giordano » Tue May 16, 2006 5:55 pm

Can't you just disable the control you don't want to have tabstop?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Mdandrea » Wed May 17, 2006 11:53 am

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

Postby Enrico Maria Giordano » Wed May 17, 2006 11:57 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Mdandrea » Fri May 19, 2006 5:54 am

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

Postby Enrico Maria Giordano » Fri May 19, 2006 7:01 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Sat May 20, 2006 5:15 pm

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.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Mdandrea » Fri Jun 09, 2006 9:34 pm

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


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 19 guests