Initially I am setting default date and time in their respective labels. When the particular Label is highlighted, the increment/decrement should work based on the label. For example, If I Highlight the Hour Label, the up/down button is used to increment/decrement the Value by changing the Label_Caption. I was trying the below code which is not changing the Label_Caption.
Code: Select all
void B_DATE_UPOnClick()
{
if (Box1.Visible == 1)
{
if ( 0 < dd )
{
if( dd < 31)
{
dd++;
c = (char)(dd);
strcpy(Label4_Caption, c);
DrawLabel(&Label4);
}
}
}
}
Up button
denotes the Yellow box Highlighted on DateBox1
denotes the Date (1-31)dd
is the characterc
is the label where caption should be changed when clicking Up button.Label4
When this event is triggered I not getting any changes