[perl-win32-gui-users] Oasis release

2001-04-25 Thread Johan Lindstrom

A new release of Oasis is available at

http://www.bahnhof.se/~johanl/perl/Oasis/

New features include:
- Bug fixes
- Used modules are color coded (local vs. in the @INC)
- Inheritance tree (@ISA modules)
- Projects - browse files in your Project directories
- Recent files
- @INC - browse files in your include directories
- Help text
- About box (which is almost truly modal, see other mail)

A cool feature is the Projects list. You don't have to enter them manually 
(but you can if you want), Oasis will identify Projects on it's own.


Oasis tries to find used and required modules. Based on the name of the 
module and the directory in which the module was found, Oasis can determine 
which directory is the base directory for the application. For example, 
open the Oasis source file Oasis\lib\PDE\Editor\UltraEdit.pm and Oasis will 
find that Oasis\lib is a Project directory.


As always, I appreciate comments, feature suggestions, and bug reports.


/J
--
Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua
[EMAIL PROTECTED]




Re: [perl-win32-gui-users] Modal dialog box - how?

2001-04-25 Thread Johan Lindstrom

I wrote:

Is there a way to create a "real" modal dialog box using Win32::GUI?


I guess not. Maybe in a future release of Win32::GUI? I looked around in 
the XS code and the SDK documentation, but couldn't get anything to work. 
So, I wrote a class to handle this: Win32::GUI::Modalizer. Name suggestions 
welcome :)


In brief it works like this when a modal window is displayed:

* When the modal window receives an Activate() event, Modalizer makes sure 
all application windows are on top of other applications.


* When windows other than the modal window receives an Activate() event, 
the modal window is immediately brought to the top.


This was actually a bit tricky to get working with events fired off left 
and right, recursively to boot. The solution isn't perfect, but it goes a 
long way. If anyone knows how to get a Window to not be displayed in the 
taskbar, please let me know.


Win32::GUI::Modalizer is available in the Oasis source package. There is a 
complete example in the SYNOPSIS, so you can try it out and tell me that it 
doesn't work on your installation :)



/J


--
Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua
[EMAIL PROTECTED]




RE: [perl-win32-gui-users] Modal dialog box - how?

2001-04-25 Thread Piske, Harald
| If anyone knows how to get a Window to not be 
| displayed in the taskbar, please let me know.

I did not try it, but if I'm not mistaken, only top level windows (ie,
desktop children) appear in the taskbar. If you manage to create a window as
a child to your "main" window, it might solve a problem or two (or create
some).

There is in fact a -parent => option coded in the XS function
ParseWindowOptions, which is used by both Win32::GUI::DialogBox and
Win32::GUI::Window. As I said, I did not try it and don't have the time
right now. Maybe there is also another way to hide the taskbar icon of top
level windows.

Have fun,
Harald