creating_20a_20menu_20from_20a_20resource
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| creating_20a_20menu_20from_20a_20resource [2018/03/31 13:19] – external edit 127.0.0.1 | creating_20a_20menu_20from_20a_20resource [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Creating a menu from a resource===== | =====Creating a menu from a resource===== | ||
| - | //by Jon Ripley, June 2006//\\ \\ The normal method of creating a menu is to use the Windows API functions " | + | //by Jon Ripley, June 2006//\\ \\ The normal method of creating a menu is to use the Windows API functions " |
| + | |||
| + | <code bb4w> | ||
| SYS " | SYS " | ||
| SYS " | SYS " | ||
| Line 13: | Line 15: | ||
| SYS " | SYS " | ||
| SYS " | SYS " | ||
| - | \\ | + | </ |
| + | |||
| + | However there may be circumstances when the menu has already been designed and its template is contained as a // | ||
| + | |||
| + | <code bb4w> | ||
| REM Acquire handle to BBCWIN.EXE or BBCWDEM.EXE | REM Acquire handle to BBCWIN.EXE or BBCWDEM.EXE | ||
| SYS " | SYS " | ||
| Line 29: | Line 35: | ||
| REM Destroy the menu and free used memory | REM Destroy the menu and free used memory | ||
| SYS " | SYS " | ||
| - | Naturally this code will only run within the **BB4W IDE**, because if compiled to an executable file the menu resource data will not be present.\\ \\ To load the menu resource data from a different file (for example a DLL) then replace the call to " | + | </ |
| + | |||
| + | Naturally this code will only run within the **BB4W IDE**, because if compiled to an executable file the menu resource data will not be present.\\ \\ To load the menu resource data from a different file (for example a DLL) then replace the call to " | ||
| + | |||
| + | <code bb4w> | ||
| SYS " | SYS " | ||
| + | </ | ||
creating_20a_20menu_20from_20a_20resource.1522502352.txt.gz · Last modified: 2024/01/05 00:18 (external edit)