h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_CreateSubMenu h2. Wimp_CreateSubMenu h5. (SWI &400E8) |_<. Entry | | |R1 |Pointer to [[Menu Block|sub-menu block]] | |R2 |X co-ordinate of top left of sub-menu | |R3 |Y co-ordinate of top left of sub-menu | |_<. Exit | | |R0 |Corrupt | h4. Use The purpose of this call is to create a sub-menu. When a sub-menu is requested by the Wimp to be opened, it generates a [[Message_MenuWarning|Message_MenuWarning]] event code. Applications should respond by using this call to create the sub-menu. The contents of R1 to R3 are obtained from event code above at offsets +20, +24 & +28 h4. See also * [[Wimp_CreateMenu|Wimp_CreateMenu]]