Skip to content

Scrollable Frame #241

Answered by felipetesc
Crussader asked this question in Q&A
Jul 8, 2022 · 6 comments · 6 replies
Discussion options

You must be logged in to vote

In order to create a scrollable region changes could be made inside frame like for example:

  1. refactor frame constructor and add new params like a boolean vscroll, another boolean hscroll
  2. if hscroll or vscroll are set true, remove some space from total width or total height of the main canvas component
  3. if hscroll or vscroll are true, create one new canvas element for each scroll
  4. refactor configure and add vscroll and hscroll checks, redraw is true inside the if statement
  5. take a closer look to the functionality from slider

Problems to face:

  1. How to show or hide subregions of the frame (IDK 'cause I haven't even searched for answers);it seems the worst problem to face (you will need to acce…

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Crussader
Comment options

Comment options

You must be logged in to vote
2 replies
@Crussader
Comment options

@felipetesc
Comment options

Answer selected by Crussader
Comment options

You must be logged in to vote
3 replies
@Crussader
Comment options

@felipetesc
Comment options

@Crussader
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants