hello
>
> this is my dot plan about Win32::GUI, what I'm doing and what
> I plan to do. please note that everything here may change (without
> further notice) depending on my other activities (namely job and
> 'real life' :-).
>
> it would be kewl if you could 'prioritize' the list based on
> what you find more useful (or funny :-), and above all (pardon
> the caps): IF YOU CAN HELP ME WITH SOMETHING, PLEASE DO!
>
> **** NEM (New Event Model)
> I'm almost done with this, but there are still some flaws.
> I will also define the API to manage events (eg. AddEvent
> or BindEvent or ResetEvent or something like this...).
> I'm also adding the possibility of 'shortcut' options a la
> Javascript, like:
> -onClick => \&DoSomething
Good.
> **** Event Queues
> this is something I didn't really explored yet, but I would
> like to process a list of events. should look somehow like
> this:
> -events => { Click => [ \&DoSomething, \&DoSomethingElse ] }
> in other words, when a Click events occur first DoSomething
> is executed, then DoSomethingElse. the main purpose for this
> is to allow subpackages to define their own event handlers
> which can be 'overriden' by the implementation in the program.
> (if it doesn't sound clear, don't worry, is still mainly obscure
> to me too :-)
Not obscure at all ;-) but a very difficult point.
I have think a little about this and i have notice 2 things.
* With only one event fonction (actual NEM)
it's possible to call the DoSomethingElse function in the DoSomething
function.
And in case of 'overriden' a sub package event, just need to call the event
function.
sub overriden_OnClick {
my $self = shift;
# do something before
$self->OnClick(); # or in inherited package $self->SUPER::OnCLick();
# do something after
}
The package use the \& syntax and not sub { } in the event option.
But for instanced object, it's possible to use sub {}.
* With event queue
Problem for the new package method.
For example :
- the package need to add a click event function
- the user create an object with a click event function
How create the click event array ?
- order problem between user event and package event.
- If user don't want default package click event.
> **** Win32::GUI::JPEG
> allow *read* support for JPEG images, using libjpeg (see
> ftp://ftp.uu.net/graphics/jpeg). JPEG files can be converted
> to in-memory bitmaps and then used as regular Bitmap objects.
> (NOTE: I'm *not going* to develop Win32::GUI::GIF. GIF is
> absolutely deprecated, I'll look into PNG support eventually).
After some search about this point, I found a free open source code project
named FreeImage.
It's a library for loading and writing different file format (JPEG, PNG,BMP,
PCX, TIFF, TGA).
I have look some example, it's look easy to use.
It's possible to read the data image not only from file (just need to code
an io-handler).
It can be usefull for read image from perl variable (no tempory file in the
BitmapInline.pm or
interface with perl GD module).
FreeImage Web Site : http://home.wxs.nl/~flvdberg/index.html
I can help you for this point.
>
> **** Win32::GUI::Scintilla
> (see http://www.scintilla.org); to revive pride.pl! :-)
>
This text control look very nice.
Laurent.