Re: An idea of improving the win32lib.htm

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

------=_NextPart_000_0026_01C025FC.008B7660
        charset="iso-8859-1"

All,

I hate to say it, but I think Yan is sorta right: the documentation is *not*
well oriented for beginners.  It needs examples for every entry, & perhaps
more clarity.  I think maybe we can use the difficulties beginners have to
help us see how to improve it?



Yan,

As far as I understand it, those attributes of the pushbutton are *already*
set by default, I think.  Here is an example of creating a push button:

      -- create a pushbutton
      constant MyButton = create( PushButton,     -- the class
                                  "Push Me!",     -- the caption
                                  MyWindow,      -- the parent
                                  10, 10,         -- x and y position
                                  60, 40,         -- width and height
                                  0 )             -- no special flags

It might look like this when you make it, with the comments removed:
constant MyButton = create( PushButton,"Push Me!", MyWindow, 10, 10, 60, 40,
0 )

As you can see, the way to create a control is to use the "constant"
definition facility to create some constant whose name you choose that you
then use when referring to the control, which is set equal to some value
returned from the "create" function, which serves to identify the control to
other routines.

While you are correct that the example in the win32lib.htm is minimal
(actually, there isn't any),  there are example *PROGRAMS* provided with
Win32Lib which illustrate a wide variety of things you can do with Win32Lib,
including the creation of push buttons; and there also is a program I sent
to RDS, "Gateway to Win32Lib Examples", which makes it easier to run & view
the example programs; and I have attached to this post a short Win32Lib FAQ
I started (which is also included with the "Gateway" program), which might
start to answer a couple of your questions.

Dan Moyer



----- Original Message -----
From: "euphoria euphoria" <euphoria at HKEM.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, September 24, 2000 6:08 AM
Subject: An idea of improving the win32lib.htm


> I got the idea from looking at win2lib.htm
> because the htm file is still not good at detail
> for example:
>   PushButton
>   Command button control.
>   Category: Controls
>   A PushButton is a normal push button (sometimes called
>   command button). A PushButton has the following attributes:
>
>
>   WS_CHILD: child control of the parent
>   WS_VISIBLE: it is visible
>   BS_PUSHBUTTON: button style is pushbutton
>   WS_TABSTOP: the control can be tabbed to
>   .........
> where we should put these attributes in create(.....)?
> is it a function or a procedure?(of couse it is not)
> and the example inside it is too short.
> this is just my commant
> i am a begainer of Euphoria and i know that this languge need to  AIY (Ask
it yourself) although these problems are small, it will affect all begainers
like me, and just don't know how to do.
> after reading my letter, i hope you can "open" a new project called (or
will call) Euphoria Document Project, the army(correct spelling?) is to
"create" and improve the document of Euphoria.
> by the end, i hope Euphoria will popular than other language like c++ or
VB
> thank you for reading my long letter.
> YanYanCup--A Hong-Konger
> _____________________________________________________
> Sent by Hong Kong E-Mail at http://www.hkem.com
> It's free. It's easy. Sign up your account Now!

------=_NextPart_000_0026_01C025FC.008B7660
        name="W32Faq.htm"
Content-Transfer-Encoding: quoted-printable

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

Search



Quick Links

User menu

Not signed in.

Misc Menu