Seeking help on morphs : expander and scrolls

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

Seeking help on morphs : expander and scrolls

Jigyasa Grover
Hi

I am using Expander Morphs to display some search results.
I am finding it hard to insert a scroll bar in text displayed after expanding the title of the search result.

The corresponding code snippet is as:
dialog newRow: {
(
  (
  dialog newExpander: r title asString
  forAll: {  dialog newText:  r content asString . }
   )minWidth:600; minHeight: 10
)cellInset: 0;
  borderStyle: (BorderStyle inset baseColor: dialog paneColor; width: 1)
        

I basically need to add a scroll-able content in 'newText:' portion.

The entire code of my application an offline text search application namely searchQuick is available at github (https://github.com/jig08/sQuick_new) .
You all are welcome to fork the code
, try the infancy application and send in suggestions. 

Help Appreciated.
Regards
Jigyasa
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Seeking help on morphs : expander and scrolls

Nicolai Hess
what about "newTextEditorFor:"


dialog newRow: {
(
  (
  dialog newExpander: r title asString
  forAll: {  dialog newTextEditorFor:  yourTextModel getText:#getTextSelector setText:#setTextSelector. }
   )minWidth:600; minHeight: 10
)cellInset: 0;
  borderStyle: (BorderStyle inset baseColor: dialog paneColor; width: 1)




2015-07-17 11:59 GMT+02:00 Jigyasa Grover <[hidden email]>:
Hi

I am using Expander Morphs to display some search results.
I am finding it hard to insert a scroll bar in text displayed after expanding the title of the search result.

The corresponding code snippet is as:
dialog newRow: {
(
  (
  dialog newExpander: r title asString
  forAll: {  dialog newText:  r content asString . }
   )minWidth:600; minHeight: 10
)cellInset: 0;
  borderStyle: (BorderStyle inset baseColor: dialog paneColor; width: 1)
        

I basically need to add a scroll-able content in 'newText:' portion.

The entire code of my application an offline text search application namely searchQuick is available at github (https://github.com/jig08/sQuick_new) .
You all are welcome to fork the code
, try the infancy application and send in suggestions. 

Help Appreciated.
Regards
Jigyasa

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Seeking help on morphs : expander and scrolls

Jigyasa Grover
Nicolai, that was indeed a help.
Thanks :)
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Seeking help on morphs : expander and scrolls

Jigyasa Grover
In reply to this post by Nicolai Hess
Hi Nicolai
I am facing another issue which in my opinion would require a scrollbar for the entire modal.
The problem is that on expanding a search result, it covers the OK and CANCEL button.



The code of the corresponding widget can be found here : https://github.com/jig08/sQuick_new/blob/master/sQuick_new.package/PopUp.class/instance/printSearchResults.st

Help appreciated.
Thanks
Jigyasa