Announcement

Collapse
No announcement yet.

%ws_sysmenu

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

  • Dave Biggs
    replied
    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:
    [COLOR=silver]#PBForms End Dialog[/COLOR] 
    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.)

    Leave a comment:


  • Brian Heibert
    replied
    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:

    Leave a comment:


  • Chris Holbrook
    replied
    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.

    Leave a comment:


  • Brian Heibert
    started a topic %ws_sysmenu

    %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]
Working...
X