Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position Setting - Please Help Me !

Status
Not open for further replies.

Sathmaha

Programmer
Aug 4, 2003
8
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top