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 select the appropriate date. I faced a problem seeting the correct position of that window. Actually i need to show tha window down after the particular column height. Please any body having any tips please help me ! Thanks a Lot. I mentioned what i wrote to set position , but its not wroking properly...please see the following...
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
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