BackColor in COMBOBOX and DATEPICKER

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

BackColor in COMBOBOX and DATEPICKER

Post by Pablo César »

In HMG 3, is it possible to change backcolor on string returned in a TextBox from a ComboBox ?
Because I am changing color of all TEXTBOX of my edit function when fields are empty or zero. Just to call attention of user that need to fill up itens. One of these itens is a combobox which starts with value zero. Picture below showing what I am needing:

Image

I have not see any parameter like backcolor in COMBOBOX in HMG help.

I think, this is important and will be important for HMG4 too.

If there is not native solution, someone knows how to change backcolor in combobox even doing thru pragma in C ?

P.S.: In datepicker even conditioning with current date to change backcolor: it is not changing.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: BackColor in COMBOBOX and DATEPICKER

Post by salamandra »

Hi Pablo ;) ,
Please, visit http://dicasprog.codigolivre.org.br/hmg/0002.php.
and take a look at the solution that Marcos Antonio Gambeta found for
for change colors of Datepicker Control ( ** In MiniGui **).
May be this helps you


[]´s Salamandra
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

BackColor in COMBOBOX and DATEPICKER

Post by Pablo César »

Thank you Salamandra for your suggestion. I have look up it but I do no founding rights parameters to do it in C.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

BackColor in COMBOBOX and DATEPICKER

Post by Pablo César »

Still without solution for combobox and datepicker colors in HMG 3. The only way found is to replace it with a empty image and when be clicked make action to a function containing a combobox and other for datepicker. The interesting is I also solved with radical method for empty date for datepicker too. See this is my image: Image
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
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: BackColor in COMBOBOX and DATEPICKER

Post by Rathinagiri »

That's nice. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply