+ Reply to Thread
Results 1 to 4 of 4

Thread: A Delphi Class to provide IDE positiion and Window state changes.

  1. #1
    Licensed User johngb's Avatar
    Join Date
    Oct 2003
    Location
    Surrey, UK
    Posts
    1,340

    Default A Delphi Class to provide IDE positiion and Window state changes.

    This is for Delphi plugin developers which I guess are few and far between but someone out there might be interested.

    I have developed a class which will track positional and size changes of windows in the IDE. This will enable you to write plug-ins which will exactly sit over the Explorer, Editing or Results windows in the IDE appearing as if they are and integral part of the IDE.

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




    These are the public functions and events the class delivers.

    Initialisation/Finalisation:
    constructor Create(pOwner: tComponent; IdeName: String; TrackingRate: Integer = 0);
    Destructor Destroy; override;

    Update: (Not generally required)
    procedure Refresh;

    Window size/position Functions - each function returns a TWindows structure see above
    function ApplWindow: tWindows;
    function MainForm: tWindows;
    function EditWindow: tWindows;
    function ExplWindow: tWindows;
    function ResultsWindow: tWindows;

    Window States
    function IDEIsMinimized: Boolean;
    function IDEIsMaximized: Boolean;
    function IDEIsActive: Boolean;

    Events:
    property On_ApplWindowChange: tWinChangeEvent Read f_OnApplWinChange write f_OnApplWinChange;
    property On_MainFormChange: tWinChangeEvent Read f_OnMainFormChange write f_OnMainFormChange;
    property On_EditWindowChange: tWinChangeEvent Read f_OnEditWinChange write f_OnEditWinChange;
    property On_ExplWindowChange: tWinChangeEvent Read f_OnExplWinChange write f_OnExplWinChange;
    property On_ResultsWindowChange: tWinChangeEvent Read f_OnRestWinChange write f_OnRestWinChange;
    property On_Appl_StateChange: tWinStateEvent Read f_OnApplStateChange write f_OnApplStateChange;

    TWindows = record
    Handle: Hwnd;
    Title: string;
    Owner: Hwnd;
    ClassName: String;
    WinRect: TRect;
    ClientRect: TRect;
    GutterWidth: Integer;
    Visible: Boolean;

    If developers find this useful I could make it into a DLL which could then be used by VB or Delphi programmers. I will decide based on the response I get from this posting.
    JohnB


  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Super Moderator fanie's Avatar
    Join Date
    Oct 2005
    Location
    Crime riddled ZA
    Posts
    8,019


    Default Re: A Delphi Class to provide IDE positiion and Window state changes.

    Hello John,

    I have no idea what it is you are doing, but it sounds good
    Fanie
    FAZE
    73 de ZS6FAZ
    http://fanie.cambs.net
    Stick to pic

  4. #3
    Licensed User normnet's Avatar
    Join Date
    Jul 2004
    Location
    Minnesota USA
    Posts
    832


    Default Re: A Delphi Class to provide IDE positiion and Window state changes.

    Quote Originally Posted by fanie View Post
    Hello John,

    I have no idea what it is you are doing, but it sounds good
    Simply place a plugin window on top of one of the Proton IDE windows ie Explorer, Editor or Results window.
    Very cool.

    Norm

  5. #4
    Licensed User johngb's Avatar
    Join Date
    Oct 2003
    Location
    Surrey, UK
    Posts
    1,340


    Default Re: A Delphi Class to provide IDE positiion and Window state changes.

    I will shortly be releasing a new fuse configuator which looks like it is part of the IDE. For a brief preview see my earlier call for beta testers.
    JohnB

+ Reply to Thread

Similar Threads

  1. porta.4 change its state
    By nuclear__ in forum Proton Plus Compiler v3
    Replies: 18
    Last Post: 3rd November 2010, 16:48
  2. Bootloader files..Does mechanique provide them ?
    By EnkiLondon in forum Mecanique - IDE
    Replies: 0
    Last Post: 20th July 2010, 22:59
  3. Solid State Relay
    By pic-ignorant in forum The Lounge
    Replies: 8
    Last Post: 3rd February 2010, 19:34
  4. Solid state switch for A.C
    By shantanu@india in forum The Lounge
    Replies: 23
    Last Post: 28th October 2007, 12:35
  5. Delphi help
    By Richard in forum The Lounge
    Replies: 2
    Last Post: 20th April 2007, 09:16

Members who have read this thread since 19th May 2012, 16:06 : 0

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts