Posted: Sun Jul 10, 2005 11:27 pm
Thanks for the LINKS to Color in PureBasic. The Library shown makes it simple to use.
Just need to find the same for Linux if available?
Bizzy
Just need to find the same for Linux if available?
Bizzy
http://www.purebasic.com
https://www.purebasic.fr/english/
Hello.fsw wrote:It can't.mlwhitt wrote:I have looked at it, but it didn't seem to be anywhere near some complete and professional as PureBasic.
Work on PureBasic started around 6 years ago (or even longer).
Work on HotBasic started May 2003.
Also, it all depends on your needs.
If you look at the oop side of a language then HB is miles ahead.If you look at the GUI event handling then PB is stoneage compared to HB, and there is no change in sight (not even for V4) as can be seen here:Fri Jun 27, 2003 00:26; Fred wrote: I said I will implement structure to access DX and COM object easily but not class, and all OO behavior.
That's a BASIC language.
viewtopic.php?t=15470&postdays=0&postorder=asc&start=0
PB has his strenght on other things and as you can see different goals.
That's why it's important to use the right tool for the job.
Have fun coding
Very helpful post!the.weavster wrote:I bought HotBasic 2 years ago on a whim (I don't know if it's changed since), then you really needed a good knowledge of the Win32 api to do any gui work with it because you had to use it to trap any events that were happening in your app, there was no built in event type constants like you get with PureBasic. They were calling it a 'cross-platform' compiler but there was 8ugg3r all chance of the programs you wrote being cross platform as a result.
They were also calling it an 'OOP' language but with other OOP languages (like REALbasic for example) you can create as many instances of an object as you require. Even a window is an object so once you've designed it you can instantiate any number of instances of it at runtime using the 'New' keyword and each instance of the window can refer to it's own controls, properties and methods etc.. just by using 'Self.' You can not do that with HotBasic so imo a lot of the advantage of using objects is lost.
I think srod wrote a tutorial on doing oop with PureBasic, I think spending time reading that would be a better investment than purchasing HotBasic.
Very confusing situationYou say HotBasic slashes development time. How?
Lots of time is wasted developing applications in other languages because the language itself just gets in the way. So many popular programming languages nowadays are full of alien punctuation, run-on notation, odd structure, and abbreviated keywords. This makes the code hard to read and hard to write, which is bad enough for projects with only one developer. The problem is made much, much worse when a programming project requires a team of developers who waste untold amounts of time trying to figure out what each other are doing.
HotBasic relieves you of that burden by delivering a language and syntax that's logical, intuitive, and extremely readable. With HotBasic, developers spend more time thinking about what their programs should do and less time trying to make heads or tails out of Martian code.
Why are HotBasic executables smaller, faster, more efficient, and more secure?
Unlike every other compiler on the market, HotBasic is all-new technology fit for the 21st century. Other compilers, on the other hand, rely on obsolete general purpose libraries.
A library is like a software toolbox. It contains procedures that are used over and over again. This makes the process of writing software much easier. The problem with the other compilers on the market is, the libraries they use are ten, 15, and sometimes 20 years old! Think about how much technology has changed in the past ten years and that should give you an idea of what we're talking about.
HotBasic doesn't use any of that outmoded technology. HotBasic was developed from scratch using the latest techniques in programming and system design. We didn't copycat anyone else or use anything "off the shelf." We started with a clean slate and committed ourselves to building HotBasic the right way. And it paid off big. Now you can benefit from our hard work!
I agree completely, Fred's not just being a bit of a big-head, PB is a whole different level to HB.Fred wrote:BTW, the quote on web site than "HotBasic is the best", "21st compiler" and such are just plain wrong, or they didn't take a look to PureBasic. PB is way ahead, for any part of it.
Totally agree.srod wrote:... From what thanos has posted, I would guess that the HB site is just as terrible as ever. How can you trust a language in which no useful information is given as to it's usefulness etc?
This HotBasic code results in an executable of 4.00 KB (4,096 bytes):HotBasic's web site wrote:the executables it produces are smaller [...] than the executables produced by the competition
Code: Select all
$APPTYPE CONSOLE
PRINT "hello"
PAUSE
Code: Select all
OpenConsole()
Print("hello")
Input()
CloseConsole()
Agreed!PB wrote:Sorry HotBasic: you lose!
Code: Select all
http://www.youtube.com/watch?v=OOQHw4Ymy6cCode: Select all
$APPTYPE CONSOLE
DEFSTR I$
FOR B = 99 TO 1 STEP-1
PRINT B; " bottle(s) of beer on the wall,"
PRINT B; " bottle(s) of beer."
PRINT "Take one down, pass it around,"
PRINT B-1; " bottle(s) of beer on the wall." + CRLF
NEXT B
INPUT I$
Code: Select all
OpenConsole()
Define I$
For B = 99 To 1 Step -1
PrintN(Str(B)+ " bottle(s) of beer on the wall,")
PrintN(Str(B)+ " bottle(s) of beer.")
PrintN("Take one down, pass it around,")
PrintN(Str(B-1)+ " bottle(s) of beer on the wall." + #CRLF$)
Next B
Input()
Last night i installed the HotBasic trial.Fred wrote:Thanos: Have you installed HotBasic trial and tried it ? It speaks for itself. BTW, the quote on web site than "HotBasic is the best", "21st compiler" and such are just plain wrong, or they didn't take a look to PureBasic. PB is way ahead, for any part of it.
Code: Select all
$APPTYPE GUI
$TYPECHECK ON
$SYMBOLTABLE ON
defint i,fHnd,rHnd,fFlags,rFlags
defstr title$="HotBasic(tm) Dialogs Test 1.4"
RANDOMIZE TIMER
SHOWCONSOLE
Declare SUB ShowTitle (tstr as STRING)
SUB ShowTitle
Color 11: PRINT tstr: Color 7
END SUB
create f as form
width=380: height=100
center
icon="hotbasic.ico"
caption=title$
resizeable=false
maximizebox=false
create b0 as button
left=10: top=10: width=80
caption="Open File"
onclick=OpenFile
end create
create Open as opendialog
caption = "HotBasic OpenDialog"
DefExt = "sys"
InitialDir = "C:"
end create
end create
PRINT title$
f.showmodal
END
OpenFile:
Open.Flags = &H205800
IF Open.Execute THEN GOSUB ShowOpen
RETURN
ShowOpen:
ShowTitle "OPEN DIALOG"
PRINT "Open.FileName = "; Open.FileName
RETURN
Code: Select all
EnableExplicit
Global xWin, xButt, iEvent, iEventGadget, sFileName.s
xWin = OpenWindow(#PB_Any, 100, 200, 380, 100, "HotBasic(tm) Dialogs Test 1.4", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
If xWin
xButt = ButtonGadget(#PB_Any, 10, 10, 80, 20, "Open File")
Repeat
iEvent = WaitWindowEvent(1)
Select iEvent
Case #PB_Event_Gadget
iEventGadget = EventGadget()
If iEventGadget = xButt
sFileName = OpenFileRequester("HotBasic OpenDialog", "C:\anyFile.sys", "*.sys", 0)
If sFileName
OpenConsole()
PrintN(sFileName)
Input()
CloseConsole()
EndIf
EndIf
EndSelect
Until iEvent = #PB_Event_CloseWindow
EndIf
EndWell its obviously not Hot Basici am looking for a tool to build gui applications easier.
with PB:
defstr title$="HotBasic(tm) Dialogs Test 1.4"
..
create f as form
width=380: height=100
center
icon="hotbasic.ico"
caption=title$
resizeable=false
maximizebox=false
It obvious to me which is easier and quicker. Give me the PB syntax anytime.xWin = OpenWindow(#PB_Any, 100, 200, 380, 100, "HotBasic(tm) Dialogs Test 1.4", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
Well we all would like the world to be a better place.I am only searching for a tool, such VB6, which offers data bound controls and some wizards to design the user interface. BTW i do not like VB.Net.
Thanks for the response.rrpl wrote: Thanos wrote:Well we all would like the world to be a better place.I am only searching for a tool, such VB6, which offers data bound controls and some wizards to design the user interface. BTW i do not like VB.Net.
For me the answer to this has been (and still working on) a series of code snipits that I can insert into my code which together with Pure Form or Visual Designer allows me to quickly build the interface I want. I have used other front ends, but I generally find the process can create as much extra work as it saves.
I am a registered PureVision user too, but my one of my dreams is to see a Borland Delphi or VB RAD type.thanos wrote:...I am a registered user of PureVision which is a very nice gui designer.
But, have you ever used a product such a Borland Delphi?
This is exactly what i mean.
...