Is it possible to change color of disabled controls?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Is it possible to change color of disabled controls?

Post by mol »

I want to create viewer without edition, based on textboxes.
I want to disable textboxes, but they stay grey - so, is it possible to change colour from grey to blue, eg?

regards, Marek
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Is it possible to change color of disabled controls?

Post by Rathinagiri »

Can't you use readonly feature?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Is it possible to change color of disabled controls?

Post by esgici »

If textbox is always out of editing, I'm using label instead.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
miras
Posts: 11
Joined: Thu Jul 31, 2008 7:57 am

Re: Is it possible to change color of disabled controls?

Post by miras »

Hi Marek!
I use Minigui Ext. and he has _ExtDisableControl ('TextBox_1', 'Form_1') and _ExtEnableControl ('TextBox_1', 'Form_1') for the normal appearance of the textbox.
But you have an example of the TextBox control in the paint HMG example C: \ HMG \ SAMPLES \ TEXTBOX.1.
hope this is what you seek

Best Regards!
Miraš
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Is it possible to change color of disabled controls?

Post by mol »

esgici wrote:If textbox is always out of editing, I'm using label instead.

Regards

--

Esgici
User will be enable to change to edit mode, so labels are unuseful.
Marek
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Is it possible to change color of disabled controls?

Post by mol »

miras wrote:Hi Marek!
I use Minigui Ext. and he has _ExtDisableControl ('TextBox_1', 'Form_1') and _ExtEnableControl ('TextBox_1', 'Form_1') for the normal appearance of the textbox.
But you have an example of the TextBox control in the paint HMG example C: \ HMG \ SAMPLES \ TEXTBOX.1.
hope this is what you seek

Best Regards!
Miraš
thx, I'll observe it.
Regards, Marek
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Is it possible to change color of disabled controls?

Post by mol »

Changing from "DISABLED" to READONLY" was really helpful to me! Thanks all of you for suggestions :lol:
Marek
Post Reply