# Any way to create a new screen programmatically?

**URL:** <https://forum.code.org/t/any-way-to-create-a-new-screen-programmatically/32095>\
**Category:** CS Principles\
**Tags:** csp-unit-5\
**Created:** [January 20, 2020, 10:00pm UTC](https://forum.code.org/t/any-way-to-create-a-new-screen-programmatically/32095 "2020-01-20T22:00:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveowebster4](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@steveowebster4](https://forum.code.org/u/steveowebster4)\
**Post date:** [January 20, 2020, 10:00pm UTC](https://forum.code.org/t/any-way-to-create-a-new-screen-programmatically/32095/1 "2020-01-20T22:00:34Z")

</div>

I can’t seem to find a way to create a new screen via code (I can’t create it via design because of how my program works). I was wondering if there is any way to do this i.e. create a new blank screen with an id then setScreen to that new screen and continue. I tried create canvas, but that isn’t really what I wanted, I want an actual screen so I can use setScreen.

---

<div class="post-metadata">

**Author:** ![gjschmidt](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/gjschmidt/32/4922_2.png) [@gjschmidt](https://forum.code.org/u/gjschmidt)\
**Post date:** [January 21, 2020, 1:01am UTC](https://forum.code.org/t/any-way-to-create-a-new-screen-programmatically/32095/2 "2020-01-21T01:01:04Z")

</div>

Steve,

Welcome to the forum! I don’t have an answer but I am assuming you asking about AppLab and not GameLab. I have moved the topic to AP CSP Unit 5. You are more likely to get an answer there rather in the uncategorized forum. If I’m wrong let me know and I can move it over to GameLab.
