On Wed, Aug 15, 2012 at 3:24 PM, Art Heimsoth <artst...@artheimsoth.com> wrote:
> How do I control the format of the DateTime with the RC file? It is coming > up with the TIME format - I would like to have the CENTURY format. Is > that something that needs to be done after the resource file is loaded using > setFormat statement? You should be able to assign different styles to the control in Resource Builder. The style you probably want is: DTS_SHORTDATECENTURYFORMAT which gives you something like 8/15/2012. If you select the control in Resource Builder there should be something that lets you change styles. Usually resource editors have a status line or tool tip that gives a brief explanation of the different styles. But, I haven't used Resource Builder for 5 or 6 years and don't recall exactly how it is laid out. For what it's worth, I think resEdit is a better resource editor, and it's free. You can download it from: http://www.resedit.net/ resEdit has a list of properties that you can assign to a control, usually on the left hand side. When you click one of the properties in the list, at the bottom is a status area that explains the property. For example with a DateTimePicker, there is the Format property. On the bottom it says: Format - One of: Short date, long date, or Time. The Format property in the list has a drop down combo box that lets you pick: Long Date, Short Date, Time, and Short Date Century. If you pick Short Date Century, resEdit adds the DTS_SHORTDATECENTURYFORMAT style to the control. Most all resource editors work in a similar fashion. You just need to explore in Resource Builder and see what does a similar thing. -- Mark Miesfeld ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users