Results 1 to 3 of 3
  1. #1
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Dragging or moving forms (Acess 2000, SR1a)

    I recently installed a touchscreen application at a customer site (golf course). The application is working beautifully except for one thing. Some of the junior golfers take great pleasure in grabbing and dragging some of the forms to the extreme edge of the screen so that they are extremely difficult to bring back into view. Many users don't even know how to do this and they are getting very frustrated with these antics.

    All of the forms in use are pop up and modal. I can set the BorderStyle property of each form to "none" so that the kids can't grab the title bar and drag the form around, but this is not visually pleasing. Is there any other method or setting, either within Access or Windows to prevent windows (forms) from being moved?

    Thanks in advance for any suggestions.

    John
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Dragging or moving forms (Acess 2000, SR1a)

    There are probably methods using the Windows API to prevent users from moving a window, but I'll leave that to the experts.

    Here is a rather primitive, but relatively simple workaround:

    If you set BorderStyle to none, you can simulate a title bar and a border:

    Put a label in the form header section with background color -2147483646 (Active title bar) and foreground (=text) color -2147483639 (Title bar text). Set the caption of this label to the desired form caption and make the text bold. Make the label the full width of the form.

    Put transparent rectangles around the detail section and - if necessary - around the rest of the form header and the form footer section. You'll have to place them just inside the edge of the section(s) in order to be visible.

  3. #3
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Dragging or moving forms (Acess 2000, SR1a)

    Thanks for the suggestion Hans. Works fine.

    John
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •