Borje,
As you said yourself to Karl: "we have to tweak the code quite a bit.....".
Well, it's just an example how to resolve a certain day from a month. Modify it according to Swedish needs.
Regards,
------------------
Announcement
Collapse
No announcement yet.
Mother's Day
Collapse
X
-
Karl, all code in the source code section are just samples - for
further use by other programmers. In many cases, we have to tweak
the code quite a bit ourselves, to make it useful.
In this case, change lf.lfWeight = %FW_THIN in WM_INITDIALOG
to lf.lfWeight = %FW_BOLD and make the label a bit heigher, like
e.g. 50. The listbox height also needs to be smaller. Copy, paste
and recompile the following if you like:
Code:'in DlgCallBack - %WM_INITDIALOG lf.lfWeight = %FW_BOLD 'in PBMAIN CONTROL ADD LISTBOX, hDlg, 200, years(), 10, 10, 35, 125, %LBS_STANDARD, %WS_EX_CLIENTEDGE CALL BoxCall CONTROL ADD LABEL, hDlg, 201, "", 65, 40, 130, 50, %SS_SUNKEN OR %SS_CENTER
Our Mother's day is the last Sunday in May and Father's day is
the first Sunday in November.. I think.
------------------
Leave a comment:
-
Mother's Day
Fellow programmers,
How to calculate Mother's Day (Father's Day), i.e. the second Sunday of May (third Sun day of June) for a given year.
See the source code forum.
Regards,
Egbert
------------------
Tags: None
Leave a comment: