I created new Dropdown calendar facility in new window called - w_calc(response window) .
I'm planned to open this window in another window's datawinodw control column. If i click the date column it will show the caldenar control and select the appropriate date.
The Problem is setting the correct position of that Resposne Calendar window. Actually i need to show the window down after the particular column . and it have to automatically aligh depends on the other columns X and Y Position.
Advance Thanks for this.
This is the code i wrote in the Window function(wf_set_position)
ai_x = w_parent.PointerX() - Width + 5
ai_y = w_parent.PointerY() + w_genapp_frame.workspaceY()
// Check if calendar excides frame Width
IF ai_x < 0 THEN ai_x = ai_x + Width
IF ai_y + Height > w_parent.WorkSpaceHeight()
THEN ai_y -= Height
Thank you for your cooperation.
I'm planned to open this window in another window's datawinodw control column. If i click the date column it will show the caldenar control and select the appropriate date.
The Problem is setting the correct position of that Resposne Calendar window. Actually i need to show the window down after the particular column . and it have to automatically aligh depends on the other columns X and Y Position.
Advance Thanks for this.
This is the code i wrote in the Window function(wf_set_position)
ai_x = w_parent.PointerX() - Width + 5
ai_y = w_parent.PointerY() + w_genapp_frame.workspaceY()
// Check if calendar excides frame Width
IF ai_x < 0 THEN ai_x = ai_x + Width
IF ai_y + Height > w_parent.WorkSpaceHeight()
THEN ai_y -= Height
Thank you for your cooperation.