Page 1 of 1

Font Size

Posted: Thu Jan 20, 2011 4:30 am
by James Adrian
I just bought PureBasic. I opened the examples > sources > Arithmetic.pb and looked for a way to increase the font size of the display. I just can't find it.

You must all know how to do it. Please give my a clue.

Thank you for your help.

Jim Adrian

jamesadrian@globalfreeenterprise.com

Re: Font Size

Posted: Thu Jan 20, 2011 4:46 am
by IdeasVacuum
Hello James, welcome to PB! You will be surprised by how much you can do in 2-3 weeks but the first couple of days can be difficult. A case in point being your post here - you know what you mean, but we don't :) Do you mean the font size of the PB IDE (code editor)? Or do you mean the font size of an application you are creating? The Arithmetic.pb does not have a Window, Console Window or Debug Window output.

Re: Font Size

Posted: Thu Jan 20, 2011 6:34 am
by James Adrian
IdeasVacuum wrote:Hello James, welcome to PB! You will be surprised by how much you can do in 2-3 weeks but the first couple of days can be difficult. A case in point being your post here - you know what you mean, but we don't :) Do you mean the font size of the PB IDE (code editor)? Or do you mean the font size of an application you are creating? The Arithmetic.pb does not have a Window, Console Window or Debug Window output.
IdeasVacuum,

Thank you for this message.

When I clicked on the file called Arithmetic.pb it was displayed. I don't know what editor was selected, but it wasn't TextEdit. The size of the letters in the text was small. When I bring up such an example file, I want to be able to increase the size of the letters in the text.

I think that you are saying that the editor that displayed Arithmetic.pb must be PB IDE. Is that right?

I am not close to creating an application yet. I understand that controlling the font size seen by users of the software that I eventually write is a different matter that I will need to learn about later.

When you say that the file called Arithmetic.pb does not have a Window, Console Window or Debug Window output, I don't know at all what you mean.

Thank you for your help.

Jim Adrian

Re: Font Size

Posted: Thu Jan 20, 2011 3:24 pm
by Vera
Hello Jim,

Welcome on board :)

When you start PureBasic the developement application (IDE) opens with it's own implemented editor (scintilla based). Here's where you see and edit the codes. ...

On some MACs this font is displayed too small, dependent on the local screen resolution and has been reported many times (see bug forum). BUT it'll be fixed with the next PB-version :)
James Adrian wrote:When you say that the file called Arithmetic.pb does not have a Window, Console Window or Debug Window output, I don't know at all what you mean.
Try these (and afterwards the Gadget.pb example):

Code: Select all

;- executing code without output
For a = 1 To 10
  b + 5
Next a

Code: Select all

;- same code with Debug output
For a = 1 To 10
  b + 5
  Debug b
Next a

Code: Select all

;- enhanced with Window output

OpenWindow(0, 100, 100, 200, 120, "My AppWindow", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
EditorGadget(1, 10, 10, 180, 100)

For a = 1 To 10
  b + 5
  AddGadgetItem(1, -1, "b = " + Str(b))
Next a

Repeat 
Until WaitWindowEvent() = #PB_Event_CloseWindow
Tip: write OpenConsole on an empty line. Place the cursor into that command:
a) look at the statusbar
b) press F1 (to open the help)
and look for the small examples at the end of (nearly) each description.


greetings ~ Vera

Re: Font Size

Posted: Fri Jan 21, 2011 3:32 am
by James Adrian
Vera wrote:Hello Jim,

Welcome on board :)

When you start PureBasic the developement application (IDE) opens with it's own implemented editor (scintilla based). Here's where you see and edit the codes. ...

On some MACs this font is displayed too small, dependent on the local screen resolution and has been reported many times (see bug forum). BUT it'll be fixed with the next PB-version :)
.
.
.
greetings ~ Vera
Vera,

Does this mean that there is currently no way to change the size of the font?

Thank you for your help.

Jim Adrian

Re: Font Size

Posted: Fri Jan 21, 2011 4:56 am
by IdeasVacuum

Re: Font Size

Posted: Fri Jan 21, 2011 8:43 am
by James Adrian
It appears that the problem is fixed. How do I change the font size?

Jim Adrian

Re: Font Size

Posted: Fri Jan 21, 2011 10:38 am
by Vera
James Adrian wrote:It appears that the problem is fixed. How do I change the font size?
The announcement is only about 2 weeks old, so customizing the font should be available with the next release.

Vera

Re: Font Size

Posted: Fri Jan 21, 2011 7:15 pm
by James Adrian
Vera wrote:
James Adrian wrote:It appears that the problem is fixed. How do I change the font size?
The announcement is only about 2 weeks old, so customizing the font should be available with the next release.

Vera
When do you expect the next release?

Thank you for your help.

Jim Adrian

Re: Font Size

Posted: Fri Jan 21, 2011 7:38 pm
by IdeasVacuum
....Not sure when the release is due, there looks to be a ton of fixes in it.

What you can do for now is to write/edit your code in a text editor and just use the IDE to compile it. I tend to do that anyway, because UltraEdit is my favourite code editor (Ultra Edit is available on the Mac, you might like to try it: http://www.ultraedit.com/products/mac-text-editor.html)