NO

Author Topic: Article from Chris Boss and Börje Hagsten's files  (Read 4490 times)

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
Article from Chris Boss and Börje Hagsten's files
« on: October 19, 2023, 08:40:38 PM »
Hello,

An interesting article by Chris Boss :

http://cwsof.com/blog/extending-classic-6-0-visual-basic-part-1/

This article mentions about Börje Hagsten's freeware utility PB WinSpy :

http://cwsof.com/download/PBWinSpy.zip

Quote
This is a great utility for use with Powerbasic, but it is even useful for all programmers. It can “Spy” into any program and show you what Windows classes are used for the entire visible user interface and even generate WIN32 code to recreate the same user interface (compilable using Powerbasic).

Börje Hagsten's Files :

https://reonis.com/POFFS/index.htm
Code it... That's all...

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Article from Chris Boss and Börje Hagsten's files
« Reply #1 on: October 20, 2023, 10:57:54 AM »
It seems probably a copy , translated in basic, of the glorious CATCH22 WinSpy++, written in C and easily compilable with PellesC.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
Re: Article from Chris Boss and Börje Hagsten's files
« Reply #2 on: October 20, 2023, 02:10:34 PM »
Hi frankie,

While there is a resemblance of names, the purpose of the two tools are absolutely different. The GitHub project named winspy is aimed to detect and catch the Windows messages. The other project, Hagsten's PB WinSpy is decoding a Window or a dialog emitting PowerBASIC code to recreate the same visual elements.
Code it... That's all...

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Article from Chris Boss and Börje Hagsten's files
« Reply #3 on: October 20, 2023, 04:05:32 PM »
As I understand it, the PowerBASIC tool creates the layout of a window in (BASIC) code.

A tool that creates a dialog template would be slightly more useful, but IMO creating the window layout isn't hard -- the real problem is the logic behind the window. A tool that creates VB-like event handlers for C might be slightly more useful, but would only take you a few more steps toward a finished program. Implementing such a tool, that is flexible enough, is surely more work than it's worth...
/Pelle

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
Re: Article from Chris Boss and Börje Hagsten's files
« Reply #4 on: October 21, 2023, 10:21:17 PM »
Hi Pelle,

Quote
As I understand it, the PowerBASIC tool creates the layout of a window in (BASIC) code.

Exactly. Attached is a small demo. The original BCX code is translated to Pelles C. WinSpy++ creates the PowerBASIC code. The executable built with Pelles C reponds to the mouse clicks but obviously the PB executable cannot do it.  WinSpy's job is to create the skeleton code representing the GUI of an executable.
Code it... That's all...