Search found 77 matches

by ken_anthony
Sat Jul 06, 2013 7:11 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Still attempting to adapt code, but while I have this on my mind...

Code: Select all

ProcedureC Second_ExposeHandler(*Widget.GtkWidget, *Event.GdkEventExpose)
  DrawPolygons(*Widget.GtkWidget)
EndProcedure
Doesn't this call DrawPolygons multiple times since GdkEventExpose isn't being used?
by ken_anthony
Sat Jul 06, 2013 6:49 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

I should add, one of the performance benefits of sequences is that if you have two that are only slightly different, only the difference needs another allocation (at least that's my understanding of how Euphoria does it) and only pointers are being passed or assigned. Also sequences are technically ...
by ken_anthony
Sat Jul 06, 2013 6:37 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Yeah, I saw that which brings out my weird sense of humor because if it weren't for types, the code doesn't logically change. C is similar with it's header files. Both things violate my probably over broad generalization of encapsulation.

I'm a simple guy easily confused (was that four levels of ...
by ken_anthony
Sat Jul 06, 2013 3:57 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Shardik,

Just thinking out loud here as I adapt your code to my project.

It would seem to me that I would want a separate callback for each form. So what I believe I will do is create separate versions of WidgetExposeHandler as part of each forms file. My reasoning is so I can clear and rebuild ...
by ken_anthony
Thu Jul 04, 2013 7:34 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Thank you Shardik. Above and beyond.

I understand. Of course the first thing I did was test it with a non primary. It works. I'm a happy camper.

If I can find the time I really need to dig into Cairo. <strike>I suspect</strike> I'm possitive it has a lot of useful goodness in it.

That's a good ...
by ken_anthony
Wed Jul 03, 2013 9:42 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Alright, I've put together this little test. Question: Why is the green polygon showing up on the second form?

Originally, I had an error producing a polygon on a canvas on a second form, but I haven't reproduced it yet.

Main file

EnableExplicit

Global wMain, wSecond

Enumeration
#m1 ...
by ken_anthony
Wed Jul 03, 2013 8:51 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Shardik,

I believe I've found a couple of oops.

The most severe for me is that only RGB values of 0 or 255 work. Any value from 1 to 254 is treated as zero.

The second oops requires me to put together an example which will take a bit of time, but I will do so and post it here later.
by ken_anthony
Tue Jul 02, 2013 6:27 am
Forum: Off Topic
Topic: project autoload
Replies: 6
Views: 2522

Re: project autoload

What I'm doing is just having all files closed except my main file and the other one I'm working on. One instance of PureBasic is plenty since I can open a third file just for testing and it doesn't interfere with the two I already have opened.
by ken_anthony
Mon Jul 01, 2013 2:25 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

BTW, next year I will need beta testers and later I anticipate paid hosts that start with a constellation class starship to help the weak players get started and enforce galactic law which has no silly prime directive. Would you like to get paid for playing my game? You've already demonstrated the ...
by ken_anthony
Mon Jul 01, 2013 2:14 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Did I mention you start the game like Christina Hendricks left Malcolm Reynolds in one episode of firefly. A firefly is a small to medium sized ship with two shuttles. Yes, they are in the game.
by ken_anthony
Mon Jul 01, 2013 1:47 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

I don't want to be influenced by looking at other games at this point but I did see this blurb...
Space in Frontier was especially deep, with a full-scale galaxy containing 100 billion stars and several empires with their own legal systems and trading outposts. Players could choose to raid other ...
by ken_anthony
Sun Jun 30, 2013 6:54 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

EnableExplicit is now part of my project. May god have mercy on my soul.

Thanks to this solution for polygons I have gone ahead and paid for a year of hosting. Nothing to see now, but...

http://www.galaxy-is-waiting.com

...is my new domain. After I've learned all I can about my host and ...
by ken_anthony
Sun Jun 30, 2013 12:15 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

I am in awe. You have no idea how grateful I am. I don't know how long, if ever, it would have taken me to stumble upon the solution. I had actually tested something close to that by moving a window over the polygon then away to see if it was persistent. Now I have to see if I would accidentally ...
by ken_anthony
Sat Jun 29, 2013 6:11 pm
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

The importance of this is if I can't call CreatePolygon from within a procedure it because an almost totally worthless function.
by ken_anthony
Sat Jun 29, 2013 10:26 am
Forum: Coding Questions
Topic: Irregular polygon, using OS API
Replies: 36
Views: 3964

Re: Irregular polygon, using OS API

Zach, that is perfectly reasonable, so here ya go. My project has about 15 files in it already, so I've cut that down to just what's relevant (3 files which works fine before the change I will show you below.)

The main file:

Global wMain

Enumeration
#m1
EndEnumeration

Structure Point
x.D
y.D ...