Re: An idea of improving the win32lib.htm
The good thing about Win32Lib is that you don't have to worry about this
(low-level) details. If you want to place a button in a window, the
properties likes WS_ and BS_ are automagically added, thus creating a
PushButton. An example
-- suppose you have a window called "TheWindow"
-- create a button in TheWindow
global constant OK = create(PushButton, -- the kind of control
"OK", -- the text
on the control
TheWindow, -- the 'parent'
of the control
8, --
distance from left of parent
16, --
distance from top of parent
90, -- width
of the control
30, -- height
of the control
0) --
additional attributes
The last parameter is not used in general. If it is used, it should contain
a sequence of attributes that 'replace' the default WS_ and BS_. So don't
bother with that for the time being.
In general, I recommend you to try and read and execute the example files
that come with Win32Lib. Also, there is the EUWinTutor by Wolfgang Fritz &
others:
http://www.king.igs.net/~wolfritz/EUWinTutor.zip
And you know, don't hesitate to ask further questions.
Bye, Ad
----- Oorspronkelijk bericht -----
Van: euphoria euphoria <euphoria at HKEM.COM>
Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Verzonden: zondag 24 september 2000 15:08
Onderwerp: 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!
|
Not Categorized, Please Help
|
|