Hello

Just starting out? Need help? Post your questions and find answers here.
Raion
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 8:24 pm
Location: New York

Hello

Post by Raion »

I am new to PureBasic, and I can't seem to find any english tutorials. If anyone knows any please reply, if not can you tell me a good place to start like what commands to start off by learning.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2148
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post by Andre »

Take a look to the Ressources Site (http://www.reelmediaproductions.com/pb/) and you will find a new tutorial by Ricardo, as well much other useful stuff.... :wink:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

Welcome Andre on the English forum :D
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Raion
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 8:24 pm
Location: New York

Thanks but..

Post by Raion »

Well, thanks for the links but I was hoping you can tell me where to find a beginners one, that starts from the 'Hello World' program, working it's way up. If you know any please tell me. Thanks in advance
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Re: Thanks but..

Post by Henrik »

Raion wrote:Well, thanks for the links but I was hoping you can tell me where to find a beginners one, that starts from the 'Hello World' program, working it's way up. If you know any please tell me. Thanks in advance
Hi Raion and Welcome Btw.. 8)
First of Are you using the Demo of PB cuz i don't know if it comes with the "Visual-Designer" or not ??

Second PB is'nt that hard to understand, you really don't need a hello world ex. to get started.
Is it your first language ever??

My adwise would be to look in your Example Directory and try to alter the examples there
and btw press F1 in the sourcecode to look up the online help for the commands in PB

The go to (http://www.reelmediaproductions.com/pb/) look at the many Code Snippets there
Try them out and alter them to your own pleasure. :P
go to http://freak.coolfreepages.com/ too and find some cool stuff there to and alter it.
Look at the Tricks 'n' Tips forum here.

And if there is something you whant to know about use the Search function above in this forum.

lets say you want to know something about using Directorys, write Directory and Clik Search, you will find alot of stuff, some you can use some not, but chances are that somebody had had the same prob. you have now, if not ask.

oh Btw Freak have made a tool "IETool" it's a cool way of testing out the codesnippets here on the forum, install it of couse an the just select the text/code you wanna try out, -form inside internetexplore chose run- without starting up the editor. :P
http://freak.coolfreepages.com/

Your Hello world program one made with Visual-Designer (comes with PB when you buy it)
the second does the same, just not with pre definde constants.

****** the first using the Visual Designer *****

;- <<< Copy form here -
;--------------------------
; PureBasic Visual Designer v3.63c Beta
; ---------------------------------------
;- Window Constants
;------
#Window_0 = 0

;- Gadget Constants
;
#TextGadget = 0
#ButtonGadget = 1


Procedure Open_Window_0()
If OpenWindow(#Window_0, 216, 0, 272, 173, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "It's a Window")
If CreateGadgetList(WindowID())
TextGadget(#TextGadget, 5, 35, 260, 25, "HelloooooOOO", #PB_Text_Center)
ButtonGadget(#ButtonGadget, 70, 75, 120, 25, "It's a button Click here")

EndIf
EndIf
EndProcedure


Open_Window_0()

Repeat

Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadgetID()

; if you pressed the button do -> case #ButtonGadget
Case #ButtonGadget
MessageRequester("It's a MessageRequester","WORLD!!", 0)

EndSelect
EndSelect
Until Event = #PB_EventCloseWindow
End
; Here ends the first example..




****** the Second using example dose the same without constants *****

;- <<< Second Copy form here -


If OpenWindow(0, 216, 0, 272, 173, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "It's Window")
If CreateGadgetList(WindowID())
TextGadget(0, 5, 35, 260, 25, "HelloooooOOO", #PB_Text_Center)
ButtonGadget(1, 70, 75, 120, 25, "It's a button Click here")

EndIf
EndIf



Repeat

Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadgetID()

; if you pressed the button do -> case 1
Case 1
MessageRequester("It's a MessageRequester","WORLD!!", 0)

EndSelect
EndSelect
Until Event = #PB_EventCloseWindow
End
; Here ends the second example..

Regards
Henrik
Raion
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 8:24 pm
Location: New York

Post by Raion »

Thanks a lot Henrik I'll be sure to look at that code carefully. Thanks.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

A new zip with 6 easy hello world examples are available in a few days in the resources site http://www.reelmediaproductions.com/pb/
ARGENTINA WORLD CHAMPION
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Nice work ricardo...
I have also placed them in the Tutorials section of the Resources Site so newbies can find them a little quicker :)
Post Reply