on the sample db "Allow Default Shortcut Menu" is enabled so you can view the macros used.
edit the form table1. look at the property of DateTime control.
goto property->others Shortcut menu.
it uses macro1, which in turns call MenuItem macro to show the filter.
if you are ready disable the default shortcut menu and run table1 form again.