From: Johan L. <jp...@bo...> - 2001-05-11 13:06:42
|
Chris wrote: >Ok, it may be that I have hacking at my script so long I am cross-eyed, >but it is too much fun to stop now. I figured the best way to learn the >Win32::GUI was to write a cool little toolbar with a couple of my most >used apps on it. It floats and brings up my apps like it should, but it >closes after I click the button for the app. How do I keep the script open >until I exit it manually? 1. In the yourButton_Click() event handler, do you return -1? Return 1 instead. 2. When you start your program, what command do you use? If you use exec(), it won't return. 3. As previously mentioned, putting a few print statements in your code isn't all that bad if you want to see the program flow. BTW, if you really want a floating toolbar, check out the Win32::GUI::ToolbarWindow module in the Oasis source. It will create such a window for you (small titlebar and non-visible in the task bar. You can also apply -topmost on it). /J -- Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua jp...@bo... |