From: <je...@je...> - 2005-02-16 11:00:43
|
Quoting Robert May <rm...@po...>: Hi Rob, Nice work - thanks for contributing. > I have been thinking about this wrapper idea for > some time, as there are=20 > a number of useful 'widgets' that I would keep > reusing, and think they=20 > could be packaged up for others to use.=20 > Initially I was thinking of GUI=20 > framework items: examples are splash screens, > about boxes and the like,=20 > that virtually every UI wants in order to look > professional, but is the=20 > almost the same over and over again. If nothing > else these could serve=20 > as great examples of what can be done. I think we=92d all agree on this:) It comes down to who=20 is going to do the work and get the ball rolling.=20 Ideally the sourceforge site would be best place to=20 have a repository of these kind of objects, and if=20 someone has the time to spare then I'm sure Aldo would=20 give the required permissions to play with the website. > Whilst I don't have anything to contribute in > this vein right now, I=20 > though this might be a good moment to introduce > HyperLink.pm - a=20 > sub-classing of Win32::GUI::Label that acts as a > clickable hyperlink: This is a great start - a nice object. Although I had=20 a problem with the constants (I'm on5.6) and got the=20 following error: D:\Development>perl HyperLinkDemo.pl Constant name 'HASH(0x1a4306c)' has invalid characters=20 at HyperLink.pm line 88 BEGIN failed--compilation aborted at HyperLink.pm line=20 91. Compilation failed in require at HyperLinkDemo.pl line=20 15. BEGIN failed--compilation aborted at HyperLinkDemo.pl=20 line 15. Once fixed, it worked great. As a suggestion, it would be a good idea to get rid of=20 the dependency on Win32::API - SetCapture and=20 ReleaseCapture are already in Win32::GUI. If you are=20 keen on this idea, I'll add GetCapture, LoadCursor=20 into GUI.xs. The issue would then be ShellExecute -=20 perhaps that should be added too? Cheers, Jez. |