You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(31) |
Dec
(80) |
| 2004 |
Jan
(30) |
Feb
(31) |
Mar
(46) |
Apr
(31) |
May
(48) |
Jun
(16) |
Jul
|
Aug
|
Sep
(20) |
Oct
(31) |
Nov
(13) |
Dec
(1) |
| 2005 |
Jan
(4) |
Feb
(7) |
Mar
|
Apr
(3) |
May
(1) |
Jun
(37) |
Jul
(39) |
Aug
(22) |
Sep
(3) |
Oct
(48) |
Nov
(24) |
Dec
(31) |
| 2006 |
Jan
(4) |
Feb
(6) |
Mar
(19) |
Apr
(17) |
May
(39) |
Jun
(62) |
Jul
(11) |
Aug
(21) |
Sep
(10) |
Oct
(26) |
Nov
(8) |
Dec
|
| 2007 |
Jan
(7) |
Feb
(6) |
Mar
(2) |
Apr
|
May
|
Jun
(4) |
Jul
(10) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(2) |
| 2008 |
Jan
(19) |
Feb
(24) |
Mar
|
Apr
(4) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
|
17
|
18
|
19
|
20
|
21
|
22
(2) |
23
|
|
24
|
25
|
26
(2) |
27
|
28
|
29
|
30
|
|
From: Robert M. <rob...@us...> - 2007-06-26 20:37:39
|
On 22/06/07, jez...@ho... <jez...@ho...> wrote: > With the (slow) rise of 64 bit computing is there a need to consider a 64 bit version of Win32-GUI? Activestate now has a 64 bit version of Perl supported with all their tools (i.e., PerlApp) for windows. > > Thoughts on benefits, risks and effort involved? It'd be a nice goal, but for me it sits firmly in the camp of full unicode support: I don't think it's worth it on the current code base. As you know I've been talking about a comlete re-write, and I hope to get time in the next few months to put together a proof of concept. However, I wouldn't want to deter anyone else from investigating, as it may not be as bad as I am imagining. Furthermore I don't have a 64-bit environment to start playing with. Regards, Rob. |
|
From: Robert M. <rob...@us...> - 2007-06-26 20:32:50
|
On 22/06/07, Salvador Ortiz Garc=EDa <so...@ms...> wrote:
> Hi all,
>
> This is my first post to the list, so forgive me if this was discussed
> before.
I don't think it has been discussed before, but I have noticed it
myself. I didn't find it enough of an issue to want to deal with it.
>
> Reflecting the Win32 API, Win32::GUI::TreeView has a GetParent method to
> get the parent node (HTREEITEM) of a node, nothing related with the
> GetParent common method of Win32::GUI.
>
> The common call
>
> my $parentWin =3D $SomeControl->GetParent();
>
> simply don't work when $SomeContros isa TreeView, so right now when I
> need the parent window of the TV control we must use an ugly workaround:
>
> my $parentWin =3D Win32::GUI::GetParent($TreeView);
>
> The following patch cures that, properly subclassing the TreeView with
> only minimal semantic changes IMHO:
>
> When called without NODE or with NODE equal zero (NULL, an invalid
> HTREEITEM value anyway) now TreeView::GetParent() returns the parent
> window, if any, or undef as Win32::GUI::GetParent() does.
>
> Any other value for NODE returns the handler of the parent NODE (or NULL
> at the root NODE) as documented.
>
> So the following works as spected:
>
> sub TV_NodeClick { # Click on a node, OEM form
> my($TreeView, $node) =3D @_;
> my $parentWin =3D $TreeView->GetParent();
> my $parentNode =3D $TreeView->GetParent($node);
> ...
>
> Comments?
I'm a bit short of time at the moment, but I'd like to give this some
more though, as one of the things I strive for is backwards
compatibility and I'm not completely convinced. I think the idea is
OK, but I'd like to tinker with the implementation a little ... give
me a couple of weeks to mull it over.
Many thanks for the contribution.
Regards,
Rob.
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D CUT =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- Win32-GUI/TreeView.xs 2006-04-13 17:17:07.000000000 -0500
> +++ /home/sog/dosdir/work/Win32-GUI-1.05_01/TreeView.xs 2007-06-22
> 00:59:20.000000000 -0500
> @@ -583,15 +583,32 @@
>
>
> #########################################################################=
## # (@)METHOD:GetParent(NODE)
> - # Returns the handle of the parent node for the given B<NODE>.
> -HTREEITEM
> -GetParent(handle,item)
> + # Returns the handle of the parent node for the B<NODE>, if given
> + # or the parent window of the TV control if not.
> +void
> +GetParent(handle,item =3D 0)
> HWND handle
> HTREEITEM item
> -CODE:
> - RETVAL =3D TreeView_GetParent(handle, item);
> -OUTPUT:
> - RETVAL
> +PREINIT:
> + HWND parentHandle;
> + SV* SvParent;
> +PPCODE:
> + if (item) {
> + XSRETURN_IV((long) TreeView_GetParent(handle, item));
> + } else {
> + parentHandle =3D GetParent(handle);
> + if (parentHandle !=3D NULL) {
> + SvParent =3D SV_SELF_FROM_WINDOW(parentHandle);
> + if (SvParent !=3D NULL && SvROK(SvParent)) {
> + XPUSHs(SvParent);
> + } else {
> + XSRETURN_UNDEF;
> + }
> + } else {
> + XSRETURN_UNDEF;
> + }
> + }
> +
>
>
> #########################################################################=
## # (@)METHOD:GetPrevSibling(NODE)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CUT =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
>
>
> Bests Regards.
>
> --
> Salvador Ortiz.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Perl-Win32-GUI-Hackers mailing list
> Per...@li...
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers
> http://perl-win32-gui.sourceforge.net/
>
--=20
Please update your address book with my new email address:
ro...@th...
|
|
From: <jez...@ho...> - 2007-06-22 10:01:49
|
All, With the (slow) rise of 64 bit computing is there a need to consider a 64 bit version of Win32-GUI? Activestate now has a 64 bit version of Perl supported with all their tools (i.e., PerlApp) for windows. Thoughts on benefits, risks and effort involved? Cheers, Jeremy. |
|
From: Salvador O. <so...@ms...> - 2007-06-22 07:44:42
|
Hi all,
This is my first post to the list, so forgive me if this was discussed
before.
Reflecting the Win32 API, Win32::GUI::TreeView has a GetParent method to
get the parent node (HTREEITEM) of a node, nothing related with the
GetParent common method of Win32::GUI.
The common call
my $parentWin = $SomeControl->GetParent();
simply don't work when $SomeContros isa TreeView, so right now when I
need the parent window of the TV control we must use an ugly workaround:
my $parentWin = Win32::GUI::GetParent($TreeView);
The following patch cures that, properly subclassing the TreeView with
only minimal semantic changes IMHO:
When called without NODE or with NODE equal zero (NULL, an invalid
HTREEITEM value anyway) now TreeView::GetParent() returns the parent
window, if any, or undef as Win32::GUI::GetParent() does.
Any other value for NODE returns the handler of the parent NODE (or NULL
at the root NODE) as documented.
So the following works as spected:
sub TV_NodeClick { # Click on a node, OEM form
my($TreeView, $node) = @_;
my $parentWin = $TreeView->GetParent();
my $parentNode = $TreeView->GetParent($node);
...
Comments?
========= CUT ==========
--- Win32-GUI/TreeView.xs 2006-04-13 17:17:07.000000000 -0500
+++ /home/sog/dosdir/work/Win32-GUI-1.05_01/TreeView.xs 2007-06-22
00:59:20.000000000 -0500
@@ -583,15 +583,32 @@
########################################################################### # (@)METHOD:GetParent(NODE)
- # Returns the handle of the parent node for the given B<NODE>.
-HTREEITEM
-GetParent(handle,item)
+ # Returns the handle of the parent node for the B<NODE>, if given
+ # or the parent window of the TV control if not.
+void
+GetParent(handle,item = 0)
HWND handle
HTREEITEM item
-CODE:
- RETVAL = TreeView_GetParent(handle, item);
-OUTPUT:
- RETVAL
+PREINIT:
+ HWND parentHandle;
+ SV* SvParent;
+PPCODE:
+ if (item) {
+ XSRETURN_IV((long) TreeView_GetParent(handle, item));
+ } else {
+ parentHandle = GetParent(handle);
+ if (parentHandle != NULL) {
+ SvParent = SV_SELF_FROM_WINDOW(parentHandle);
+ if (SvParent != NULL && SvROK(SvParent)) {
+ XPUSHs(SvParent);
+ } else {
+ XSRETURN_UNDEF;
+ }
+ } else {
+ XSRETURN_UNDEF;
+ }
+ }
+
########################################################################### # (@)METHOD:GetPrevSibling(NODE)
=========== CUT ==============
Bests Regards.
--
Salvador Ortiz.
|