Re: 15 Puzzle and questions

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

Hello Rodolfo,


>Suggestions:
>
>A method to comment large code blocks. A "if 0 then" is not a good
method,
>since the syntax is checked.

Right, Euphoria makes a complete pass through the code checking for any
major errors before executing anything.  Of course you COULD put one
huge coment one one line if you don't word wrap but that kind of defeats
the purpose of coments ;)


>The scope rules are prone to collisions of identificators. The not
declared
>libraries do not have to be accessible.
>
>Less important: direct functions reference. Sentences of the type "if
>message_box(...) then end if" or "x = message_box(...)" are artificial.

Do you mean "identical"?  They both do the same thing but using an if
statement to get arround using a variable is generally thought of as
"bad" programing technique.

>Win32Lib:
>
>How it can be changed the icon of a program?

Don't know.

>It can be changed the mouse pointer shape?

I believe there is a library called "mighty.e" that many use for mouse
routines.  It has a standard set of predifined (I believe) pointer types
that you can use.  I'm working on a mouse library now that allows for
customized mouse pointers.  It will have it's limitations but I'm
designing it for "ease of use".  I also plan to add an editor s anyone
can design their own custom mouse shape.  I think I'll release the alpha
version tomorrow with out the editor.


>Are there any method for knowing the dimensions of a bitmap loaded from
>disk?

-- Untested code
include image.e
object bm, height, width
bm = read_bitmap ("c:\path\file.bmp")
height = length (bm [2])
-- assuming that all rows have the same
-- number of pixels.
width = length (bm [2][1])


hope this helps,
Lewis Townsend
Keroltarr at hotmail.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu