Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 22 JUN 1998 12:44:31AM Barry Stevens wrote:

I am trying to position a dialog box relative to a control on a mdichild.

The following code is used to get the X,Y pos to pass to the create event of the dialog box to set it's size property.

The dialog box starts higher than the top of the control and the difference appears to be the space between the top of the mdiframe window to the top of the client area. What else do I need to do, or is there a better way to get the actual x,y pos of a control.

CtrlSize=get_property(CtrlEntId,'SIZE')

Xpos= CtrlSize

YPos= CtrlSize

Object=CtrlEntId

Parent=get_property(Object,'PARENT')

loop

Parent=get_property(Object,'PARENT')

while Parent

CtrlSize=get_property(Parent,'SIZE')
Xpos+= CtrlSize
YPos+= CtrlSize
Object=Parent

repeat

TIA

Barry


At 23 JUN 1998 04:59PM Cameron Revelation wrote:

Barry,

I think POPUP and MSG both do this … can you take a look at the source for those? Let me know if you still need help.

Best of luck,

Cameron Purdy

Revelation Software


At 23 JUN 1998 05:00PM Cameron Revelation wrote:

(2nd post)

Barry,

I just remembered the calendar (POPUP_MONTH and POPUP_YEAR) do it too … that source is also in the WORKS!

Cameron Purdy

Revelation Software

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/555bb716175c4d098525662b001a0c6f.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1