markham@phi.cs.unc.edu (Andrew Markham) (07/20/89)
I have just recently started working with programming an application on the Mac using Lightspeed Pascal. I have set up the menus and windows so that they work with DA's (correctly I might add), but can't get any graphics to display. Since LS Pascal makes all of the initialization calls for me, I am at a loss. I try to draw an icon or line or even write some text to the window, just after opening it and get nothing. I can include some code, but was wondering if there was just some dumb thing that I am doing. GetWindow(blah, blah, blah) FrameRect(blah, blah, blah) This gives me a window, but no rectangle in it. Why? Please respond via e-mail and thanx for any and all responses! Andrew W. Markham <markham@sunmail.cs.unc.edu> Computer Science Department UNC-CH "Nobody in the world can cover my main man Michael Jordan. No, No, Nooobody." -Mars Blackmon
awd@dbase.UUCP (Alastair Dallas) (07/25/89)
You'll get lots of replies, I'm sure. You need something like: WindowPtr wp; wp = GetNewWindow(blah, blah..); SetPort(wp); FrameRect(blah, blah..); This is C, but it looks a lot like Pascal. This may not be your problem, and in my haste to be among the first to reply I may have gotten everything confused. :-) Hope it helps. /alastair/