[perl-win32-gui-users] Adding Scrollbars to a window

2003-01-04 Thread Jeremy White
Last month Eric Hansen was asking about adding scroll bars to windows - I have found myself in the same situation. Like Eric I can add scroll bars to a window, but I can’t work out how to use them. I have searched through the docs and the web but can’t find anything. Any ideas? I am trying to

Re: [perl-win32-gui-users] CALL FOR BUGS (was: The status of win32::gui)

2003-04-07 Thread Jeremy White
Aldo, How do you want them submitted - via this list or via sourceforge? Cheers, jez. From: Aldo Calpini [EMAIL PROTECTED] Reply-To: Aldo Calpini [EMAIL PROTECTED] To: Garside, Trevor [EMAIL PROTECTED] CC: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] CALL FOR

Re: [perl-win32-gui-users] CALL FOR BUGS (was: The status of win32::gui)

2003-04-08 Thread Jeremy White
Maksim Golunov wrote: Provide support for WinXP: - WinXP control look what do you mean by this? I assume he means that buttons and other controls in the standard XP theme have different colours, curved edges etc. Also, under XP, the window is a physically a different size than the one

[perl-win32-gui-users] Dynamic Rich text and Rich Edit controls

2003-04-10 Thread Jeremy White
I’m building a rich text string using RTF::Writer. I then pass this string to a rich edit control (using the Text or ReplaceSel methods). Under XP, the control displays the formatted rich text correctly (fonts, colours etc). Under 98 the control displays the actual string. As a get around

Re: [perl-win32-gui-users] Grid Control

2003-04-30 Thread Jeremy White
Hi, From a selfish point of view, a grid control would be great:) For the next release of win::gui could all 'third' party modules be included in the builds - or, at least a link included to them in the docs? It took me a while to release that there are some very useful modules out there, I

Re: [perl-win32-gui-users] Messagebox

2003-05-02 Thread Jeremy White
How I use messagebox: return Win32::GUI::MessageBox($window, $text, Warning, MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2); You need to have the window object passed in - I think that is why it is returning nothing. Cheers, jez. From: Steffen Mueller [EMAIL PROTECTED] To:

Re: [perl-win32-gui-users] Web Browser

2003-05-12 Thread Jeremy White
Hi, Have a look at http://perso.club-internet.fr/rocherl/Win32GUI.html If you download the ActiveX control, you will find various examples of displaying/editing HTML. Cheers, jez. From: Hirosi Taguti [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject:

[perl-win32-gui-users] Listview with bitmaps: Bug, Feature or just Me?

2003-05-23 Thread Jeremy White
All, I’ve got an ImageList that contains various bitmaps (which have masks - thanks to Roelof Bos for help in getting the masks working). I want to use this ImageList in TabStrips, Treeviews and Listviews. If the ImageList is attached to the treeview and tabstrip, everything is fine (the

Re: [perl-win32-gui-users] Bitmap invisible...

2003-06-04 Thread Jeremy White
I had the same problem a while ago - I was also using 98. I was dynamically creating an image which I then needed to display. I couldn’t get it working and had to use combination of Graphic and Win32::GUI::DIBitmap instead. I do remember having some success in using a button, but not the label.

Re: [perl-win32-gui-users] XP color and prototype mismatch problems

2003-06-04 Thread Jeremy White
In XP, when I create a GUI in Perl, the background color is always white. This looks very bad. How do I change the background color to the windows gray? I believe this has been fixed in the new version of win::gui - but it hasn't been release yet. For the time being, set the color of the

RE: [perl-win32-gui-users] XP color and prototype mismatch problems

2003-06-04 Thread Jeremy White
::GUI::Class-new(-name = classxpcolour,-color = 16), ); $loginInfoBox-Show; Win32::GUI::Dialog(); From: Howard, Steven (US - Tulsa) [EMAIL PROTECTED] To: Jeremy White [EMAIL PROTECTED],Howard, Steven (US - Tulsa) [EMAIL PROTECTED],perl-win32-gui-users@lists.sourceforge.net Subject

Re: [perl-win32-gui-users] XP color and prototype mismatch problems

2003-06-04 Thread Jeremy White
a big difference between creating a new class: -class =Win32::GUI::Class-new(-name = classxpcolour,-color = 16), and set an option (-color)! See the Win32::GUI documentation for Class... Regards Gabor - Original Message - From: Howard, Steven (US - Tulsa) [EMAIL PROTECTED] To: Jeremy White

Re: [perl-win32-gui-users] Existing problems

2003-06-15 Thread Jeremy White
I found the answers to a few of these, and a little more info. Still need help with some of them. Not sure I can help, but here is my 2 pence worth. Still haven't found a way to do this. Maybe if I could find a way to set the font of an item, and use a monospaced font... how does Windows do

Re: [perl-win32-gui-users] Existing problems

2003-06-16 Thread Jeremy White
Still having this issue. It looks bad, certainly, but it's still usable. Not suitable for any kind of professional software, though :/ The only time I had similar behaviour was when I was using a tabstrip on the same window as the treeview - does this apply to you? Yes, this is the

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

2003-06-16 Thread Jeremy White
Aldo, Any news on the new build? Cheers, jez. From: Aldo Calpini [EMAIL PROTECTED] Reply-To: Aldo Calpini [EMAIL PROTECTED] To: Fred P. [EMAIL PROTECTED] CC: perl-win32-gui-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject: Re: [perl-win32-gui-users] [Win32::GUI] List of missing

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

Re: [perl-win32-gui-users] Multiple colours in a Listview items?

2003-06-19 Thread Jeremy White
In a word, no - well, at least I never worked out how to get multiple colours in a listview:) Have a look at: http://perso.club-internet.fr/rocherl/Win32GUI.html#Grid It is certainly more flexible than a listview - not sure about the colours though. Should be easyer to update aswell...

Re: [perl-win32-gui-users] Refreshing ListView with updated data?

2003-06-19 Thread Jeremy White
The problem is with the tabstrip - it may be counter intuitive, but create the tabstrip last and your problems should go… cheers, jez. From: [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] Refreshing ListView with updated data? Date: Wed, 18

[perl-win32-gui-users] Multiple versions of the same window.

2003-06-21 Thread Jeremy White
All, I have a window (created by the loft runtime) - it is relatively simple with 10 or so controls on it. From a users point of view it would be good if multiple instances of this window could be opened (by clicking on a button on the main window), with interaction based upon the state

[perl-win32-gui-users] Tooltips - do they work?

2003-07-04 Thread Jeremy White
All, Do tool tips work? I've searched this list, and couldn’t find a reference to a working example? If anyone could provide pointers, I would be grateful, and will update the document project with an example. Cheers, Jez. _

Re: [perl-win32-gui-users] Tooltips - do they work?

2003-07-05 Thread Jeremy White
From: Glenn Linderman [EMAIL PROTECTED] Unfortunately, the examples that I have are not suitable for including in documentation, as I pass things through a couple layers of wrappers before it gets to a real Win32::GUI call. But the gist of it is just to add -tip = 'Configuration options

RE: [perl-win32-gui-users] Tooltips - do they work?

2003-07-08 Thread Jeremy White
Jr [EMAIL PROTECTED] To: Jeremy White [EMAIL PROTECTED] CC: perl-win32-gui-users@lists.sourceforge.net Subject: RE: [perl-win32-gui-users] Tooltips - do they work? Date: Mon, 7 Jul 2003 07:18:09 -0400 Jeremy, try this. It works on my machine (Win2k, AP 626). Just mouse over the button and the tip

[perl-win32-gui-users] Win32::GUI::GetOpenFileName

2003-07-12 Thread Jeremy White
With a bit of luck I’m doing something stupid… I am using Win32::GUI::GetOpenFileName to let the user select a file - works fine - however I can’t seem to get it to work so that the user can select multiple files. Any ideas? Cheers, Jez.

Re: [perl-win32-gui-users] Imagelists and Listviews together with THEGUILOFT.

2003-07-24 Thread Jeremy White
Hi, I use Loft, but I create the image list manually and add it to the various controls that require it. If you want details, let me know. Cheers, Jez. From: Magnone, Angelo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sourceforge. Net (E-mail)perl-win32-gui-users@lists.sourceforge.net

Re: [perl-win32-gui-users] How to close a Win32::GUI window with no Dialog() running?

2003-09-05 Thread Jeremy White
Try -Hide Cheers, jez. From: Arndt Pohlmann [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] How to close a Win32::GUI window with no Dialog() running? Date: Fri, 5 Sep 2003 11:59:17 +0200 Hi! I needed to create a small window in my app in

[perl-win32-gui-users] New release of win::gui?

2003-09-12 Thread Jeremy White
Aldo, Was just wondering about the status of the next release you mentioned at Easter. Any plans to release it soon? Cheers, Jez. _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

Re: [perl-win32-gui-users] inline bitmaps

2003-10-01 Thread Jeremy White
Not sure what you mean - the example bitmap in the samples folder resizes the bitmap dymanically. Or you mean a progress bar of somesort? Cheers, jez. From: Chris [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] inline bitmaps Date: Tue, 30

Re: [perl-win32-gui-users] progress bars

2003-10-02 Thread Jeremy White
Hi, Do something like this: for (0..100) { $Wmain-Progressbar-StepIt(); Win32::GUI::DoEvents(); #your work here } Cheers, jez. From: Chris [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] progress bars Date: Wed, 1 Oct 2003 15:13:13 -0700

[perl-win32-gui-users] Reducing/removing the screen flicker on a window resize.

2003-10-10 Thread Jeremy White
Any ideas how to do this? Cheers, jez. _ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger

[perl-win32-gui-users] The DateTime control, XS and building win::gui from scratch

2003-10-18 Thread Jeremy White
All, I need to be able to set and read the minutes and seconds for a date time control, but from the XS code it looks like this is not possible (!?). From the Microsoft documentation it looks like it would be straight forward to add this functionality to the code below.

Re: [perl-win32-gui-users] accelerator keys - now working

2003-11-13 Thread Jeremy White
4) There needs to be some coordination with Aldo, perhaps, and he hasn't responded publicly or privately to any of the email I've sent him regarding bugs over the last couple years. Or is the community ready to proceed without Aldo? Did you or anyone get a reply from Aldo about the latest

Re: [perl-win32-gui-users] accelerator keys - now working

2003-11-14 Thread Jeremy White
I would be more than willing to bring the files together and serve them up on jeb.ca Erick, are you able to generate flat html files which could be included automatically in new builds? 3) I'd be willing to incorporate patches into my version, if someone identifies them, and sends me the

RE: [perl-win32-gui-users] accelerator keys - now working

2003-11-14 Thread Jeremy White
There were a couple of fixes for the splitter control that were mentioned a while back, I'll see if I can dig them out. I've also got a small extension to the datetime control that could go in to. What did you do to the datetime? I have need to have a change event on this control since

Re: [perl-win32-gui-users] Suggested addition to GUI.XS and some good news

2003-11-16 Thread Jeremy White
From: Steve Pick [EMAIL PROTECTED] Can anyone currently maintaining or debugging Win32::GUI add this to GUI.xs? It's a small change that lets you do SetParent() from Perl. Sounds good - will be usefull for other things to - will help solve some of my modal window issues:) These three

[perl-win32-gui-users] DateTime new methods

2003-11-17 Thread Jeremy White
Glenn, Below are two new methods (GetDateTime and SetDateTime) for the datetime control. They allow the setting and reading of the time component. I've also included a simple example. I'll update the online documentation when you have released the new build. I tried to find the fix for the

Re: [perl-win32-gui-users] Win32::GUI::XMLBuilder

2003-11-21 Thread Jeremy White
From: Blair Sutton/Odey [EMAIL PROTECTED] My only problem is I don't really want to maintain a separate website to keep the code, really it would be nice to add it as an extras feature to Win32::GUI. I am willing to submit the code with some examples (still need to write documentation -

RE: [perl-win32-gui-users] Destroying a window

2003-11-21 Thread Jeremy White
] Destroying a window Date: Fri, 21 Nov 2003 08:03:15 -0500 What about if you localize the creation of a window? For example, I sometimes will use a sub that creates a window only when called and when the sub returns the window and any reference to it is undef? -Original Message- From: Jeremy

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Jeremy White
Hi, All I can say is that DC/Paint does work - and quite well. Although it does take a while to get your head around things. In the end I did go for using GD as the graphics engine (along with DIBitmap) since there was a performance issue using native windows drawing. Below is an example

Re: [perl-win32-gui-users] Child Windows.

2003-12-01 Thread Jeremy White
Hi, Sounds like using parent/child windows should work for you - I do something similar. To create a child window simply specify the parent (using -parent) when creating the window. Cheers, jez. From: Chris [EMAIL PROTECTED] To: perl-win32-gui-users@lists.sourceforge.net Subject:

RE: [perl-win32-gui-users] Splash Sceen Timing

2003-12-17 Thread Jeremy White
From: Chris Wearn [EMAIL PROTECTED] I have a rather large GUI app that can take 20 seconds or more to load, once turned into an executable using ActiveStates PerlApp 5.2 During this time I wish to display a splash screen, provided by a preliminary exe, which launches the main application exe,

RE: [perl-win32-gui-users] need help with Graphic

2003-12-23 Thread Jeremy White
Hi, A couple of months ago I was planning on doing exactly that - I never got round to doing it, but it is something that I may have to do in the next couple of months. I use GD to draw my charts, and plot them onto the DC with Win32::GUI::DIBitmap. There are several different approaches, and

Re: [perl-win32-gui-users] Progress bar's [coloring]

2003-12-23 Thread Jeremy White
From: Jonathan Southwick [EMAIL PROTECTED] I have been wanting to do this forever myself but never was able to ... until today!!! I figured out a way to do it and its rather simple. You need to use SendMessage though but it works. Here is the answer: $result = SendMessage($hWndControl,

RE: [perl-win32-gui-users] Window Background Color

2005-07-11 Thread Jeremy White
I cannot manage to get a main windows background to properly change color when using the following code: Humm - it works for me - see code below. I get green window showing - what do you get? WinXP SP2 ActiveState 5.8.4 Win32::GUI 1.0 I'm on perl 5.6 - everything else the same. Cheers,

RE: [perl-win32-gui-users] Window Background Color

2005-07-11 Thread Jeremy White
Does not work on WinXP SP2, Perl 5.8.4 and Win32::GUI v1.0.3 Just normal grey background, even tried dropping the ::class and and $winBackBrush as -background to ::Window - still no joy. Just tried this under 5.8.6 and the window is gray. Under 5.6 the window is green. Both on xp SP2, and the

RE: [perl-win32-gui-users] SSLeay fails when GUI is initialized

2005-07-19 Thread Jeremy White
Hi, the start_SSL() function fails only if the GUI is initialized with the error - SSL connect attempt failed. If you haven't entered the dialogue phase there should be no reason why you would get this error. From a preliminary search I figured that Net::SSLeay (the underlying to

Re: [win32gui] Re: [perl-win32-gui-users] SSLeay fails when GUI is initialized

2005-07-20 Thread Jeremy White
Yup the script works perfectly fine if no GUI is created. I agree with Rob, using Win32-gui should not cause your problems, yet it seems it is somehow - I'm a little concerned that something strange is going on. In fact I had no intention of writing a GUI as it served my purpose without

RE: [perl-win32-gui-users] working/not working timer

2005-08-04 Thread Jeremy White
In this script timer not works. I know because event handler was never executed (no output to console). But when I remove onTerminate parameter when creating main window and use old event model (mw_Terminate sub) then timer starts to work! Isn't it the bug? No - I dont think so - try this: use

RE: Re[2]: [perl-win32-gui-users] working/not working timer

2005-08-04 Thread Jeremy White
Yes, it works. But what if I need 2 timers? And does it mean that OEM and NEM can not be mixed? The event handler receives two parameters, the first is the window, the second is the name of the timer. See code below to see how this works. As for OEM/NEM - you can mix them sometimes, but I

RE: Re[2]: [perl-win32-gui-users] working/not working timer

2005-08-04 Thread Jeremy White
Can you explain how the -ontimer option works? -onTimer = \T1_Timer, The onTime is the event handler for all timers for a specific window. In the example below, we're adding 4 timers to the window. When the timer is fired, it's name is printed out. Does that help? Cheers, jez. use strict;

RE: [perl-win32-gui-users] DC used for customdrawn Toolbar

2005-08-08 Thread Jeremy White
Hi, I'm trying to change the TextColor of a Coolmenu on _Deactivate and _Activate of the parent-window to emulate the original IE behaviour. Just so I understand what you are trying to do. Do you mean the change in the menu colour (to blue) when the mouse moves over the menu buttons in IE?

RE: [perl-win32-gui-users] DC used for customdrawn Toolbar

2005-08-09 Thread Jeremy White
I've tucked this code away to add to Coolbar.pm when I next get back to it. For both of your examples I was getting an error on exit - invalid methods on global destruction. Both were failing in onDeactivate event - to get round it I had to add the following: return unless $_[0]; to the

[perl-win32-gui-users] Help with a couple of problems

2005-08-10 Thread Jeremy White
Hi, Rob and I have been trying to track down a couple of issues, and we're not sure if they are OS or Perl related. We would be greatful if you could run the two scipts below and report back your findings. When you report back could you include your OS, Perl and Win32-GUI versions. Thanks,

RE: [perl-win32-gui-users] GUI_Constants / GUI.pm error

2005-08-15 Thread Jeremy White
In particular, there are 366 entries in the search space. A binary search requires (at most) 9 probes for success and 10 probes for failure. This seems better than the existing algorithm. What do you think? I like the idea - in practise does this mean that win32-gui is noticeably faster?

RE: [perl-win32-gui-users] Re: [win32gui] {Spam?} Re: MDIFrame and background Image

2005-08-15 Thread Jeremy White
I'm trying to implement the StretchBlt function using a call to gdi32.dll in order to fill the window with the image. I've just added a feature request for this function to be supported natively within Win32-GUI. As a side note, many functions are straightforward to add (including this

RE: [perl-win32-gui-users] Re: Draggable 'window' [Was: MDIFrame and background Image]

2005-08-16 Thread Jeremy White
Well, I have got close but I am not sure how to make the Drawn rectangle transparent or how to dispose of the DC after I am through.. Any help would be greatly appreciated. You'll be glad to know, that the solution is straightforward:) It's probably worth explaining a few things for the

Re: [perl-win32-gui-users] Re: Draggable 'window' [Was: MDIFrame and background Image]

2005-08-16 Thread Jeremy White
Thanks Jez. Your suggestions seems to work except for the last thing. As I move the cursor over windows, how do I repaint windows that no longer have the cursor over them? Is there a way to get all the windows to repaint? Disposing of the DC did not seem to do this? Releasing the DC

RE: [perl-win32-gui-users] mouse_event

2005-08-17 Thread Jeremy White
In the following code, mouseMove is sent the label, and the x,y coridinates of the cursor. But if you hold the cursor down and, while holding the cursor down, move it to the corners of your screen, you will get invalid $x, $y values.. This looks to me as is Win32::GUI is sending the wrong

Re: [perl-win32-gui-users] Continued Window Background Color Problems]

2005-08-22 Thread Jeremy White
Thanks for the reply. I may try to recompile ... just need to find the time. I assume the fix is in the latest source? Do you know what the actual fix is and/or if there is a simple way to correct it without recompiling? It's a straightforward process to recompile - the fix is in CVS, so

RE: [perl-win32-gui-users] SW_SHOWNA and SW_SHOWNOACTIVATE

2005-08-23 Thread Jeremy White
Sometimes it fires the Activate, sometimes it doesnt...odd, and annoying to have it grab the cursor away, if only for brief moments, It can stop you typing at just the right time.. WinXP Pro SP2 AS perl 5.8.4 build 810 Win32::GUI 1.02 Any help in sorting out why its pissy/not working properly

Re: [perl-win32-gui-users] SW_SHOWNA and SW_SHOWNOACTIVATE

2005-08-23 Thread Jeremy White
I'll do some fiddling with the API call although I admit I'm not the most comfortable with making the directed calls to the API, but if it works, it will be nice :) While I have your ear regarding fancy features... Do you know of the method to display those little Tooltip messages that

Re: [perl-win32-gui-users] Scintilla Editor Folding Implementation in Win32::GUI::Scintilla

2005-08-30 Thread Jeremy White
I had never actually bothered to make use of the _Notify until you mentioned it, and realized that it is completely useless as it is *never* fired. I am having serious problems even locating where such Interesting - I'm getting the event firing. This control only works under OEM - so maybe

Re: [perl-win32-gui-users] Scintilla Editor Folding Implementation in Win32::GUI::Scintilla

2005-08-30 Thread Jeremy White
Hmm Well, I'm not using NEM in my code... could this be yet another classic 5.8 vs 5.6? Looks like it is - just tried it under 5.8.7 and 5.6.1 - works fine under 5.6, but not 5.8. I've attached my test code for you to test one your end if you get a second. Ok - running under 5.6 I

RE: [perl-win32-gui-users] Win32::Gui built-in functions?

2005-09-02 Thread Jeremy White
There are quite a few Win32::GUI functions like Win32::GUI::GetOpenFileName that are built in but not listed on http://perl-win32-gui.sourceforge.net http://perl-win32-gui.sourceforge.net/docs/Win32/GUI/Reference/Methods.html Cheers, jez.

RE: [perl-win32-gui-users] -pushstyle = NUMBER

2005-09-03 Thread Jeremy White
What does this NUMBER relate to? I have looked at the lists of windows styles that other people have posted, but they are not numbers, they are strings. I can't find anything in the Win32::GUI docs and I didn't see any numbers in the generic windows stuff either. Lil' help? TIA. The value for

RE: [perl-win32-gui-users] CVS/Nightly builds?

2005-09-09 Thread Jeremy White
This is probably a stupid question, but it wasn't obvious (at least to me) from the Readme... I presume I can't use a Cygwin build of the src with ActiveState Perl, nor a VC6++ build with Cygwin Perl - is that correct? Mingw builds can be used with ActiveState, but not Cygwin? Or are all builds

RE: [perl-win32-gui-users] Using Win32::GUI events within a class or a package?

2005-09-12 Thread Jeremy White
Is it possible to define this sub Start_Click in package Test and get it working so that the entire GUI code is hidden from package main? Yes, by using NEM. I did a search of the archives and i found something called NEM at http://sourceforge.net/mailarchive/message.php?msg_id=11271102 and at

Re: [perl-win32-gui-users] Using Win32::GUI events within a class or a package?

2005-09-20 Thread Jeremy White
oh no! what i meant was something like this: sub StartClick { my $self = shift; #Here $self is the button that was clicked. #How do I access the window that this button is part of? #I want to change certain parts of the window when the #button Start is clicked. }

RE: [perl-win32-gui-users] UpDown Control problems

2005-09-24 Thread Jeremy White
Hi, I'm trying to create two text fields, each with an UpDown control. I'd like one box to scroll from .5 to 8.5 in .5 increments, and the other from .5 to 11 in .5 increments. When I buddy the control with the textfield, it appears that the control is slightly taller than the textfield,

Re: [perl-win32-gui-users] UpDown Control problems

2005-09-26 Thread Jeremy White
Hi, Yes, that's very close to what I want. I don't need the dropdown part just a standard, one-line Text box, but except for that, it's exactly what I'd like. See the example below - much of the code was cut pasted from one of my apps, so it's not as clear as it could/should be, but it

Re: [perl-win32-gui-users] drag/drop treeview questions

2005-09-27 Thread Jeremy White
Hi, I have managed to sort out the workings for MY needs, but, I need to generalize it for reusability. I haven't messed with the drag and drop of files ONTO the treeview, as of yet, but that would most likely require drag and drop support for the window itself, with a positive HitTest on the

RE: [perl-win32-gui-users] DoModal and return value help, please

2005-09-29 Thread Jeremy White
Hi, Hi, I'm having some trouble with DoModal and appropriate return values, and I'm hoping someone can help me... Once a window has gone modal (via -DoModal(1); ) return with -1 from an event, and this will end the modal phase. I had it mostly working. The issue is that after they would

[perl-win32-gui-users] Round Buttons

2005-10-06 Thread Jeremy White
Hi, I noticed a tracker item Round Buttons https://sourceforge.net/tracker/index.php?func=detailaid=1303379group_id=16572atid=366572 With the description: please set in feature round buttons Could anyone provide a little more detail? Cheers, jez.

RE: [perl-win32-gui-users] Attaching to a window created by some other application

2005-10-06 Thread Jeremy White
windows it manipulates. Is it possible to attach to a window/control created by some other application? Say I have a handle of a main window of Windows calculator. How do I turn it into Win::GUI object? Interesting question. As a quick/dirty answer, yes it could be possible. The basic problem

RE: [perl-win32-gui-users] Attaching to a window created by some other application

2005-10-06 Thread Jeremy White
Hummm replying to my own post:) windows it manipulates. Is it possible to attach to a window/control created by some other application? Say I have a handle of a main window of Windows calculator. How do I turn it into Win::GUI object? Interesting question. As a quick/dirty answer, yes it

Re: [perl-win32-gui-users] Attaching to a window created by some other application

2005-10-06 Thread Jeremy White
Or just merge their functionality, developer base, and the technical prowess of the developers, to make both better, less redundant, and more interoperative? Lots of interesting idea's. I've just had a quick look at guitest.xs and there does seem to be some over lap in functions (such as

RE: [perl-win32-gui-users] Attaching to a window created by some other

2005-10-07 Thread Jeremy White
Coincidentally, I've been working on a similar problem and was very interested to read this. My latest project involves using threads to perform lengthy tasks, but showing a progress bar with a 'Cancel' button on the main (or child) window. The problem is that the sharing of blessed variables

Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-10-10 Thread Jeremy White
command that passes the $win object. when i run that line, then i get a usage error that says only to pass the msg and the coderef. does anyone have any idea what's going on here? #$win-Hook($win, WM_ENTERIDLE, \Idle($win)); Try: $win-Hook(WM_ENTERIDLE, \Idle($win)); When called

Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-10-11 Thread Jeremy White
Thanks for the reply, but I'm still getting the usage errors with this script, no matter how I call Hook. With the attached file, I tried these 3 ways of calling it: #$win-Hook($win, WM_ENTERIDLE, \Idle($win)); #$win-Hook(WM_ENTERIDLE, \Idle($win)); Win32::GUI::Hook($win,WM_ENTERIDLE,

Re: [perl-win32-gui-users] GUI_Constants / GUI.pm error

2005-10-14 Thread Jeremy White
Hi, Interesting discussion on many levels. Impressive work. My 2 cents. For an unrelated problem I did some research yesterday about when to use a hashing algorithm verses a liner search or a binary search. Basically, I have a list of strings - some times the list is small (less than 5 items)

[perl-win32-gui-users] Scintilla Issues under Perl 5.8.7 - a fix

2005-10-20 Thread Jeremy White
Hi, The Scintilla control (http://rocherl.club.fr/Win32GUI.html) has a few issues running under 5.8.7 with the latest versions of Win32-GUI. The major problem is that no events are returned. I know what the problem is and have a 'hacked' a fix together for personal use, but am posting it

Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-11-01 Thread Jeremy White
The reason I mentioned that Jez may be in the same boat, was because he installed the same version of Visual Studio and when I sent him toolbar.pl he got the same error, although he also had MinGW to fall back on. Just to confirm, I do have the same issue. I know next to nothing about VC6:)

[perl-win32-gui-users] Grid/AxWindows/Scintilla/DIBitmap

2005-11-02 Thread Jeremy White
Hi, All these modules are now in the Win32-GUI source repository: http://cvs.sourceforge.net/viewcvs.py/perl-win32-gui/ Cheers, jez.

RE: [perl-win32-gui-users] Help Required in installing Win32-GUI

2005-11-08 Thread Jeremy White
I have downloaded Win32-GUI-1.02.tar file from cpan.org http://cpan.org website.I am trying to install this and i am not able install it its giving an error message.Could any one of you tell the excat steps to install this successfully.I am using 5.8.7.813 version of perl. If you are using an

RE: [perl-win32-gui-users] system call delayed?

2005-12-01 Thread Jeremy White
I'll include the handler and the scan function below, as both are relatively short. Note that in the DoSCAN function, the scan button (called $scan) is disabled right before the system call. When I click the button, it is immediately disabled. So I know it's getting to that point. But then

[perl-win32-gui-users] Win32::GUI::Scintilla V1.08

2005-12-05 Thread Jeremy White
Hi, I've just committed some changes to Scintilla, the main ones being that events now fire for perl 5.8.x. This fix also solves a few issues where Scintilla was crashing, again with perl 5.8.x. This module should work with any version of Win32::GUI from V1.00 upwards. I've also updated

RE: [perl-win32-gui-users] Various windows versions: determining at runtime for type compatibility

2005-12-06 Thread Jeremy White
A while ago, Rob and I were in a discussion about how to allow a single compiled ppm of Win32-GUI to manage to work with all the available features to a particular OS, dependant on the platform at runtime. There is definitely a severe trick here in that for the most part, the decision of which

RE: [perl-win32-gui-users] InvalidateRect problems

2005-12-14 Thread Jeremy White
The script below shows the problems I'm having with InvalidateRect(). The script makes a RichEdit move in tandem with a splitter. When no InvalidateRect() is called in the Splitter_OnRelease(), and the splitter is moved into the RichEdit area, echoes of it are created in the RichEdit. When

RE: [perl-win32-gui-users] nem events for menus

2005-12-27 Thread Jeremy White
Is it possible to define a -onClick event for a menu instead of creating an Menu_Click function? File = File, New = { -name = New,-onClick = sub {handle_menu(@_, 1)} }, Open... = { -name = Open, -onClick = sub {handle_menu(@_,

RE: [perl-win32-gui-users] oem vs nem

2005-12-28 Thread Jeremy White
I have started using nem instead of oem just because it is new and I think that it might be better and might have some advantages, but is there a practical reason for using nem instead of oem? Sometime I feel that OEM is better because requires less coding... To some extent the difference

RE: [perl-win32-gui-users] PerlApp issue

2005-12-30 Thread Jeremy White
For the Win32::GUI guirus (spelling intended:-)), is Win32::GUI thread safe? I'm not a guru, but if you want a rough answer: Yes, Win32::GUI is thread safe. Well, sort off:) Rob May and I have had an exchange of emails about how to make Win32::GUI thread programming easier, after some

RE: [perl-win32-gui-users] PerlApp issue

2005-12-30 Thread Jeremy White
For a rough answer, that was very useful and interesting! These little demo scripts are a goldmine of information. I have been using threads to carry out background work while updating a progress bar in the main window and providing a cancel button. It will be interesting to see Rob's

RE: [perl-win32-gui-users] File requester in Win32?

2006-01-10 Thread Jeremy White
Hi all Is there any easy way to include a file name requester (like when you Save as... in a program) to allow you to return a filename for loading/saving? I think I have seen it in my trawling through websites, but I cannot remember where

RE: [perl-win32-gui-users] -onEvent weirdness for on-the-fly created Buttons

2006-01-12 Thread Jeremy White
Its like $configdata(name} is being expanded/substituted when I actually press the button (using the last $configdata{name} value from the button creation stage), rather than the parameter being expanded/substituted and stored when i create the button. If I undef the %configdata, nothing is

RE: [perl-win32-gui-users] Win32-GUI and PPM problem

2006-01-17 Thread Jeremy White
It's been a while since I've installed Win32::GUI. When I download the latest version it installed fine but there's errors with my code, which was written when 0.0.558 was the latest. I have a copy of the ppd, etc, for 0.0.558 but I can't seem to install it. There have been lots of changes and

RE: [perl-win32-gui-users] Hierarchical controls

2006-01-17 Thread Jeremy White
It would be convenient to declare a groupbox and then identify the groupbox as the parent control for other controls to facilitate positioning and operations on the entire group (I think this would also be useful for tabstrips, per the question the other day). The example below shows how moving

RE: [perl-win32-gui-users] Hierarchical controls

2006-01-17 Thread Jeremy White
I use: $mainContainer = new Win32::GUI::Window( -name = 'Container', -width = 800, -height = 500, -pos = [0, 310], -parent = $mainwin, -popstyle= Win32::GUI::WS_CAPTION | Win32::GUI::WS_SIZEBOX, -pushstyle = Win32::GUI::WS_CHILD |

RE: [perl-win32-gui-users] Hopefully an easy question about bitmaps...

2006-01-17 Thread Jeremy White
I am using some scanning software that can provide me with a handle to a DIB (Device Indep. Bitmap according to the documentation). What I'd like to do is display this directly on the screen in a label, or another suitable element. I'm not very clear on exactly what a handle is (except that

RE: [perl-win32-gui-users] Win32::GUI and a rolling line graph

2006-01-18 Thread Jeremy White
BTW, has anyone played with Windows transparency in Win32::GUI; the ability to make a window 50% transparent so that windows under the top window will still be visible? I've played with it some using VB5, but on W2K it causes a BSOD when combined with a notify icon. I've never really

RE: [perl-win32-gui-users] Win32::GUI and a rolling line graph

2006-01-23 Thread Jeremy White
I do have another question: I'm writing a legend on the chart. Instead of using 4 TextOut calls to write the legend on 4 lines, is there a way to do it with one TextOut call. Also, is there a way to change the size of the text? I see that there is a way to retrieve the size of a string

RE: [perl-win32-gui-users] how to destroy gui object created?

2006-01-27 Thread Jeremy White
i am running: perl 5.8.6 Locally applied patches: ActivePerl Build 811 21540 Fix backward-compatibility issues in if.pm 23565 Wrong MANIFEST.SKIP Built under MSWin32 Compiled at Dec 13 2004 09:52:01 Win32-GUI[1.0] Win32-GuiTest [1.50.4]

  1   2   3   >