Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:22:04+00:00 2026-06-14T02:22:04+00:00

I write RSSReader in Smalltalk so I have two Model classes: RSSModel (title, entries)

  • 0

I write RSSReader in Smalltalk so I have two Model classes: RSSModel (title, entries) and EntryModel (title, image, content, date)

I have list of EntryView (inherits from UI.View) now I have RSSView and my displayOn method is going to display entries vertically with gap between each:

    | dy iView gap |
        gap := 5.
        dy := 0.
        1 to: model entries size
            do: 
                [:i |
                iView := EntryView model: (model entries at: i).
                iView displayOn: aGC at: 0 @ dy.
                dy := dy + 89 + gap]

and the result is:

result

I am not sure if I do it right way so If you have better solution for display RSSView please tell me.

Questions:

  1. How to get height of entry? Now I write dy:=dy+89+gap where 89 is hardcoded height of entry.
  2. How to enable scrollbars to scroll entries in window?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:22:05+00:00Added an answer on June 14, 2026 at 2:22 am

    How to get the height of the entry? Use:

    "entry bounds height"
    

    How to enable scrollbars?

    To answer this, I’ll first point out that the way you’re getting the EntryView’s displayed isn’t really the best way. You want to create a custom control like I explained in your other question How to create a window in smalltalk. You can use a CompositeView for the view and add each of the EntryViews into the composite using add:at:.

    Once you have that, you can go to the Details tab in the UIPainter property editor of the view and turn on Vertical scroll bars.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

write a script that takes two optional boolean arguments,--verbose‚ and ‚--live, and two required
I write a project using Prism . I have tow modules and this modules
Write a Scheme predicate function that tests for the structural equality of two given
Write a function that counts the number of elements in the list that are
Write a predicate sorted(L) which tests whether a list of integers is sorted, [n1,n2,...,nk]
Write a Java function such that Given two strings, word and a separator, return
Write two or more elements style in single line in JQuery, where id of
write(NAMES + channel, writer);//build list of people in channel String[] Users = reader.ReadLine().Split(' ');//read
/* Write macro for the following : 1. Arithmetic Mean of two no. 2.
Write a C program to Delete a Tree. I have written a small snippet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.