Re: [perl-win32-gui-users] Access Violation crash after Copy, Paste using DoEvents

2002-07-20 Thread Andrea Maestrutti
Michael Eddington wrote: > > I've been reading the archives of this list and seen a couple posts about > random crashes using DoEvents handler through a loop. > > Things look a tad different in this case. I have several apps that use > DoEvents w/o any problems. On this app it will run all day

Re: [perl-win32-gui-users] How do I recognize that the user has pressed enter inside a text box?

2002-07-02 Thread Andrea Maestrutti
"Rogers, John" wrote: > > Hi, > If you specify, -multiline=>1, when you define the textfield, then the > Change() event occurs when the user presses enter. > > My idea is you could search the text string as each character is typed > and match on "enter". > something like this, > > #untested code

Re: [perl-win32-gui-users] Clear a TreeView

2002-06-20 Thread Andrea Maestrutti
"Piske, Harald" wrote: > > This is not a question, I just wanted to share a solution. When you have a > treeview with a lot of entries (a hundred base nodes with dozens of branches > each) and do a $Main->Tree->Clear (), this can clog up the CPU for a > considerable time. Here's what's much faster

Re: [perl-win32-gui-users] Windows help (winhlp32)

2002-06-11 Thread Andrea Maestrutti
carollyne courtney wrote: > > I'm trying to lauch a windows help file(.hlp) from a > Win32::GUI::Menu as follows: > try this: sub helpme_Click { my $path=$_[0]; my $whelp = new Win32::API ('user32', 'WinHelp', [N,P,I,N], I) or die 'can\'t find WinHelp function'; my $st

Re: [perl-win32-gui-users] TreeView & scrollbar

2002-04-30 Thread Andrea Maestrutti
> with $win->Tree->Select($firstnode); > In my application, the first node is selected, but the scrollbar > is always on the bottom! now it works... The change is that now $win->Tree->Select($firstnode); is at the end of ALL insertion operations in the TreeView ... 2 different subs make insertions

Re: [perl-win32-gui-users] TreeView & scrollbar

2002-04-29 Thread Andrea Maestrutti
"Piske, Harald" wrote: > > > $TV->FirstVisible($firstnode); # does not work > > $TV->Select($firstnode, 5); # does not work > > That's odd - I do $Main->Tree->Select($node) in my code and it sure works. with $win->Tree->Select($firstnode); In my application, the first node is selected, but the s

[perl-win32-gui-users] TreeView & scrollbar

2002-04-29 Thread Andrea Maestrutti
Hello! My problem is about TreeView: after an insertion of many nodes (and consequently, the scrollbar is at the bottom of the Window) how can I put the scrollbar to the top? $firstnode=$TV->InsertItem( -text => "", -image => 2, -selectedimage => 2, ); $TV->Firs

[perl-win32-gui-users] TextField, Font and space

2001-07-03 Thread Andrea Maestrutti
Hello! A space appear before the prompt in the Textfield when I use some fonts and disappear in Textfield without fonts... Could you tell me why!?! Thanks! Andrea Maestrutti ### # SPACE ### use Win32::GUI; my $win = new Win32::GUI::Window( -title=> "Space bef

[perl-win32-gui-users] RichEdit & KeyPress

2001-07-03 Thread Andrea Maestrutti
dit. What's happend? Thanks! :) Andrea Maestrutti ## use Win32::GUI; use Win32::Clipboard; my $clip = Win32::Clipboard; my $TextClass = new Win32::GUI::Class( -name => "_Editor", -extends => "RichEdit", -widget