May I hijack this thread for a moment?  I've had a lot of trouble getting
large images (or other content) to scroll properly in a canvas.

 

Does anyone have a pointer to any examples or tutorials on this?  I know
it's something SIMPLE, but I'm had an annoyingly difficult time getting this
to work.

 

Best

 

Steve

 

 

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Alex Harui
Sent: Tuesday, December 12, 2006 10:44 AM
To: [email protected]
Subject: RE: [flexcomponents] how I can scroll the datagrid automatically ?

 

You may need to set the height of the Canvas, or override the measuredHeight
of the Canvas.

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of arpan srivastava
Sent: Tuesday, December 12, 2006 6:10 AM
To: [email protected]
Subject: Re: [flexcomponents] how I can scroll the datagrid automatically ?

Hi Alex,
       I have done as per your first reply. I took a datagrid and then
inserted it into a canvas. It is working fine but, if I put any control
below this canvas, the control places itself taking into account the height
of datagrid also.

----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, December 12, 2006 12:07:14 PM
Subject: RE: [flexcomponents] how I can scroll the datagrid automatically ?

So the idea is to create the DG one row taller than the VBox, put it in the
VBox and move the DG until you have moved an entire row, then move the DG
back and actually scroll it one row.

 

  _____  

From: flexcomponents@ yahoogroups. com [mailto:flexcompone [EMAIL PROTECTED]
com] On Behalf Of arpan srivastava
Sent: Monday, December 11, 2006 7:59 PM
To: flexcomponents@ yahoogroups. com
Subject: Re: [flexcomponents] how I can scroll the datagrid automatically ?

I was thinking of removing the datagrid, instead creating a Vbox and then
populating it with hbox which will represent the row and then creating a
canvas of the size of a single hbox, but what if there are many records in
the dataprovider ?

----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED] com>
To: flexcomponents@ yahoogroups. com
Sent: Tuesday, December 12, 2006 12:16:35 AM
Subject: RE: [flexcomponents] how I can scroll the datagrid automatically ?

Changing the DataProvider is expensive.  You should only do it if the entire
data set is in-fact changing (new query or something).  Otherwise it is
better to modify a single dataprovider.  Then, if there multiple rows in the
dataprovider, you can scroll using verticalScrollPosit ion.

 

The DG only scrolls by row.  If you need pixel-level scrolling, I have
suggested that you put the DG in a Canvas and scroll the DG in the canvas.
Not sure if anyone has made this work yet.

 

-Alex

 

  _____  

From: flexcomponents@ yahoogroups. com [mailto:flexcompone [EMAIL PROTECTED]
com] On Behalf Of arpan srivastava
Sent: Monday, December 11, 2006 5:52 AM
To: Flex Components
Subject: [flexcomponents] how I can scroll the datagrid automatically ?

Hi all,
          I have to create a datagrid  with one row and row will scroll
automatically and display data one by one,  that is like a ticker. now i
what i did is created a timer in which i am changing the datatprovider after
certain time interval :

private function timerEvent(event: TimerEvent) :void{
            if(dataCount < dataProvider. length){
                dG.dataProvider = dataProvider[ dataCount+ +];
            }else{
                dataCount = 0;
            }
            dGinvalidateDisplay List();
}

it's working fine, but i need to smooth scrolling. is there anyway I can
scroll the datagrid automatically. Is there any other way I can do this ? 

 

  _____  

Access over 1 million songs - Yahoo! Music Unlimited.
<http://pa.yahoo.com/*http:/us.rd.yahoo.com/evt=36035/*http:/music.yahoo.com
/unlimited/>  

 

 

  _____  

Want to start your own business? Learn how on Yahoo! Small Business.
<http://us.rd.yahoo.com/evt=41244/*http:/smallbusiness.yahoo.com/r-index>  

 

 

  _____  

Any questions? Get answers on any topic at Yahoo!
<http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1
NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx>  Answers. Try it now. 

 

Reply via email to