

Here is a sample of what your screen should resemble.
You will also need to place a static control at the top center to represent the month name. Name it “STC_Month”. Now place to buttons, one on the left and one on the right. This buttons will be used to change the month we are viewing to the next or previous months. I named the ones on my project “btn_cal_prevmonth” and “btn_cal_nextmonth”.
So now that we have our visual controls on the screen, we need to start creating some simple procedures. We’re going to create 4 procedures, most of which will start with the name “Cal_”.
The forth procedure is one that came from the calendar popup control that ships with WinDev. Now lets get into the guts of the cal_build procedure.