11/22/2024 4:50:13 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Does Grid.PopupMenu.ADD work? Need an object reference to its results!
Posted: 01 Feb 10 2:25 PM
|
Answer Is!!
Sub BuildGridPopupMenu (ByRef TheGrid) DIM I DIM PMI With TheGrid IF .PopupMenu.Count > 0 THEN EXIT SUB ' .PopUpMenu.CLEAR I = 0 .PopUpMenu.ADD .PopupMenu.Items( I).Caption = pmCopySitesParensCaption_DEC .PopupMenu.Items( I).Enabled = True .PopupMenu.Items( I).Visible = True I = 1 .PopUpMenu.ADD .PopupMenu.Items( I).Caption = "Test 1" .PopupMenu.Items( I).Enabled = True .PopupMenu.Items( I).Visible = True End With End Sub
****
I can modify ** existing ** grid popupmenu Items:
DIM I CONST pmCopySitesParensCaption_DEC = "Copy Site(s)" With MyGrid I = 0 If .PopupMenu.Items( I).Caption <> pmCopySitesParensCaption_DEC Then .PopupMenu.Items( I).Caption = pmCopySitesParensCaption_DEC .PopupMenu.Items( I).Enabled = True .PopupMenu.Items( I).Visible = True End If End With
Is there a way to build the popup menu Items at runtime???
With Grid .PopupMenu.Clear ' works. SET PMI = .PopupMenu.Add
seems to work, but no reference to Items(0) or whatever.....
With Grid SET PMI = .PopupMenu.Items.Add blows up
With Grid SET PMI = .PopupMenu.Add SET PMIP = PMI.ITEMS(I) doesn't work..... blows up
Thanks! |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|