Announcement

Collapse
No announcement yet.

Rebar Blues

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

  • Guest
    Guest replied
    Yes, your suspicions were correct Lance, I changed the value to
    &H08000 and now it works fine.
    Thank you!

    Regards,
    Adam

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

    Leave a comment:


  • Lance Edmonds
    replied
    I suspect that the value should be unsigned, so try changing it thus:

    %RBS_DBLCLKTOGGLE = &H08000
    or
    %RBS_DBLCLKTOGGLE = &H08000???
    or
    %RBS_DBLCLKTOGGLE = 32768

    If it works, please let us know so I can ask R&D to update COMMCTRL.INC.



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

    Leave a comment:


  • Guest
    Guest started a topic Rebar Blues

    Rebar Blues

    Hello all,
    It's starting to thaw out here in Southeast-lower Michigan but
    I don't think my brain is. Is this the correct definition for
    this:
    %RBS_DBLCLKTOGGLE = &H8000

    At this point I don't know what else to think of. I can't get
    my bands to show on my rebar with this flag set..

    This is my creation call:
    ' Create the Rebar
    hRebar = CreateWindowEx(%WS_EX_TOOLWINDOW, _
    "RebarWindow32", _
    ByVal %NULL, _
    %WS_CHILD Or _
    %WS_BORDER Or _
    %WS_VISIBLE Or _
    %WS_CLIPCHILDREN Or _
    %WS_CLIPSIBLINGS Or _
    %RBS_BANDBORDERS Or _
    %RBS_VARHEIGHT Or _
    %RBS_DBLCLKTOGGLE Or _
    %CCS_NODIVIDER Or _
    %CCS_NOPARENTALIGN, _
    0, 0, _
    rct.nRight, 0, _
    hWnd, _
    %ID_COOLBAR, _
    hInst, _
    ByVal %NULL)

    I just get a thin strip at the top of the window under the title
    bar. I remove the %RBS_DBLCLKTOGGLE flag and everything is
    fine. The three bands I create show just fine then. I bet it is a
    a simple problem due to a lack of understanding on my part(Wouldn't
    be the first time for me!); that is why I can't spot the problem!
    I wonder if someone; if it wouldn't be too much trouble, could
    give me a little insight on the rebar control. I am just using
    the pbnote sample as a guinea pig for this experiment. I am just
    curious as to how the rebar control works. I have picked up alot
    of info by poking around on the forum and over at msdn. Just singing the
    rebar blues...la-da-da-da!

    Your friendly-neigborhood meatball-coder,
    (That's what my code ususally turns out to be! )
    Adam

    ------------------
Working...
X
😀
🥰
🤢
😎
😡
👍
👎