Ok, hopefully an intelligent question:
How are the ShowForm() and DrawArc() procedures any different from a GOSUB??
Search found 16 matches
- Sun Mar 06, 2011 8:56 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
- Fri Mar 04, 2011 3:48 am
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
Yay, I sufficiently finished my list enough to code again.
Both routines work great! I added a 40ms delay between pixels and that's exactly what I want!
Now to dissect it to figure out what makes the code tick, then put it in my sonar program.
Y'all great. Thanks alot!
Both routines work great! I added a 40ms delay between pixels and that's exactly what I want!
Now to dissect it to figure out what makes the code tick, then put it in my sonar program.
Y'all great. Thanks alot!
- Mon Feb 28, 2011 9:24 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
Zach wrote:Two Scotsmen are standing on opposite hills and one says to the other, "Are ya shearin' sheep?" And the other replies, "No, Get yer'own!"
WHAT? AAAAAHAHAHA! Thanks, I needed that after this typical Monday.
- Mon Feb 28, 2011 4:53 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
WHAT!?? Wow, thank you! I didn't expect ya would give me the inkey code and make the direct to window change for me!
Thank you so much. That's awesome.
Hopefully you think my reasons are valid for the direct draw..... I'm not trying to be hard to get along with :)
I should be able to try this ...
Thank you so much. That's awesome.
Hopefully you think my reasons are valid for the direct draw..... I'm not trying to be hard to get along with :)
I should be able to try this ...
- Sun Feb 27, 2011 4:05 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
In Purebasic help, look at the Keyboard link under 2D Games & Multimedia Libraries
Also under the General Libraries section, Console -> look up Inkey / Rawkey instead of Input. Since you are using the Console library, basing your input parsing routine on the Inkey() command should work better for ...
Also under the General Libraries section, Console -> look up Inkey / Rawkey instead of Input. Since you are using the Console library, basing your input parsing routine on the Inkey() command should work better for ...
- Sun Feb 27, 2011 4:01 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
It seems a very strange thing to do spiral72.
If you need that Graphics Window, drop the Console! No reason why you should not have an input box (string gadget or spin gadget) on the Window, or if the real estate cannot be spared use a Message Requester. Also, you initialise an Image Gadget but ...
If you need that Graphics Window, drop the Console! No reason why you should not have an input box (string gadget or spin gadget) on the Window, or if the real estate cannot be spared use a Message Requester. Also, you initialise an Image Gadget but ...
- Sun Feb 27, 2011 3:39 pm
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
If you have a window opened, you need to have an event loop running. This means you can't use Input() from the same thread, since this function blocks until the user inputs something (essentially stalling the event loop).
I understand that the Input() stalls program execution. I DON'T understand ...
I understand that the Input() stalls program execution. I DON'T understand ...
- Sun Feb 27, 2011 5:10 am
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Re: Text and 2D graphics window
Thank you for the suggestions. I wanted to let you know I'm still interested, just working a LOT since posting this. I hope to get back to it tomorrow night.
- Fri Feb 25, 2011 6:08 am
- Forum: Coding Questions
- Topic: Text and 2D graphics window
- Replies: 17
- Views: 3071
Text and 2D graphics window
I really, really tried to figure this out myself.... It's just not working for me.
This is the graphics portion of a larger program I'm working on. This routine just isn't working properly. I tried to simplify it so what I have left is:
;---------------------------[ Initial setup ...
This is the graphics portion of a larger program I'm working on. This routine just isn't working properly. I tried to simplify it so what I have left is:
;---------------------------[ Initial setup ...
- Sun Feb 20, 2011 5:33 am
- Forum: Coding Questions
- Topic: input a number, with input() ???
- Replies: 3
- Views: 784
Re: input a number, with input() ???
AH! Thank you! It works perfectly 
and thank you for the fast response.
and thank you for the fast response.
- Sun Feb 20, 2011 5:17 am
- Forum: Coding Questions
- Topic: input a number, with input() ???
- Replies: 3
- Views: 784
Re: input a number, with input() ???
Actually, more correctly, I "CAN" type a number in for the input() entry, but it's just a string which happens to contain numeric digits.
It'd be real nice if I could, something like:
a = input()
It'd be real nice if I could, something like:
a = input()
- Sun Feb 20, 2011 5:14 am
- Forum: Coding Questions
- Topic: input a number, with input() ???
- Replies: 3
- Views: 784
input a number, with input() ???
I'm trying to use input() to accept a number from the keyboard. It doesn't work since this is a string instruction.
Is there another version if input() that will accept a number?? Or is there a work-around???
My searches come up with nothing.
Is there another version if input() that will accept a number?? Or is there a work-around???
My searches come up with nothing.
- Thu Feb 17, 2011 9:24 pm
- Forum: Coding Questions
- Topic: Help with using ButtonGadget
- Replies: 6
- Views: 2466
Re: Help with using ButtonGadget
Hmmmm.
Thank you both. I'll play with both of your suggestions and see what I come up with.
It looks like things work very different to what I'm used to.
Have a great day!...........Or night for you
Thank you both. I'll play with both of your suggestions and see what I come up with.
It looks like things work very different to what I'm used to.
Have a great day!...........Or night for you
- Thu Feb 17, 2011 8:55 pm
- Forum: Coding Questions
- Topic: Help with using ButtonGadget
- Replies: 6
- Views: 2466
Re: Help with using ButtonGadget
There's nothing wrong.
Delay delays the execution of the next code.
If your code (that you removed) takes 5seconds to execute that's either loading time, like many programs have, or in your case, since you are a beginner, there's an error in the code eg endless loop.
Thank you for the kind reply ...
Delay delays the execution of the next code.
If your code (that you removed) takes 5seconds to execute that's either loading time, like many programs have, or in your case, since you are a beginner, there's an error in the code eg endless loop.
Thank you for the kind reply ...
- Thu Feb 17, 2011 8:50 pm
- Forum: Coding Questions
- Topic: Help with using ButtonGadget
- Replies: 6
- Views: 2466
Re: Help with using ButtonGadget
Ok, I had a thought and changed the code as follows:
; Shows possible flags of ButtonGadget in action...
If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
ButtonGadget(1, 10, 40, 200, 20, "Left ...
; Shows possible flags of ButtonGadget in action...
If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
ButtonGadget(1, 10, 40, 200, 20, "Left ...