Search found 161 matches

by MSandro
May 22nd, '18, 21:08
Forum: Requests
Topic: Changing the Application Title?
Replies: 5
Views: 9574

Re: Changing the Application Title?

I am not sure if a list with only the primitives of GP would be enoght for a syntax highlighting. Those are only about 230 commands on which GP is based on.
by MSandro
May 22nd, '18, 19:49
Forum: Tips and Tutorials
Topic: How to add custom categories and blocks.
Replies: 2
Views: 7452

Re: How to add custom categories and blocks.

Why not.
There is already a group called "Advanced".
by MSandro
May 22nd, '18, 12:28
Forum: Tips and Tutorials
Topic: How to add custom categories and blocks.
Replies: 2
Views: 7452

How to add custom categories and blocks.

Hi, in this tutorial, I'll show you how to add blocks to a new custom category. I'm not talking about the "My Blocks (BYOB)" functionality. I want to show here how to create a category in GP code, how to display blocks in a category, and how to give the blocks a specific color. You only need two cla...
by MSandro
May 22nd, '18, 08:13
Forum: Tips and Tutorials
Topic: Primitives table with help text.
Replies: 2
Views: 107020

Primitives table with help text.

Hi, during my attempts to understand GP better, I came across the block (primitives) that outputs an array of all primitive commands. In combination with (primitiveHelpString '') I used GP to print a table with all the primitives and their help text. A few did not have any help text, I added a short...
by MSandro
May 22nd, '18, 07:45
Forum: Requests
Topic: Changing the Application Title?
Replies: 5
Views: 9574

Re: Changing the Application Title?

I look deep into the code and use "grep" (a Linux command) to find text matches in files. In addition, I recently had a table generated with all the "primitives" of GP. I will publish a post shortly.
by MSandro
May 21st, '18, 22:30
Forum: Requests
Topic: Changing the Application Title?
Replies: 5
Views: 9574

Re: Changing the Application Title?

In the ProjectEditor.gp search for "open page" and change the line to

Code: Select all

open page tryRetina '<your title>'
modified gp title.png
by MSandro
May 21st, '18, 10:37
Forum: Requests
Topic: A New Design for the Top Bar?
Replies: 20
Views: 142888

Re: A New Design for the Top Bar?

Thank you if I try your first suggestion GP does not freeze, but nothing happens. The second suggestion also cause a frezze EDIT: Finaly I've found a solution! YAY method confStageResolution Page { setGlobal 'stageResolution' (prompt (global 'page') 'Stage-Resolution:' '800') } I only have to use pr...
by MSandro
May 21st, '18, 08:50
Forum: Working with GP
Topic: How to Differentiate Instances?
Replies: 1
Views: 6513

Re: How to Differentiate Instances?

This has become a bit more complicated since v77, because you can no longer give parameters when initializing.
But I have attached a small project with a workaround. I hope it helps you.
by MSandro
May 20th, '18, 19:05
Forum: Requests
Topic: A New Design for the Top Bar?
Replies: 20
Views: 142888

Re: A New Design for the Top Bar?

That is not the problem atm, I know that GP needs to be restarted for the changes to take effect. I currently try to open a text-box to enter the resolution, but I am not able to call "askUser" out of the ProjectEditor. At the moment, I only want the user to be able to enter the width of the stage r...
by MSandro
May 20th, '18, 18:34
Forum: Requests
Topic: A New Design for the Top Bar?
Replies: 20
Views: 142888

Re: A New Design for the Top Bar?

I have a problem where you could possibly help me: On my GP Settings menu I want to use "(askUser 'set the stage width:' '800') this is the (ask '') block which is available in Sensing. But I am not able to use it in the ProjectEditor for my confStageResolution methonde. If I use "ProjectEditor" ins...