Announcement

Collapse
No announcement yet.

Status bar sizegrip

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

  • Paul Noble
    replied
    A winner indeed - thanks a lot Cecil !

    Leave a comment:


  • Lance Edmonds
    replied
    We have a winner! Well done Cecil!

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Cecil Williams
    Guest replied
    Paul,

    Try adding the style %CCS_BOTTOM. This should drop that
    ugly sizegrip and give more room in your stat-bar. Apparently
    windows assumes you want the grip and is added as default. I
    also add %WS_BORDER with it.

    Cheers,
    Cecil

    ------------------

    Leave a comment:


  • Lance Edmonds
    replied
    It seems to be automatic with Win2K/SP1/IE5.5.

    I did not test on other platforms.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Edwin Knoppert
    replied
    What Windows version do you use?

    On w95 i wanted the way you have it but now i MUST add the style before i see it.



    ------------------

    Leave a comment:


  • Lance Edmonds
    replied
    That seems to be automatic... I experimented for a couple of minutes with:
    Code:
    CALL SetWindowLong(hStatus, %GWL_STYLE, (GetWindowLong(hStatus, %GWL_STYLE) AND NOT %SBS_SIZEGRIP))
    But I could not solve it either (tried a few other %SBS_ styles and combinations too). Anyone have SPY handy to delve into this one?

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Paul Noble
    started a topic Status bar sizegrip

    Status bar sizegrip

    Hi all,

    I have an SDK dialog created using the following style bits -
    Code:
      %WS_CLIPCHILDREN OR %WS_CAPTION OR %WS_SYSMENU OR %WS_THICKFRAME OR %WS_MINIMIZEBOX
    I then add a status bar in the time-honoured fashion -
    Code:
      hStatus = CreateStatusWindow( %WS_CHILD or %WS_VISIBLE, byval %NULL, hWnd, %ID_STATUSBAR )
    The resulting status bar then has a size grip, even though as you can see the %SBARS_SIZEGRIP style
    wasn't specified. As you might have guessed... I don't actually want a sizing grip to appear.

    If I remove the %WS_THICKFRAME from the dialog, the grip disappears, but then the dialog doesn't
    resize. The answer is probably simple, and obvious, but I'm going round in circles here looking
    for it.

    Can anyone set me right here ?

    Thanks in advance -

    Paul
Working...
X