HI
I create a first version of an wordfile for PML (Aveva PML - Programmable Macro Language),the file of attachment is PML.RAR, it include the PML.UEW ,gphViews.pmlobj,monitormain.pmlfrm,isocutpipe.pmlfrm
the file of the gphViews.pmlobj,monitormain.pmlfrm can't be folded correctly,the isocutpipe.pmlfrm can be fold correctly;
the reason of the gphViews.pmlobj,monitormain.pmlfrm can't be folded correctly is not set righty the ignore fold string.
there are some gadget(control) for PML Form,such as menu,view,bar etc
the define of menu gadge is
menu .cntrl
add |Borders On/Off| |call !!view3DSet(_view, 'Borders')|
add |Shading On/Off| |call !!view3DSet(_view, 'Shaded')|
add |Background Colour...| |call !!view3DColourSet(_view)|
add |ID Colour...| menu .idColours
add |Perspective On/Off| |call !!view3DSet(_view, 'Perspective')|
add separator
add |Close| |call !!notDoneYet()|
exit
I set the value of the /Open Fold Strings and /Close Fold Strings in the PML.UEW
such as:
/Open Fold Strings = "{" "define object " "define Function " "define method " "frame" "rgroup" "var list" "bar" "view" "menu" "setup form " "do" "handle" "if" "elseIf" "else"
/Close Fold Strings = "}" "endobject" "endfunction" "endmethod" "endhandle" "elseIf" "endif" "enddo" "else" "exit"
but I want to ignore the line of the definition of the menu gadget:
add |ID Colour...| menu .idColours
my question is How to set ignore fold string for 'add |ID Colour...| menu .idColours',I try to set the follow Ignore fold strings:
/Ignore Fold Strings = ... "add * menu " ...
but it don't work correctly?
Can anyone show me how to set the right ignore fold strings?
anather question is
Can the regular expression be used in the ignore fold string?
my eMail is : [email protected]
I create a first version of an wordfile for PML (Aveva PML - Programmable Macro Language),the file of attachment is PML.RAR, it include the PML.UEW ,gphViews.pmlobj,monitormain.pmlfrm,isocutpipe.pmlfrm
the file of the gphViews.pmlobj,monitormain.pmlfrm can't be folded correctly,the isocutpipe.pmlfrm can be fold correctly;
the reason of the gphViews.pmlobj,monitormain.pmlfrm can't be folded correctly is not set righty the ignore fold string.
there are some gadget(control) for PML Form,such as menu,view,bar etc
the define of menu gadge is
menu .cntrl
add |Borders On/Off| |call !!view3DSet(_view, 'Borders')|
add |Shading On/Off| |call !!view3DSet(_view, 'Shaded')|
add |Background Colour...| |call !!view3DColourSet(_view)|
add |ID Colour...| menu .idColours
add |Perspective On/Off| |call !!view3DSet(_view, 'Perspective')|
add separator
add |Close| |call !!notDoneYet()|
exit
I set the value of the /Open Fold Strings and /Close Fold Strings in the PML.UEW
such as:
/Open Fold Strings = "{" "define object " "define Function " "define method " "frame" "rgroup" "var list" "bar" "view" "menu" "setup form " "do" "handle" "if" "elseIf" "else"
/Close Fold Strings = "}" "endobject" "endfunction" "endmethod" "endhandle" "elseIf" "endif" "enddo" "else" "exit"
but I want to ignore the line of the definition of the menu gadget:
add |ID Colour...| menu .idColours
my question is How to set ignore fold string for 'add |ID Colour...| menu .idColours',I try to set the follow Ignore fold strings:
/Ignore Fold Strings = ... "add * menu " ...
but it don't work correctly?
Can anyone show me how to set the right ignore fold strings?
anather question is
Can the regular expression be used in the ignore fold string?
my eMail is : [email protected]
- pml_uew.rar (18.66 KiB) 262
- PML UEW file and PML File