RE: [perl-win32-gui-users] Re: [Win32::GUI] List of missing desired widgets

2003-06-17 Thread Stuart Arnold
The scrollbar, with another control(usually a textfield), is used as a
"Buddy" control.
Together, they make the "Stepper" control.
It's kind-of handy in the interface.

Regards,
-Stuart


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Johan Lindstrom
Sent: Monday, June 16, 2003 12:37 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Re: [Win32::GUI] List of missing desired
widgets


At 18:10 2003-06-16 +0200, Aldo Calpini wrote:
> > TScrollBar: Scroll bar vertical or horizontal
>
>missing, but do we need one?

Could be useful, there have been a few posts regarding this. Not sure
how 
to handle it though, if it should be connected to other controls or 
standalone etc.


> > TRadioGroup:Panel Box container for radio buttons set
>
>missing, and we need one :-)

Doing groups of RadioButtons is doable today, just set the -groupstart
(? 
or whatever it's called ?) on the first control in the group. A special 
control for that would perhaps be useful but not essential.


> > TStringGrid:Excel like Grid widget for text only
> > TDrawGrid:  Excel like Grid widget for text or image
>
>see Win32::GUI::Grid by Laurent Rocher

I played with it a little this weekend and it looks very useful.


> > Win32: {COMCTL32.DLL version 4.70 or later}
> > ==
> > TTabControl:Tab page
> > TPageControl:   Tab page controller
>
>actually only Win32::GUI::Tabstrip

Or the Win32::GUI::TabStripGroup. And I think Laurent has one on his
page 
as well.


> > TUpDown:Up/Down button

There is one in Win32::GUI, can't remember the exact name now. I use it
in 
the Perl Oasis preferences dialog.


> > TCoolBar:   MS Office Tool Bar with scroll container
>
>see Win32::GUI::Rebar
>
> > TPageScroller:  MS Office Tool Bar with scroll and moveable
container
>
>Win32::GUI::Rebar

The Rebar sound very useful but I've never seen anyone do anything with
it. 
It lacks documentation and sample programs. Anyone out there with
anything 
runnable?


On the top of my wish list is:
- true modal dialogs
- working accelerators
- (more) complete event support
- drag-n-drop support (please apply my patch)


/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: "Re Re International Perl Resources"
http://www.perlmonks.org/index.pl?node_id=55268
dmoz (1 of 4): /Business/Industries/Publishing/Publishers/ 46




---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users





[perl-win32-gui-users] modal windows

2003-06-17 Thread Aldo Calpini
to my absolute dismay, I've just discovered that "true" modal windows
are perfectly doable in Win32::GUI.

I banged my head for more than one week fighting with dialog templates
and crappy hacks... what a fool.

the following code implements a regular modal window, with all the
features. the trick is in the "-parent" option, and proper use of
Enable/Disable, Show/Hide and BringWindowToTop.

use Win32::GUI;

$MainWindow = Win32::GUI::Window->new(
-text => "Main",
-name => "MainWindow",
-pos  => [ 200, 200 ],
-size => [ 150, 100 ],
);

$MainWindow->AddButton(
-name => "OpenModal",
-pos  => [ 15, 20 ],
-text => "Open Modal Window",
);

$ModalWindow = Win32::GUI::Window->new(
-text => "Modal",
-name => "ModalWindow",
-pos  => [ 220, 220 ],
-size => [ 150, 100 ],
-parent => $MainWindow, # this is the trick!
);

$ModalWindow->AddButton(
-name => "CloseModal",
-pos  => [ 15, 20 ],
-text => "Close Modal Window",
);

$MainWindow->Show();
Win32::GUI::Dialog();

sub OpenModal_Click {
$MainWindow->Disable();
$ModalWindow->Show();
}

sub CloseModal_Click {
$ModalWindow->Hide();
$MainWindow->Enable();
$MainWindow->BringWindowToTop();
return 1;
}

sub MainWindow_Terminate {
-1;
}

sub ModalWindow_Terminate {
CloseModal_Click();
return 0; # so that $ModalWindow is not destroyed
}

maybe all this can be encapsulated in Perl functions, like this:

sub OpenModal_Click {
$MainWindow->DoModal($ModalWindow);
}

sub CloseModal_Click {
$ModalWindow->EndDialog();
}

would this fulfill all the needs for modal dialog boxes?

cheers,
Aldo

__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;




Re: [perl-win32-gui-users] modal windows

2003-06-17 Thread Johan Lindstrom

At 13:24 2003-06-17 +0200, Aldo Calpini wrote:

the following code implements a regular modal window, with all the
features. the trick is in the "-parent" option, and proper use of
Enable/Disable, Show/Hide and BringWindowToTop.


If it works, absolutely wonderful!

But see if it works with two opened windows. The modal window can only have 
one of them as -parent. IIRC, that was the problem with the 
Win32::GUI::Modalizer class.



Is there any way of enumerating created windows? Or child windows of a window?

Witht the ability to traverse a window hierarchy it should be trivial to 
write DoModal(), and EndModal() methods to call on a modal window.



/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: "Hacking and Refactoring"
http://www.artima.com/weblogs/viewpost.jsp?thread=5342
dmoz (1 of 23): /Computers/Hacking/Ethics/ 43





Re: [perl-win32-gui-users] modal windows

2003-06-17 Thread Jeremy White

From: Johan Lindstrom <[EMAIL PROTECTED]>
If it works, absolutely wonderful!

But see if it works with two opened windows. The modal window can only have 
one of them as -parent. IIRC, that was the problem with the 
Win32::GUI::Modalizer class.




Yeah it does work. But it does become a mess when more than one window is 
open at anyone time. Especially when the "modal" window can be opened from 
different windows (parents). I had to set the parent to the mainwindow (even 
though it is not the actual "parent"), and do weird logic to handle when the 
user clicks on other windows - even then, its not perfect, and have various 
holes in the logic.


Its fine for simple stuff, anything more than that

Cheers,

Jez.

_
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger





RE: [perl-win32-gui-users] Re: [Win32::GUI] List of missing desired widgets

2003-06-17 Thread Frazier, Joe Jr
> On the top of my wish list is:
> - true modal dialogs
> - working accelerators
> - (more) complete event support
> - drag-n-drop support (please apply my patch)
> 
> 
> /J


My wants:

1) see above
2) incoporate (with owners consent and proper, consistent documentation) 
subclasses from Laurent and Johan's work into the base
3) Updated documentation (ie.. instead of TBD, explain that the feature has not 
been implimented or that the implimentation lacks x,y, or z functionallity)
4) Scrollable windows.  ie, if you put 20 text fields on a form(stacking 
vertically with a -top of say '3'), each with a -height of 20, but only make 
the form -height 100, there should be some ability to have the form scroll so 
that the fields are viewable.  Of course, this capability should also be 
enabled on tabstrips and splitter controlled windows also.  Not sure this is is 
something that can be done with the base Windows API though???

If I miss something that is already there , let me know.

Joe



[perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Johan Lindstrom

Joe wrote:
3) Updated documentation (ie.. instead of TBD, explain that the feature 
has not been implimented or that the implimentation lacks x,y, or z 
functionallity)


How about a Wiki for this? That way we can keep all tips and tidbits of 
code mentioned on these lists in an organized fashion.


Show of hands for the Wiki idea? Good? Bad?


I may possibly already have created one, but I'm not sure it's the best 
platform.


MoinMoin is my favourite Wiki right now. Would anyone with access to an 
Apache and Python-enabled web server be willing to host this?



/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: "Hacking and Refactoring"
http://www.artima.com/weblogs/viewpost.jsp?thread=5342
dmoz (1 of 23): /Computers/Hacking/Ethics/ 43





RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Frazier, Joe Jr
I personally would prefer an online version in addition to the computer 
installed docs.  Especially if there were a way to download the entire doc in 
addition to reading online.  This would facilitate rapid updates of "example 
code" in case an example is proven to be faulty or as new ways to use obscure 
funtionallity were found (example is the modal thing Aldo "just" showed in a 
previous email yesterday).

I personally do not mind what method is used to server the content as long as 
it is searchable, easy to navigate, and easy to extend/add content(so that the 
admins cand updated quickly).


Joe Frazier, Jr.
Technical Support Engineer
Peopleclick Service Support

Tel:  +1-800-841-2365
E-Mail: mailto:[EMAIL PROTECTED]


> -Original Message-
> From: Johan Lindstrom [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2003 8:16 AM
> To: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] Docs (List of missing desired widgets)
> 
> 
> Joe wrote:
> >3) Updated documentation (ie.. instead of TBD, explain that 
> the feature 
> >has not been implimented or that the implimentation lacks x,y, or z 
> >functionallity)
> 
> How about a Wiki for this? That way we can keep all tips and 
> tidbits of 
> code mentioned on these lists in an organized fashion.
> 
> Show of hands for the Wiki idea? Good? Bad?
> 
> 
> I may possibly already have created one, but I'm not sure 
> it's the best 
> platform.
> 
> MoinMoin is my favourite Wiki right now. Would anyone with 
> access to an 
> Apache and Python-enabled web server be willing to host this?
> 
> 
> /J
> 
>  --  --- -- --  --  -- -  - -
> Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]
> 
> Latest bookmark: "Hacking and Refactoring"
> http://www.artima.com/weblogs/viewpost.jsp?thread=5342
> dmoz (1 of 23): /Computers/Hacking/Ethics/ 43
> 
> 
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 
> 



Re: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Jeremy White

From: Johan Lindstrom <[EMAIL PROTECTED]>
How about a Wiki for this? That way we can keep all tips and tidbits of 
code mentioned on these lists in an organized fashion.


Show of hands for the Wiki idea? Good? Bad?


I may possibly already have created one, but I'm not sure it's the best 
platform.


MoinMoin is my favourite Wiki right now. Would anyone with access to an 
Apache and Python-enabled web server be willing to host this?


Excellent idea. Sourceforge supports Python. Perhaps Aldo could give you 
access?


In my view, the whole project needs a bit of promotion, it would be great if 
there was one focal point where all code, examples, docs and 3rd party links 
where available from one page.


I also like the idea of having a build with all Laurent’s controls included 
- heck, why not include Loft as well?


Cheers,

Jez.

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger





RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Burak Gürsoy
maybe a silly question, but... what is a "wiki"?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Johan
Lindstrom
Sent: Tuesday, June 17, 2003 3:16 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Docs (List of missing desired widgets)


Joe wrote:
>3) Updated documentation (ie.. instead of TBD, explain that the feature
>has not been implimented or that the implimentation lacks x,y, or z
>functionallity)

How about a Wiki for this? That way we can keep all tips and tidbits of
code mentioned on these lists in an organized fashion.

Show of hands for the Wiki idea? Good? Bad?


I may possibly already have created one, but I'm not sure it's the best
platform.

MoinMoin is my favourite Wiki right now. Would anyone with access to an
Apache and Python-enabled web server be willing to host this?




RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Chuck . Hirstius
It's what they say in the intro for  the song "Jam on it" from Newcleus. 
=D


>> maybe a silly question, but... what is a "wiki"?




RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Darrik Mazey
i think a wiki would be great.  there seems to be a fountain of useful
information flowing constantly on this list.  i know it has helped me
immensely since i've been using win32::gui.  however, there's something
decidedly awkward about searching the users list archives on sourceforge.
it would be nice to have people provide working examples of elements in the
docs that can be easily updated and found.

darrik




RE: [perl-win32-gui-users] modal windows

2003-06-17 Thread Darrik Mazey
i did some playing with modal windows with more than one window open prior
to the modal.  it seems you can pretty easily implement this (sans
weirdness) just by keeping track of open windows and looping through them
all to disable them during the OpenModal call.  the only other issue seems
to be keeping windows in the foreground when they're re-enabled, but that
can simply be solved by again looping through (in reverse order, ending,
perhaps, with the last active window) and bringing them "to top."

just a thought.

darrik




RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Johan Lindstrom

At 22:33 2003-06-17 +0300, Burak Gürsoy wrote:

maybe a silly question, but... what is a "wiki"?


Basically a web site that anyone (yes anyone) can edit and contribute to. 
It usually has a very simple markup language. These two things together 
makes it something very special.


The original:
http://c2.com/cgi/wiki


/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: "Hacking and Refactoring"
http://www.artima.com/weblogs/viewpost.jsp?thread=5342
dmoz (1 of 23): /Computers/Hacking/Ethics/ 43