Announcement

Collapse
No announcement yet.

%ws_sysmenu

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

  • %ws_sysmenu

    I just got PB/9.0
    however PowerBASIC, Inc. told me that I can continue to use PB Forms 1.5.1

    I am having a problem with one thing in PB/Forms
    I want a System Menu in my window

    and I selected %WS_SYSMENU and it still doesn't show up

    when I test the dialog in PB/Forms

    the system menu doesn't show up

    Brian Heibert
    [email protected]
    Brian Heibert
    [email protected]
    http://www.heibertsoftware.com
    http://www.winvocalassist.com
    http://www.heibert.net

  • #2
    It will depend upon what other styles you have selected. Let's not try to do all the combinations!

    If you look at the defaults, you will have something like

    WS_BORDER
    WS_DLGFRAME
    WS_MODALFRAME

    You could try restoring to these styles. Otherwise, what styles are you using?

    BTW, it's always best to show code to illustrate your point. Compileable code is best.

    Comment


    • #3
      Dialog 1 is what my window looks like
      Dialog 2 has the icon that I want to appear in dialog 1
      Dialog 2 is the window editor in PB/forms
      Dialog 1 is my actual window when the program runs.

      Dialog 1:


      Dialog 2:


      Brian

      PS: I just realized Dialog 2 says Dialog 1 in the title, so I fixed this
      post so you can see what is Dialog 2 by the Dialog 2:
      Brian Heibert
      [email protected]
      http://www.heibertsoftware.com
      http://www.winvocalassist.com
      http://www.heibert.net

      Comment


      • #4
        As well as adding %WS_SYSMENU style you need to..

        1. Remove the %DS_MODALFRAME style. - This causes PBForms to add a default (%IDI_APPLICATION) icon to the dialog's title bar.

        or
        2. Add this line in the ShowDialog function:
        Code:
        #PBForms End Dialog 
        Dialog Send hDlg, %WM_SETICON, %ICON_SMALL, LoadIcon(%NULL, ByVal %IDI_APPLICATION)
        or
        3. Add your own Icon via Dialog Properties / General / (Click the [...] button to browse.)

        Rgds, Dave

        Comment

        Working...
        X