Ticked lines in a popup menu from list

Michael Mantkowski michaelj at clientrax.com
Fri Dec 5 07:20:31 EST 2014


Hi Bas,

I use this to achieve what you're talking about.  It requires a generic Menu
Class that is defined by the list lines.  But it works great.  You can check
and disable lines as needed.

Mike

Begin reversible block
Set current list #L8
End reversible block
Define list {#S1}
Add line to list {('New')}     ;; 1
Add line to list {('')}     ;; 2
Add line to list {('Edit')}     ;; 3
Add line to list {('Cut')}     ;; 4
Add line to list {('Copy')}     ;; 5
Add line to list {('Delete')}     ;; 6
Install menu PopupMenu
If inMobilFlag
  Disable menu line PopupMenu/6 {6}     ;; Delete
End If
If pvWhichList=0
  If LI_Status=0
    Disable menu line PopupMenu/14 {14}     ;; Reset Flags
  Else If LI_Status=1
    Check menu line PopupMenu/8 {8}     ;; Confirmed
  Else If LI_Status=2
    Check menu line PopupMenu/8 {8}     ;; Confirmed
    Check menu line PopupMenu/9 {9}     ;; Records Pulled
    Check menu line PopupMenu/10 {10}     ;; Check In
  Else If LI_Status=3
    Check menu line PopupMenu/11 {11}     ;; Missed
  Else If LI_Status=4
    Check menu line PopupMenu/8 {8}     ;; Confirmed
    Check menu line PopupMenu/9 {9}     ;; Records Pulled
  End If
End If
Popup menu PopupMenu
Remove menu PopupMenu

*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************



-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Bastiaan Olij
Sent: Thursday, December 04, 2014 10:31 PM
To: OmnisList
Subject: Ticked lines in a popup menu from list

Hi All,

Is there a way to tick menu lines using a popup menu from list just like
you can with a normal menu and $checked?

Cheers,

Bas
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list