Select Docked Custom Properties Window

J

John

Hi there,

I'm currently trying to change the default behaviour for a shape's double
click event.

What I want to do is move the cursor to a field in the 'docked' custom
properties window and select that field (so that the user can type directly
into that field directly), when a shape is double clicked. (Note I do NOT
want to display the custom properties MDI form (DoCmd(1312))).

So far (see below) I've got a reference to the correct window, but I can't
see how to select the right field (Prop.Name).

Can anyone shed any light on this for me?

Best regards

John

Sub SelectCustPropsWindow()

Dim wdwA As Window
Dim wdwB As Window

For Each wdwA In Application.Windows
If wdwA.Type = visDrawing Then
For Each wdwB In wdwA.Windows
If wdwB.ID = visWinIDCustProp Then
' ??????
End If
Next wdwB
End If
Next wdwA

End Sub
 
J

John

Hello June,

Yes, I too can edit the shapesheet! but I'm trying to reduce not increase
the number of clicks the user makes.

In my current scenario the docked Custom Properties window is already
visible so I just want the Name field in that window to take focus when a
shape is double clicked.

Do you know the anwser to this?

Best regards

John
 
J

John

Hello June,

Thanks for this. I may try this out, but I guess I was hoping to be able to
jusyt select directly.

Nevermind.

Thanks for your help.

Best regards

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top