Re: New to Euphoria and GUI

new topic     » goto parent     » topic index » view thread      » older message » newer message

Dan Moyer wrote:

> There is also a "RunDemos.exw" program in the "Demo" folder which may be
> helpful (I wrote that one).

I have had a lot of fun running these demos. They have taught me a lot.
I think at least one demo has a memory leak because after running a 
bunch of these my other applications began to show strange fonts which 
usually means something lost all the memory and a reboot is in order.

I cannot find a keystroke capture demo though, and that is the thing I 
need. Also in Win32Lib the only documentation on keystroke capture seems 
to be in events where it has:

    const w32HKeyPress   "Printable" key is pressed.

and when I look at that it says:

    [const]
    w32HKeyPress
    "Printable" key is pressed.
    Category: Events

    parms = { integer keyCode, integer shift}

    The keyCode is ANSII value of the key. Only "visible" keys are
    reported with this function. To trap "special" keys (such as the
    cursor keys), use onKeyDown.

Now I find this confusing.  It says "Const" and then it says "parms". 
Does this mean that eventtype is w32HKeyPress and keycode will have the 
key pressed in it?  Because when I use "keyCode" it says that it isn't 
defined.  ??? sad

> And there is an IDE (Integrated Development Environment) which makes using
> Win32Lib a LOT easier, because it's graphically oriented, just click things
> with your mouse & it writes the GUI code for you (David Cuny started that
> one, and Judith Evans has *extensively* expanded it).

OK, I got this too.  Sounds like a super version of windows designer 
that I already enjoyed learning - OK back to school!

It seems that most of my problems where from accidentally getting 
win32Lib with an application which included the library and not the 
docs. So when I came across Win32Lib again in the archives I said "I 
have that already" which of course I didn't really - at least not the 
documentation. At present I am a happy little chappy apart from not 
being able to find out how to get a keystroke.

Thanks again Dan

Ray Tomes

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu