CompuServe Thread

#re-painting in VB

15 messages in this thread
#2596From: prouxOct 11, 1991 7:39 AM
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.
#2627From: Jonathan Zuck (UFI)Oct 11, 1991 11:26 AM
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.
#2645From: Ted M. YoungOct 11, 1991 12:36 PM
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.
#2681From: Jonathan Zuck (UFI)Oct 11, 1991 2:50 PM
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
#2855From: Ted M. YoungOct 13, 1991 12:47 PM
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.
#2894From: Jonathan Zuck (UFI)Oct 13, 1991 11:12 PM
Ted, Well, I look forward to receiving my copy of QuickC/Win! -=- Jonathan There is 1 Reply.
#3085From: Mark S. BurgessOct 14, 1991 9:24 PM
Jonathan – Hey, there…my copy of QCWIN came today. mark There is 1 Reply.
#3115From: Jonathan Zuck (UFI)Oct 15, 1991 12:01 AM
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.
#3239From: Mark S. BurgessOct 15, 1991 2:06 PM
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.
#3331From: Jonathan Zuck (UFI)Oct 15, 1991 11:09 PM
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.
#3417From: Keith PleasOct 16, 1991 1:42 PM
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.
#3479From: Keith PleasOct 16, 1991 7:00 PM
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.
#2695From: Dennis L. HarringtonOct 11, 1991 3:52 PM
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.
#2757From: George CampbellOct 12, 1991 11:41 AM
Dennis, That's been my experience as well. The 0& is essential. George
#2856From: Ted M. YoungOct 13, 1991 12:47 PM
Dennis, Ahhhhhh! I bet that's it! Do a ByVal 0&! Of course. Thanks! – Ted