Scrollbar in Spec layout

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

Scrollbar in Spec layout

LE Xuan Sang
Hello,

I use Spec (Pharo 4) to develop my GUI application.  In my Spec layout, one of the columns has a large amount of rows (dynamic content indeed). So i need it to be scrollable. Does anyone knows how to add a scrollbar to that column?

Thanks,

LE Sang
Reply | Threaded
Open this post in threaded view
|

Re: Scrollbar in Spec layout

Ben Coman
On Wed, Feb 3, 2016 at 4:45 PM, LE Xuan Sang <[hidden email]> wrote:
> Hello,
>
> I use Spec (Pharo 4) to develop my GUI application.  In my Spec layout, one of the columns has a large amount of rows (dynamic content indeed). So i need it to be scrollable. Does anyone knows how to add a scrollbar to that column?
>
> Thanks,
>
> LE Sang

I'm not sure if I'm the one to help you, but could you post a snapshot?
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: Scrollbar in Spec layout

LE Xuan Sang
In reply to this post by LE Xuan Sang
Hello,

Here goes an example snapshot of my problem.

Cheer,

Sang



> Date: Wed, 3 Feb 2016 16:59:01 +0800
> From: Ben Coman <[hidden email]>
> To: Any question about pharo is welcome <[hidden email]>
> Subject: Re: [Pharo-users] Scrollbar in Spec layout
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> On Wed, Feb 3, 2016 at 4:45 PM, LE Xuan Sang <[hidden email]> wrote:
>> Hello,
>>
>> I use Spec (Pharo 4) to develop my GUI application.  In my Spec layout, one of the columns has a large amount of rows (dynamic content indeed). So i need it to be scrollable. Does anyone knows how to add a scrollbar to that column?
>>
>> Thanks,
>>
>> LE Sang
>
> I'm not sure if I'm the one to help you, but could you post a snapshot?
> cheers -ben
>
>


MultiRowInColumn.st (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Scrollbar in Spec layout

jfabry

If I understand correctly, you are adding a lot of labels dynamically to the window, and you want a scrollbar to appear to the window, correct?

I am afraid that this scenario is not supported by Spec. Instead you should use a list and add items there. Then you will get the scroll bar for free. Note that you can configure the list so that nothing can be selected, so the visual look will be more or less the same.

HTH,

> On Feb 3, 2016, at 09:49, LE Xuan Sang <[hidden email]> wrote:
>
> Hello,
>
> Here goes an example snapshot of my problem.
>
> Cheer,
>
> Sang
> <MultiRowInColumn.st>
>
>> Date: Wed, 3 Feb 2016 16:59:01 +0800
>> From: Ben Coman <[hidden email]>
>> To: Any question about pharo is welcome <[hidden email]>
>> Subject: Re: [Pharo-users] Scrollbar in Spec layout
>> Message-ID:
>> <[hidden email]>
>> Content-Type: text/plain; charset=UTF-8
>>
>> On Wed, Feb 3, 2016 at 4:45 PM, LE Xuan Sang <[hidden email]> wrote:
>>> Hello,
>>>
>>> I use Spec (Pharo 4) to develop my GUI application.  In my Spec layout, one of the columns has a large amount of rows (dynamic content indeed). So i need it to be scrollable. Does anyone knows how to add a scrollbar to that column?
>>>
>>> Thanks,
>>>
>>> LE Sang
>>
>> I'm not sure if I'm the one to help you, but could you post a snapshot?
>> cheers -ben
>>
>>
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile