#re-painting in VB
15 messages in this thread
I have a 3d-framed label control displayed on a form: to obtain it ,I put a
call to the frame drawing sub in the Form_Paint sub; now, suppose a VB
messageBox is displayed on the form , partly covering the label control: if
I move off the messagebox once, the uncovered parts of the frame are still
there ; but if I move the messagebox on the label again and withdraw it
again, the frame is not repainted: how can this be avoided ? by the way, is
there a way to prevent a VB messageBox from being moved ?
There is 1 Reply.
Proux,
The only way to prevent a message box from being removed would be to
use the ClipRegion API call to prevent the mouse from going outside of the
msg box boundaries. The alternative to both these problems might be to
create a form to handle your messaging. -=- Jonathan
There is 1 Reply.
Jonathan,
Don't you mean ClipCursor (not ClipRegion)? Also, have you tried using
ClipCursor (ByVal 0) to reset the clipping area back to normal? I did and
it just screws things up! I know I'm supposed to pass a NULL lpRect, and I
thought ByVal 0 would do it, but either I'm just not getting it, or there's
something wrong.
– Ted
p.s. Have you gotten your copy of QuickC/Win yet? Got mine yesterday!
Haven't installed it yet, but the Win Pgm Ref has the doc errors fixed!
Practically worth the $100 (incl. tax & shipping <sigh>) by itself!
There are 2 Replies.
Ted,
Yes, I do mean ClipCursor. I guess that makes it obvious that I
have not played with it. However, ByVal 0 *should* be the way to pass a
NULL structure address. Perhaps the docs are wrong…oh, no that can't be
it. I'll see what I can come up with. I wanted to play with this for a
game that I have where the mouse is necessary but keeps getting in the way.
No, I have *not* received QuickC/Win! I put it down as the product
I wanted for the Seattle conference since I had two copies of everything
else. I imagine that means I'll be receiving it at the turn of the century.
I could sure use it right now because I am working so much with the CDK.
Keep me posted as to how you like working with it. -=- Jonathan
Jonathan,
Well, I sent in my order for QC/Win as soon as I got the upgrade form
(i.e., same day)…but I'd imagine you're somewhere down below us paying
customers! <g>
ClipCursor works fine, though I wish VB would reset it when you're in
design mode, because sometimes I don't!
– Ted
There is 1 Reply.
Ted,
Well, I look forward to receiving my copy of QuickC/Win! -=-
Jonathan
There is 1 Reply.
Jonathan –
Hey, there…my copy of QCWIN came today.
mark
There is 1 Reply.
Mark,
Are you telling me this because you also requested it as your "free"
product or just to taunt me?! -=- Jonathan
There is 1 Reply.
Hey, no taunts here! Actually, I picked up PDS 7 with the conference deal
and ordered the QCWIN upgrade when it arrived in the mail. Did you order
new or upgrade?
mark
There is 1 Reply.
Mark,
I didn't get an upgrade notice because I don't own QuickC. Bummer.
I buy the $700 package so I don't get an upgrade from the $200 package.
Life sucks! I sure hope my free copy comes soon cause even that cost me a
trip to Seattle!<g> -=- Jonathan
There are 2 Replies.
Jonathan:
But I thought that C 6.0 included QuickC? I have a copy sitting around in
the shrink-wrap (anybody want C 6.0 cheap?) that I could open to check, but
that's what I recall.
There is 1 Reply.
Jonathan:
But I thought that C 6.0 included QuickC? I have a copy sitting around in
the shrink-wrap (anybody want C 6.0 cheap?) that I could open to check, but
that's what I recall.
There is 1 Reply.
Ted,
To pass a null pointer, I find I need to use ByVal 0&. The "&" insures
its a long integer and not a word integer.
–dennis
There is 1 Reply.
Dennis,
That's been my experience as well. The 0& is essential.
George
Dennis,
Ahhhhhh! I bet that's it! Do a ByVal 0&! Of course. Thanks!
– Ted