Hi Oliver,

On Thu, Aug 18, 2011 at 12:55 PM, Oliver Sims <
oliver.s...@simsassociates.co.uk> wrote:

> Page 1116 (section 26.3.3) of ooDialog Reference (7123) is missing the last
> two params of the create method (count and grow).



Yes, I see what you mean.  The arguments are in the syntax diagram, I just
missed explaining them in the text.




> I looked them up on the
> web (http://winapi.freetechsecrets.com/win32/WIN32ImageListCreate.htm),
> and
> they seem to be:
>
> cInitial (aka count)
>
> Number of images that the image list initially contains.
>
> cGrow (aka grow)
>
> Number of images by which the image list can grow when the system needs to
> resize the list to make room for new images. This parameter represents the
> number of new images that the resized image list can contain.
>
>

That is exactly what the args are.

Experimentation seemed to show that you can create an image list with a
count of say 10, without any images in it.  Then you can add up to 10
images.  If grow is 0, then you can not add any more images.  If grow is 6,
then you can add up to 16 images.

This is one of the places where ooDialog just calls the Win API with the
arguments.  How the API behaves, is how it behaves.

The Microsoft documentation is not very clear to me on how the API is
suppossed to behave, so I can not document it well in the ooDialog
documentation.  The Rexx programmer will just have to do the same thing I
do, experiment with the args and see what happens.

In particular for this method, I do not know exactly what the individual
flags do or don't do.  I just know from some of my experimentation that some
combinations of flags do not work, no image list is created.

Since I'm not artistic, I don't have any software for creating or
manipulating images, and don't know much about images.  So, it is hard for
me to experiment with the API.  But, in this case ooDialog allows the
programmer to use any and all of the arguments accepted by the Windows API.
Anything that the API is capable of doing in C or C++ code, the Rexx
programmer is capable of doing in their program.  Understanding or knowing
what the API is capable of is something individuals will need to do on
therir own.


--
Mark Miesfeld
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to