1/13/2024 0 Comments Reduce white space in time picker![]() If I have to leave it as is, can anyone tell me if, in their opinion, I am playing with fire e.g. If I can't, can anyone suggest a better way to strip the spaces.ģ. How can I get the date picker to stop putting white space around the long form text?Ģ. Case $DTN_DATETIMECHANGE Sent by a date and time picker (DTP) control whenever a change occurs _GUICtrlDTP_SetFormat ( $hDTP, "dddd: MMMM d, yyyy" ) $tInfo = DllStructCreate ( $tagNMDATETIMECHANGE, $ilParam ) Return 0ġ. Loop until user exits Do _GUICtrlDTP_SetFormat ( $hDTP, "'" & ControlGetText ( $hDTP, "", "" ) & "'" ) Until GUIGetMsg ( ) = $GUI_EVENT_CLOSE. I have corrected this using the ControlGetText() and _GUICtrlDTP_SetFormat() in the message loop and $DTN_DATETIMECHANGE case handler, but this is an ugly, nasty and possibly dangerous way to fix a simple trim function. In fact the long form of the month name and weekday are centered in a fixed length field with spaces padding both ends so 'Monday', for example, has two spaces added at each end. (Underscores show spaces.) "_Thursday_ : _August_ 15, 2013" However, in the edit box itself I get spurious white space as follows. The calendar dates are picked and displayed in the edit box and if I do a $sDate = ControlGetText ( $hDTP, "", "" ) ![]() I issue the following command, _GUICtrlDTP_SetFormat ( $hDTP, "dddd':' MMMM dd, yyyy" ) I would like to display a date as, for example, "Thursday: August 15, 2013". I have created a DTP control using the example from _GUICtrlDTP_Create help page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |