Ah, your talking about placing a graph control for exmaple inside a = picture box and then making the picture box scrollable, which I agree is = simple but a killer for the system and you really need to have the auto = redraw property set to true if you want the screen to play nice so that = dosn't help the system resources. Better to store the data and plot what's needed on demand which is more = programming effort but much more efficent and in some cases can be = faster if it's done right. As it happens, a mid way solution is not to have a picture box but have = a scrollable form. If you have an MDI form and create an MDI child form, = you can set the child form as big as you like. You can then scroll = around it within the MDI parent and you don't need the picture control. = That way, you don't need any code for the scrolling since the op-sys = does everything for you. You just draw the graph and set it to the same = size as the MDI child. -----Original Message----- From: Adam Smith [mailto:adam@VIRATECH.COM] Sent: 26 June 2002 16:56 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [OT]: scroll bar in VB 6 No it doesn't; pictureboxes can hold controls. > -----Original Message----- > From: adam-request@viratech.com [mailto:adam-request@viratech.com] On > Behalf Of Joe Farr > Sent: Wednesday, June 26, 2002 12:09 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [OT]: scroll bar in VB 6 > > but that means plotting all your data and effectivly storing it as a bit > map inside a picture control. Not very practical if you have a real time > display running. You will run out of system resources eventually. > > > -----Original Message----- > From: Adam Smith [mailto:adam@VIRATECH.COM] > Sent: 25 June 2002 23:21 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [OT]: scroll bar in VB 6 > > > No need for extra controls/etc. here. Just put whatever you want to > scroll inside a picturebox and manipulate the Top (for vertical > scrolling) of Left (for horizontal scrolling) property to move it up and > down when the change event fires from the scrollbar. These properties > can be set as negative values (i.e. they off of the screen). > > Regards, > Adam Smith > > > -----Original Message----- > > From: adam-request@viratech.com [mailto:adam-request@viratech.com] On > > Behalf Of Mike Singer > > Sent: Tuesday, June 25, 2002 5:09 PM > > To: PICLIST@MITVMA.MIT.EDU > > Subject: Re: [OT]: scroll bar in VB 6 > > > > Hi Salah, > > DirectX is another choice. > > From MSDN: > > ....................................... > > Platform SDK: Microsoft DirectX 8.0 (Visual Basic) > > Programming DirectX with Visual Basic > > This section is an introduction to developing > > applications with MicrosoftR DirectXR for Microsoft > > Visual BasicR. > > > > The following topics are covered: > > > > Referencing the Type Library > > Creating DirectX Objects > > Using GUIDs > > Passing Arrays to Methods > > Using Flags > > Using Bitmasks > > DirectX Enumerations > > The IUnknown Data Type > > Error Handling > > DirectX Class Reference > > ......................................... > > > > Greate thing, by the way, and not so complicated > > as it may seems for the first time. You can scroll, > > enlarge, rotate, change colors and so on using > > video card chip, not main CPU. Placing waves in > > 3D and then diving into them (yeah, it comes from > > my reminiscences of diving into Black Sea waves > > for hours today. I wonder, why black coloured > > people, being so good at many sports, are not > > big winners at swimming? hmm, need to think about.) > > > > Mike. > > ------- > > To Ashley Roll: > > What does it mean "Digital Nemesis"? > > Digital punishment? > > Who is to be punished? > > > > > > Ashley Roll wrote: > > > > > Hi Salah, > > > > > > Try this MSDN article.. You will probably have to unwrap the URL.. > > > > > > "Scroll Bar Controls Scenario: Creating a Scrollable Graphics > > > Viewport" > > > > > > Digital Nemesis Pty Ltd > > > www.digitalnemesis.com > > > Mobile: +61 (0)417 705 718 > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: pic microcontroller discussion list > > > > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Salah > > > > Sent: Tuesday, 25 June 2002 11:33 AM > > > > To: PICLIST@MITVMA.MIT.EDU > > > > Subject: [OT]: scroll bar in VB 6 > > > > > > > > > > > > Hello List! > > > > Any experts in VB out there? the problem is that how to > > > > scroll a graph > > > > being displayed in PictureBox ,I want to keep the graph > > > > scrolling when it > > > > reach to the end of the PictureBox and not to start from the > > > > beginning .... > > > > I have checked the web for some free VB code, there was an > > > > example about how > > > > to scroll a pic. in the PictureBox by using the scroll bar > > > > but nothing about > > > > how to scroll dynamic data(I am displaying the data of 5 AD Ch. > > > > continously ).... any ideas, comments , code please. > > > > Regards, > > > > Salah. > > > > -- > > http://www.piclist.com hint: To leave the PICList > > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads