Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Does Grid.PopupMenu.ADD work? Need an object reference to its results!
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Does Grid.PopupMenu.ADD work? Need an object reference to its results!Your last visit to this thread was on 1/1/1970 12:00:00 AM
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!
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:54:49 PM