|
-
Dec 10th, 2003, 08:47 AM
#1
Thread Starter
Supreme User
XP SmartMenu > Popup?
Using the XP SmartMenu control, how can you make it behave like a popup menu, on right click?
Thanks
-
Dec 10th, 2003, 08:49 AM
#2
PowerPoster
Well
VB Code:
With SmartMenuXP1
XX = .ClientToScreenX(Me.hWnd, XTEMP) + 275
YY = .ClientToScreenY(Me.hWnd, YTEMP)
.PopupMenu .MenuItems.Key2ID("keyEmp"), XX, YY, 0
End With
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Dec 10th, 2003, 08:50 AM
#3
Thread Starter
Supreme User
Thanks, ill try now...
-
Dec 10th, 2003, 09:00 AM
#4
Thread Starter
Supreme User
Didnt work, i dont know where you put that code, and do i replace XX YY?
-
Dec 11th, 2003, 09:06 AM
#5
PowerPoster
Well
This is how I use it... a popup depending upon item selected ina listview large icon display...
VB Code:
'*******************************************************************************
' ListView1_DblClick (SUB)
'
' DESCRIPTION:
' ACTION TO PERFORM ON DOUBLE-CLICK OF ICON
'*******************************************************************************
Private Sub ListView1_DblClick()
' SINCE ALL AREAS ARE BASICALLY FOR PRINTING ENSURE THAT PRINTER INSTALLED...
If PRINTERINSTALLED = False Then
MsgBox "Program cannot find printer installed. You cannot access Invoice functions until this " & _
"issue is resolved.", vbCritical + vbOKOnly, "Printer Error"
Exit Sub
End If
If m_CurrentItem Is Nothing Then
MsgBox "Select a Task to Perform"
Else
Dim hMenu As Long, hSub As Long, ItemID As Long
Select Case m_CurrentItem.Text
Case "New Invoices"
With SmartMenuXP1
xx = .ClientToScreenX(MDIForm1.hWnd, xTemp) + 275
yy = .ClientToScreenY(MDIForm1.hWnd, yTemp)
.PopupMenu .MenuItems.Key2ID("KEYNEW"), xx, yy, 0
End With
Case "Existing Invoices"
With SmartMenuXP2
xx = .ClientToScreenX(MDIForm1.hWnd, xTemp) + 275
yy = .ClientToScreenY(MDIForm1.hWnd, yTemp)
.PopupMenu .MenuItems.Key2ID("KEYEXT"), xx, yy, 0
End With
End Select
End If
End Sub
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Dec 11th, 2003, 11:36 AM
#6
Thread Starter
Supreme User
Nah, still doesnt work. Could you make a simple example for me?
Thanks
-
Dec 19th, 2003, 11:37 AM
#7
Thread Starter
Supreme User
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|