Announcement

Collapse
No announcement yet.

Size Grippers on screen?

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

  • Size Grippers on screen?

    If you use the PB/IDE and use the CodeFinder (F2), that screen comes up with what looks like the sizegrips on a status bar in the lower right-hand corner of the Codefinder screen... except there does not appear to be a status bar... which also allows the "OK" and "Cancel" buttons on that screen to be right near the lower edge.

    I would like to duplicate the size-gripper effect in the same place, but I can't figure out how that is done.

    Does anyone have any ideas I might try to get those sizegrippers on the screen without using a status bar?

    Current screen:
    Code:
    #define parm_lv_style  WS_CHILD|WS_VISIBLE |LVS_REPORT |LVS_NOSORTHEADER | WS_BORDER
    
    #define ID_PROC_PARAMS              204   // listview
    #define ID_PARM_PROC_TYPE_CODE      207   //  label
    #define ID_PARM_PROC_ID_NO          209   //  label
    #define ID_PARM_PROC_COMMENT        201   //  label
    // also uses: IDOK                                                                  
    200 DIALOG 7, 17, 450, 208
    STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_THICKFRAME
    CAPTION "Process Parameters"
    FONT 8, "MS Sans Serif"
    BEGIN
        CONTROL         "Proc ID#", -1, "Static", WS_GROUP, 5, 10, 31, 8
        CONTROL         "123456789", ID_PARM_PROC_ID_NO, "Static", WS_GROUP, 45,
                        10, 38, 8
        CONTROL         "Proc Type Code", -1, "Static", WS_GROUP, 93, 10, 54, 8
        CONTROL         "EDI810S", ID_PARM_PROC_TYPE_CODE, "Static", WS_GROUP,
                        150, 10, 59, 8
        CONTROL         "Listview parm_seq, parm_type, col_desc, sort_order  val_seq_no, value ",
                        ID_PARM_PROC_COMMENT, "Static", WS_GROUP, 6, 24, 279, 13
        CONTROL         "", ID_PROC_PARAMS, "syslistview32", parm_lv_style, 6, 42, 440,
                        132
        CONTROL         "&OK", IDOK, "Button", WS_TABSTOP, 153, 186, 40, 14
    END
    Thanks,
    MCM
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

  • #2
    That is called a sizebox or sizegrip control.
    Code:
    ' Create the Sizebox1 size box
    hWndChild = CreateWindowEx(%NULL, _                                             ' extended styles
                               "Scrollbar", _                                       ' class name
                               "", _                                                ' caption
                               %WS_CHILD OR %WS_VISIBLE OR _                        ' window styles
                               %SBS_SIZEGRIP OR %SBS_SIZEBOXBOTTOMRIGHTALIGN, _     ' class styles
                               335, 323, _                                          ' left, top
                               17, 17, _                                            ' width, height
                               hWnd, %IDC_FORM1_SIZEBOX1, _                         ' handle of parent, control ID
                               ghInstance, BYVAL %NULL)                             ' handle of instance, creation parameters
    Dominic Mitchell
    Phoenix Visual Designer
    http://www.phnxthunder.com

    Comment


    • #3
      By the way, it belongs to the scrollbar class and has four meaningful styles.
      SBS_SIZEBOX
      SBS_SIZEBOXBOTTOMRIGHTALIGN
      SBS_SIZEBOXTOPLEFTALIGN
      SBS_SIZEGRIP
      Dominic Mitchell
      Phoenix Visual Designer
      http://www.phnxthunder.com

      Comment


      • #4
        Thank you thank you. Screen Looks really cool now.

        I would have never guessed that was a version of the scrollbar control.

        Of course, I never would have guessed a group box was a button, either.
        Michael Mattias
        Tal Systems Inc. (retired)
        Racine WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Whenever I see something in a program and I don't know its origins, I use a WinSpy type of program: For example, http://www.catch22.net/software/winspy.asp It is great for determining the class and styles of a control.
          Paul Squires
          FireFly Visual Designer (for PowerBASIC Windows 10+)
          Version 3 now available.
          http://www.planetsquires.com

          Comment


          • #6
            I'll have to try that spy thing. It does look pretty handy.

            But have to wonder about....
            New in version 1.5!

            Retrieve passwords from password-edit controls!
            Edit window styles!
            Alter window captions
            Great. Can't wait to get this tool into idle hands.

            MCM
            Michael Mattias
            Tal Systems Inc. (retired)
            Racine WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              Originally posted by Michael Mattias View Post
              I'll have to try that spy thing. It does look pretty handy.

              But have to wonder about....


              Great. Can't wait to get this tool into idle hands.

              MCM
              XP+ is a little better at restricting this ability. It mostly effects previous versions of Winderz. Most important ones that I needed I couldn't get with those types of tools because XP blocked it.

              Winspector is my favorite spy tool.
              http://www.windows-spy.com/
              sigpic
              Mobile Solutions
              Sys Analyst and Development

              Comment

              Working...
              X