Home > Archive > Smalltalk > April 2007 > Scrollbar implementation in Canvas, Panda 8.4
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Scrollbar implementation in Canvas, Panda 8.4
|
|
|
| Greetings everyone,
Does anyone know how to implement scrollbars in Panda:Canvas?
Here's part of the codes that we're working on.
aCanvas:= Canvas new.
aCanvas drawAction:
[:aGraphicsContext |
aGraphicsContext translateBy: 250 @ 200.
adRect := aCanvas bounds.
interface drawing display: adRect with: aGraphicsContext].
aCanvas allScrollbars: true.
We tried to use the above method, allScrollbars: but it seems to crash
everytime when we try to load the GUI. Would there be other method or
example of inserting scrollbars in canvas usable for our cause?
| |
| Samuel S. Shuster 2007-04-05, 7:16 pm |
| Harry,
>aCanvas allScrollbars: true.
>
>We tried to use the above method, allScrollbars: but it seems to crash
>everytime when we try to load the GUI. Would there be other method or
>example of inserting scrollbars in canvas usable for our cause?
Well, Canvas doesn't support scrollbars. If you want to somehow scroll your
canvas, put it in a Form and use its scrollbars.
And So It Goes
Sames
________________________________________
______________________________
Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Smalltalk Enables Success -- What Are YOU Using?
|
|
|
|
|