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!

Setting the Position in Power Builder- HELP Please !

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 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
 
From the online books for PB7:

About x and y values
For main, popup, response, and MDI frame windows, x and y locations are relative to the upper-left corner of the screen. For child windows, x and y are relative to the parent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top