Source Code Online Home Categories Top Code New Code Submit Code
Search
Subject Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Visual Basic & VB.NET
 XML
New Code
3D Zoom Menu XML AS 2.0 1.0
MySync - MySQL Synchronization 0.9
Rapid PHP Editor 2008 9.2
BusinessSkinForm VCL 6.50
Formmailer script for websites 1.1
VDaemon - PHP Form Validation Library 3.0
Scrolling Banner Ads Script 1.0
Buttons Scrolling Menu XML AS 2.0 1.0
VSpace Pal 2.0
PHP-Banner-Manager 1.6
Skinfeature GUI ToolKit 1.1
PHP Live Helper 1.8
HTML / XML Video List AS 2.0 1.0
3D Stack AS 2.0 1.0
Banner Exchange Script 1.0
Top Code
Adirex 3D Chess Client 1.0
JiLMaiL 2.0
JVMail 2.0.0
P2P .htManager 0.2
Smart Font Listbox 1.0
Su Logu 0.6.2
Time and Attendance 1.0
Arbitrary-shape Popup Box 1.0
CSTreeBean 0.3
encbtn32.zip 1.00.00b
Joomla! 1.5
Libstocks 0.5.0
phpTimeSheet 1.3.0-preview 2
PicStrip
Webstores 2000 Portal 6.0
Details

TPJWdwState & TPJRegWdwState 4.3.1

 
by Peter Johnson

The window state components can save and restore a window's size, positionand state (minimized, maximized or normal) between program executions. Twocomponents are provided that use different means of recording the window'sinformation. They are:TPJWdwState: This component records window information in an ini file. Theuser has control over the ini file name (via the IniFileName property) and thename of the section of the file where window information is recorded (using theSection property). Alternatively the ini and section names can be configuredby handling the OnGetIniData event that is triggered immediately before theini file is read or written.TPJRegWdwState: This component uses the registry to record windowinformation. The registry root key and sub key where the information is storedare controlled by the RootKey and SubKey properties, or by handling theOnGetRegData event. This event is triggered just before the registry isaccessed.Both components implement the same functionality, controlled by some commonproperties and events, as follows:The components can automatically restore and save windows when the programstarts up and closes down (using the AutoSaveRestore property). IfAutoSaveRestore is set to False then the Restore and Save methods must becalled from the host application.The OnReadWdwState event can be handled in order to change the storedwindow's state, size and position values before the window is restored. Thisevent is called after reading the data and before sizing the window.The Options property can be used to customise the way the window isrestored. State, and position can be ignored, which is useful for dialogboxes that should retain the same size and not be minimizied. The window can also be kept within the desktop's work area.When the form is to be restored in a minimized state it briefly appears onscreen in the normal state before being minimized. The MinimizeDelay propertycontrols the delay between the window appearing and being minimized.An abstract base class for both components l TPJCustomWdwState l is alsoprovided. This class provides the core window handling and sizing functionality.It provides abstract methods for accessing the required storage medium.Therefore it is quite straightforward to create further components that usealternative storage systems. All that needs to be provided are methods toread/write the window information along with any additional properties thatare required to configure the storage medium.A help file is included that integrates into the Delphi 3 to 7 OpenHelpsystem. The help does not integrate with Delphi 2005 and later, but can be usedindependently of the IDE, with some loss of functionality.A property editor is provided for editing HKEY values (such as the registryroot key property of TPJRegWdwState). This editor is also availableseparately.

License: Freeware

Related: Delphi, Component, Source, Code, Download, Free, Freeware, Window, State, Minimize, Maximize, Restore, Hkey, Registry, Ini, File, Cm_showingchanged, Wm_destroy, Windows, Api, Getwindowplacement, Setwindowplacement

File Size: 47.0 KB

Downloads: 1

Download TPJWdwState & TPJRegWdwState 4.3.1  Report Error Link
More Similar Code


This is a property editor for properties of type HKEY - the type is used for registry root keys.When a HKEY property is selected in the Delphi Object Inspector the property editor displays a drop-down list of all the possible registry root

User Review for TPJWdwState & TPJRegWdwState 4.3.1
- required fields
     

Please enter text on the image