Help regarding Scroll Pane usage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 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
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

Re: Help regarding Scroll Pane usage

stepharo
Hi

What is your question? problem? how can we help you?

Stef

Le 11/8/15 19:20, Jigyasa Grover a écrit :

> *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:
>
> <http://forum.world.st/file/n4842175/57.png>
>
> 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
>
>
>
> --
> View this message in context: http://forum.world.st/Help-regarding-Scroll-Pane-usage-tp4838486p4842175.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Help regarding Scroll Pane usage

Max Leske

> On 12 Aug 2015, at 18:09, stepharo <[hidden email]> wrote:
>
> Hi
>
> What is your question? problem? how can we help you?

This particular problem was solved I believe. The github issue is closed.

>
> Stef
>
> Le 11/8/15 19:20, Jigyasa Grover a écrit :
>> *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:
>>
>> <http://forum.world.st/file/n4842175/57.png>
>>
>> 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
>>
>>
>>
>> --
>> View this message in context: http://forum.world.st/Help-regarding-Scroll-Pane-usage-tp4838486p4842175.html
>> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Help regarding Scroll Pane usage

Jigyasa Grover
In reply to this post by stepharo
Hi Stef
Thank You for your assistance.
But Max helped me out with this issue.
Regards
Jigyasa