Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to controll scrolling in ScrollPane

SWT does not have a ScrollPane.  Are you trying to write AWT code?  If so,
you should try an AWT newsgroup or mailing list.



                                                                                                                                                     
                      "gear"                                                                                                                         
                      <radienssmgs2@hotmail.c         To:      <platform-swt-dev@xxxxxxxxxxx>                                                        
                      om>                             cc:                                                                                            
                      Sent by:                        Subject: [platform-swt-dev] How to controll scrolling in ScrollPane                            
                      platform-swt-dev-admin@                                                                                                        
                      eclipse.org                                                                                                                    
                                                                                                                                                     
                                                                                                                                                     
                      01/11/2002 01:00 PM                                                                                                            
                      Please respond to                                                                                                              
                      platform-swt-dev                                                                                                               
                                                                                                                                                     
                                                                                                                                                     



Hi,

How can I control the scroll behaviour of a ScrollPane? For example, I want
to control how components in the ScrollPane layouts everytime user scrolls.
What can I do?

I create my ScrollPane like this:


ScrollPane scrollpane = new ScrollPane();


pane = new FreeformLayer();


pane.setLayoutManager(new FreeformLayout());


setLayoutManager(new StackLayout());


add(scrollpane);


scrollpane.setViewport(new FreeformViewport());












Back to the top