You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Do a file menu just like your edit menu in the other thread. Add a "&New" item with value %ID_NEW.
When you get CBMSG=%WM_COMMAND and CBCTL = %ID_NEW in your Dialog procedure, the user clicked File/New. Do whatever it is you want to do at that time.
All the PB/FORMS or other code can do is provide the user with boxes or buttons or menus, and notification messages to your dialog procedure when the user clicks those buttons or menus or types in a box.... it's still up to you to create the code to be executed when these things happen.
Do a file menu just like your edit menu in the other thread. Add a "&New" item with value %ID_NEW.
When you get CBMSG=%WM_COMMAND and CBCTL = %ID_NEW in your Dialog procedure, the user clicked File/New. Do whatever it is you want to do at that time.
All the PB/FORMS or other code can do is provide the user with boxes or buttons or menus, and notification messages to your dialog procedure when the user clicks those buttons or menus or types in a box.... it's still up to you to create the code to be executed when these things happen.
How do I close a window and open a new copy of the window from a PowerBASIC forms file also how do I clear the DDT %IDC_RICHEDIT1 edit field.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment