TBGL_PeriodicFunctionChange
issueid=71 18-10-2010 01:34
thinBasic MVPs
Number of reported issues by Michael Clease: 41
TBGL_PeriodicFunctionChange

I was thinking it would be good to be able to change the Function that is called during execution.

I cant do that without scrapping it and setting it up again from scratch :(

thanks

Mike C
Issue Details
Issue Number 71
Issue Type Feature
Project TBGL
Category Unknown
Status Implemented
Priority Unknown
Suggested Version Unknown
Implemented Version (none)
Votes for this feature 0
Votes against this feature 0
Assigned Users (none)
Tags (none)




18-10-2010 09:41
Super Moderator
Thanks Mike,

I will have a look at it.


Petr

18-10-2010 10:15
Super Moderator
Is the following syntax ok for you?:
TBGL_ChangePeriodicFunction( hWnd, FunctionName )
I know the hWnd parameter might seem irrelevant for the moment, but what if TBGL will support multiple windows in the future ;)


Petr

18-10-2010 10:26
thinBasic MVPs
Thats sounds good to me.

One suggestion which could chaos is to change the function names to all start with Periodic

TBGL_PeriodicChangeFunction
TBGL_PeriodicBindFunction
TBGL_PeriodicProcessFunction
TBGL_PeriodicUnBindFunction

This would group all commands together making it easier to find all related commands.

Mike

oops spelling error function without the first "n" becomes quite rude :D

18-10-2010 10:40
Super Moderator
That sounds good, and the latest TBGL commands follow this pattern (TBGL_Entity...).

I think I have used the old syntax in some tutorials already, but nothing is simpler than adding alias inside module definition. I will do that.
The syntax TBGL_Periodic... will be better for case once thinAir will have code completion, it will quickly filter out the rest.

I will update the docs and upload new DLL for testing in few minutes.


Petr

18-10-2010 11:44
Super Moderator
Hi Mike,

here you can get it implemented and documented. Let me know in case of any problems:
thinBasic TBGL update 2010 10 18 B(fixed)


Petr

18-10-2010 12:39
Super Moderator
Huh,

there is a bug, I will reupload in a moment.


Petr

18-10-2010 12:46
Super Moderator
New version online, please get it here:
http://psch.thinbasic.com/temporary/...e20101018B.zip


Petr

18-10-2010 14:11
thinBasic MVPs
Thanks for the update I will have a play tonight.

Mike

+ Reply