×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

how to position a dialog box

how to position a dialog box

how to position a dialog box

(OP)
how do I position a dialog box so it opens in a certain oplace that I determine? currently it opens in the middle of my attachmate screen and so is in the way. I would like to position it to one side of my attachmate screen or have it open in the place where it was when it was closed.

thanks you
smiler44

RE: how to position a dialog box

Hey smiler44,

CODE

Begin Dialog DialogName [x, y,] dx, dy [, caption$] [,.dialogfunction] 
© 1996 - 2004, Attachmate Corporation. All rights reserved.

(x,y) = Position of dialog relative to upper left cornor of parent window
(dx,dy) = Size of window
caption = Text in top of the dialog
dialogfunction = The function used by the dialog

Only dx and dy are mandatory variables.

Hope it helps.

Regards
Lakare

RE: how to position a dialog box

(OP)
Thank you Lakare. I will try this. The only bit I don't understand is [,.dialogfunction] but once looking a the code of my macro it may become clear.
As excited as I am, I'm all macroed and formulaed out for the week. I will practice this next week.
please don't think me ungrateful, I am just worn out

thank you, appreciate it
smiler44

RE: how to position a dialog box

(OP)
Lakare,
seem to have a clear head today.
I have used Begin Dialog userdialog1 [100, 100,] 183, 100, [,.DlgFunction] but it errors.
I tried Begin Dialog userdialog1 [100, 100,] 183, 100 [, home$] [,.DlgFunction] to make sure i used what you had but this too errors when I complie.
any ideas?
thanks smiler44

RE: how to position a dialog box

Do you write the square brackets?

The square brackets just mean it is optional and shall not be a part of the code.

Regards
Lakare

RE: how to position a dialog box

(OP)
Lakare,
I'm sure I did but will go and try again just in case.


smiler44

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close