Help regarding Scroll Pane usage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help regarding Scroll Pane usage

Jigyasa Grover
Hi
I have built an accordion widget using ExampleBuilderMorph and ExpanderMorph.
I would like to add the expanders to a scroll pane in the dialog.
I tried using #newScrollPaneFor: but in vain.

The corresponding code snippet is as:

builder := WidgetExamples exampleBuilder.
dialog := (builder newPluggableDialogWindow: 'RESULTS').
searchResultsAccordion :=  dialog contentMorph:
(
  dialog newColumn:
  (
SearchQuick myResult collect: [ :r |
  dialog newRow: {
  (
  (
dialog newExpander: r title asString
  forAll: {
(dialog newTextEditorFor: (ValueHolder new contents: r content asString )
 getText: #contents setText: #contents:)minHeight: 150.
}
  )minWidth:750; minHeight: 10
  )
  cellInset: 0;
  borderStyle: (BorderStyle inset baseColor: dialog paneColor; width: 1)
 
]
)
 );
model: nil.
dialog newScrollPaneFor: searchResultsAccordion.
builder openModal: dialog.
dialog extent: 775@350.
dialog position: 500@200.


I am able to design the accordion widget as desired, except the scroll pane.





Help appreciated.
Thanks
JIGYASA
Reply | Threaded
Open this post in threaded view
|

Re: Help regarding Scroll Pane usage

Jigyasa Grover
Steps to reproduce:

1. Open a fresh image
2. Load Configuration : World > Tools > Configuration Browser > sQuick_new
3. Do It `IndexInterface open` in playground
4. Search for a word, say **of** , type in input box and click on *SEARCH* button.
The following screen appears:



It is desired for this to be scroll-able as when the number of search results extend beyond the screen/window extent, scroll-pane would be required.

LINK to GitHUb ISSUE for further details: https://github.com/jig08/sQuick_new/issues/22