Re: [Dev-C++] Help Please. ( Scrolling the client area with graphics)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-09-22 06:05:49
|
This is how graphics works in most graphical environments, i.e. it is up to the application to keep track of what is drawn and to repaint the window on request. Paint to a bitmap and redraw the bitmap suitably scrolled whenever the window gets a repaint command. Or work with vector graphics, i.e. keep a list of all draw commands needed to redraw the graphics and then walk through the list and repaint all lines, circles, characters. There are some libraries - or sample code - that performs the above operations. Select a graphics library of your choice and check through the example programs. /Per W On 22 Sep 2004, santhosh shenoy p wrote: > Hi , > I'm Santhosh an engineering student. Right now I'm doing a project on graphics using devc++ 4.8 . I have a problem. > The problem is that once I draw line or a text on the window and scroll the vertical scroll bars the lines that I had drawn would get erased. > kindly suggest me way so that any graphics I put on the screen at runtime and then even after scrolling the scroll bars the graphics thus scrolled should not get erased after unscrolling later. > > Eagerly waiting for your kind and a positive response. > Santhosh. > |