Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: cyanophycean314 on April 29, 2012, 07:08:08 pm

Title: Help with on.help
Post by: cyanophycean314 on April 29, 2012, 07:08:08 pm
It seems like the on.help() event doesn't work.

Code: [Select]
function on.paint(gc)
 if helps then
  gc:drawString("Help",50,50)
 end
end

function on.help()
 helps = true
 platform.window:invalidate()
end

Nothing happens when you press Ctrl+H, I've tested this both on-calc and with nspire_emu. Any ideas?
Title: Re: Help with on.help
Post by: Nick on April 30, 2012, 02:44:48 am
well, it's not really [ctrl][h], but [ctrl][trig], the button with that blue "?" above :)
Title: Re: Help with on.help
Post by: cyanophycean314 on April 30, 2012, 07:10:25 pm
Oh! Thank you for explaining! Somebody should fix that on Inspired Lua, it's wrong there.
Title: Re: Help with on.help
Post by: Jonius7 on May 01, 2012, 06:42:36 am
There are quite a few things incorrect/incomplete on Inspired Lua and wiki, but it's a pretty good resource.
So what's the usefulness of on.help when you have to press two buttons to access it?
Title: Re: Help with on.help
Post by: Netham45 on May 01, 2012, 07:57:57 am
There are quite a few things incorrect/incomplete on Inspired Lua and wiki, but it's a pretty good resource.
So what's the usefulness of on.help when you have to press two buttons to access it?

A generic means to get information/help in a program, similar to F1, would be my guess.
Title: Re: Help with on.help
Post by: Adriweb on May 01, 2012, 08:53:32 am
There are quite a few things incorrect/incomplete on Inspired Lua and wiki, but it's a pretty good resource.
So what's the usefulness of on.help when you have to press two buttons to access it?

Please report them, really.
Any non-complete/wrong/missing/not-good-enough...

Thanks in advance !

Anyway, will fix that one right now.
Title: Re: Help with on.help
Post by: cyanophycean314 on May 01, 2012, 04:45:36 pm
So what's the usefulness of on.help when you have to press two buttons to access it?
Yeah it's basically to get help. It's a prebuilt event, so why not use it? Other than the fact some might not be able to figure that out. Luckily, there's going to be a readme.
Title: Re: Help with on.help
Post by: cyanophycean314 on May 03, 2012, 05:42:38 pm
Is there any way to access the on.help event through nspire_emu, because I don't see a trig button...
Title: Re: Help with on.help
Post by: Adriweb on May 03, 2012, 05:45:33 pm
Is there any way to access the on.help event through nspire_emu, because I don't see a trig button...
Choose the Touchpad Keyboard ?