Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Posts
    40

    Unanswered: changing positions buttons by users ?

    Hi,

    is it possible to give the users the abilty to move there buttons to a different place on the screen without entering the design mode ( in fact it will be an MDE file ) ?


    Regards
    Erwin
    Bye Erwin

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Yes in so far as they could enter co-ordinates and you could set the buttons' Top and Left properties to these.

    Maybe it would be possible to simulate drag and drop using the mouse over, mouse move and click events. Wouldn't fancy it much myself though unless you can find an example on the web
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Testimonial:
    pootle flump
    ur codings are working excelent.

  4. #4
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    How about this for something simple:
    Code:
    Option Compare Database
    Option Explicit
    'Checkbox with a label that states "Check to position the form"
    Private Sub Check1_BeforeUpdate(Cancel As Integer)
     
        If Me.Check1 Then
            Me.Command0.Caption = "Position The Button"
        Else
            Me.Command0.Caption = "Close Form"
        End If
     
    End Sub
    'The object to move - inactivate whilst being moved
    Private Sub Command0_Click()
    On Error GoTo Err_Command0_Click
     
        If Not Me.Check1 Then
            DoCmd.Close
     
        End If
     
    Exit_Command0_Click:
        Exit Sub
    Err_Command0_Click:
        MsgBox Err.Description
        Resume Exit_Command0_Click
     
    End Sub
    'Code to move the button
    Private Sub Detail_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
     
        Me.Command0.Left = X
        Me.Command0.Top = Y
     
    End Sub
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

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