Thanks srod, this was really bugging me. I was trying it this way because I am trying to make a very simple generic event handler. example (psuedo code)
Procedure OnClick(gadgetID)
If button click equals gadget ID
do something
EndProcedure
OnClick(1) MessageRequester("Pop up Win", "HELLO WORLD ...
Search found 9 matches
- Sun Sep 27, 2009 4:59 pm
- Forum: Coding Questions
- Topic: Button needs 2 clicks?
- Replies: 4
- Views: 887
- Sun Sep 27, 2009 4:34 pm
- Forum: Coding Questions
- Topic: Button needs 2 clicks?
- Replies: 4
- Views: 887
Button needs 2 clicks?
When I run this code and click on the button the first time nothing happens..? But when I click on it the 2nd time the pop up window works and then every time I click on it after that, it works. Until I close the program and open it up again. Why is this?
If OpenWindow(0, 0, 0, 230, 90, "Event ...
If OpenWindow(0, 0, 0, 230, 90, "Event ...
- Tue Sep 15, 2009 11:24 pm
- Forum: Coding Questions
- Topic: difference between a command, constant, structure Interface?
- Replies: 5
- Views: 1273
Re: difference between a command, constant, structure Interface?
Thank you Kaeru Gaman for your explanation. After reading Kales comment :roll: ( wich I know somebody was going to say I didnt read something or other). I was hoping a simple explantation would answer my question . Let me clarify my question. Yes I do understand the basics of a command - do ...
- Tue Sep 15, 2009 4:22 pm
- Forum: Coding Questions
- Topic: difference between a command, constant, structure Interface?
- Replies: 5
- Views: 1273
difference between a command, constant, structure Interface?
I have read over the documentation a hundred times and also searched the forum and also read Kale's book. Could someone please give me a simple explanation what is the difference between a command, constant, structure, and an interface ? And also how structures and constants relate to the winAPI ? I ...
- Sat Sep 05, 2009 2:52 pm
- Forum: Coding Questions
- Topic: exe to exe
- Replies: 1
- Views: 742
exe to exe
I searched the forum high and low for this and found no clear answer. I want to make an app.(exe) so users can create their own screen with buttons, pictures, and mp3's. My question is once they do this how can they save it as an exe ?(for Windows) I cant add the pbcompiller exe right? That would be ...
- Sun Aug 30, 2009 3:18 pm
- Forum: General Discussion
- Topic: Can you create a programming language in PureBasic?
- Replies: 61
- Views: 19835
Great !
Thanks Trond, very basic and simple. Great work. I am happy to see it can be done without using lexx and yacc and a million other tools that are written in C and all samples in C that I dont understand. Thanks !!
- Sat Aug 29, 2009 1:43 am
- Forum: General Discussion
- Topic: Can you create a programming language in PureBasic?
- Replies: 61
- Views: 19835
Nice and simple or should I say basic compiler,
Thanks Trond , Thats what I was looking for an example that doesnt use Lexx,Bison, or Yacc just PureBasic. A simple example to see how a compiler is built and how it works and build upon that. Cant wait for that Tut.
" Its not always what one knows, Its knowing where to find the answers".
" Its not always what one knows, Its knowing where to find the answers".
- Fri Aug 28, 2009 1:01 pm
- Forum: General Discussion
- Topic: Can you create a programming language in PureBasic?
- Replies: 61
- Views: 19835
Thanks everyone
Thanks everyone for all your input and puns :) . I have read all about Lexx and Yacc and parser generators in the past and yes all that is above my head and I dont have the time or interest to really learn that right now. I just wasnt sure if there was a simpler way to do it just using PureBasic to ...
- Fri Aug 28, 2009 1:19 am
- Forum: General Discussion
- Topic: Can you create a programming language in PureBasic?
- Replies: 61
- Views: 19835
Making your own language, updates?
Please bear with me Iam just a novice but want to learn. sharkbate24 did you ever find any good information on making your own compiled computer language from purebasic or have any good links with samples ? I have always been interested in doing this and any usefull and simple information is very ...