Announcement

Collapse
No announcement yet.

File New

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File New

    How do I handle File New?

    I have a PB/Forms window that has a edit field

    Brian

    PS: If this isn't enough information I will add more tomorrow.
    Brian Heibert
    [email protected]
    http://www.heibertsoftware.com
    http://www.winvocalassist.com
    http://www.heibert.net

  • #2
    ???

    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.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Originally posted by Michael Mattias View Post
      ???

      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.
      Brian Heibert
      [email protected]
      http://www.heibertsoftware.com
      http://www.winvocalassist.com
      http://www.heibert.net

      Comment

      Working...
      X