IonicWind Software

IWBasic => General Questions => Topic started by: Brian on December 24, 2023, 09:04:36 AM

Title: Time Picker
Post by: Brian on December 24, 2023, 09:04:36 AM
Hi,

I want to change the font in this Time Picker to Verdana, 10 point, and also change the background colour. Any ideas, anyone?

Brian
Title: Re: Time Picker
Post by: Egil on December 24, 2023, 01:47:13 PM
Hi Brian,

I have always used SETFONT for changing fonts and SETWINDOWCOLOR, FRONTPEN and BACKPEN as needed to maniputlate the colors.
But presently not able to load anything into IWB here, so unable to test these statements with your code.

Good luck,
Egil.

Almost forgot.... HAPPY CHRISTMAS!
Title: Re: Time Picker
Post by: Brian on December 25, 2023, 06:14:41 AM
Managed to get the font to change, but no joy with colouring the Time Picker

Brian
Title: Re: Time Picker
Post by: LarryMc on December 25, 2023, 06:35:38 AM
I think you are going to have to send the control the DTM_SETMCCOLOR message with wparam set to MCSC_MONTHBK and lparam set to the color of the background you want.
And then send the control the DTM_SETMCCOLOR message with wparam set to MCSC_TEXT  and lparam set to the color of the text you want.

That's my best guess.

Title: Re: Time Picker
Post by: Brian on December 26, 2023, 07:45:19 AM
Larry,

Thanks for the suggestions, but I didn't get anywhere with them. Never mind, I was happy just getting the font to match my other edit control-defined fonts

Brian