New topic: 

Icons in ContextualMenus ?

<http://forums.realsoftware.com/viewtopic.php?t=47176>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        RicSum          Post subject: Icons in ContextualMenus ?Posted: 
Wed Mar 06, 2013 4:39 am                         
Joined: Fri Jun 05, 2009 4:54 pm
Posts: 434
Location: London, England                Hi,
Can someone please point me in the right direction to add an icon for each of 
my "contextual menu" choices (OS = windows ) ?

ListBox "ConstructContextualMenu" code is as follows:

Dim row As Integer = Me.RowFromXY(X, Y)
If row > -1 Then
  base.append(New MenuItem("Add a New Stat"))
  base.append(New MenuItem(MenuItem.TextSeparator))
  base.append(New MenuItem("Edit or Delete the Selected Stat"))
  base.append(New MenuItem(MenuItem.TextSeparator))
  Return True  //display the contextual menu
else
  base.append(New MenuItem("Add a New Stat"))
  base.append(New MenuItem(MenuItem.TextSeparator))
End If


and this in the ContextualMenuAction:

Select Case hititem.text
case "Add a New Stat"
  win_Add.ShowModal
case "Edit or Delete the Selected Stat"
  win_Edit.showModal
End select

Return True


Thank you all in advance.      
_________________
RealStudio Professional Edition 2012 r2
Developing on OS X  10.8 (Mountain Lion)
Deploying on Windows XP / 7 / 8  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to