' Copyright ⌐ 2006, by Paul R. Territo, Ph.D, All Rights Reserved Worldwide
' Trademark Ö 2006, by Paul R. Territo, Ph.D, All Rights Reserved Worldwide
'
' Comments:
' No claims or warranties are expressed or implied as to accuracy or fitness
' for use of this software. Paul R. Territo, Ph.D shall not be liable
' for any incidental or consequential damages suffered by any use of
' this software. This software is owned by Paul R. Territo, Ph.D and is
' sold for use as a license in accordance with the terms of the License
' Agreement in the accompanying the documentation.
'
' Many thanks to my friend Paul Turcksin for his careful review, suggestions,
' and support of this UserControl and TestHarness prior to public release. In
' addtion, I wish to thank the numerous open source authors who provide code
' and inspiration to make such work possible.
'
' Contact Information:
' For Technical Assistance:
' Email: pwterrito@insightbb.com
'
'- Modification(s) History:
' 05Nov05 - Initial TestHarness and UserControl finished
' 06Nov05 - Cleaned up bugs in the ShowSave and ShowOpen routines.
' - Consolidated calls for the Show Open/Save subs to make
' param and error handling cleaner.
' - Added addtional API params to the ShowFont routine.
' - Updated the ToolBox Image to a more professional image.
' - Added addtional error handling to the TestHarness...
' 19Nov05 - Added Additional Author Credits to the Header
' - Added UseDialogColor, UseDialogText, ForeColor, and
' BackColor properties to the Control and required code to
' allow these routines to work...
' - Added PrintStatusMsg property to allow the user to specify
' what the message should say when the printer returns a value.
' - Added PrintStaus property to provide the user feedback about
' if the Printer dialog "Ok"(1) or "Cancel"(0) button was pressed.
' - Fixed bug in ShowSave routine which inconssistently computes the
' nFileOffset values for a file. We simply set this to "0" and then
' extract the values from outside of this of this routine.
' - Changes Color from Long to OLE_COLOR property to allow for
' vb stanard palette.
' - Added TranslateColor sub to wrap the OleTranslateColor method
' for mapping of colors to the current RGB palette.
' 20Nov05 - Added Color RollBack if the value entered is invalid.
' 04Dec05 - Changed the TestHarness layout to make it easier to follow the
' flow of the controls and how to use it....
' 06Dec05 - Added MultiFile selection for the ShowOpen routine and fixed several
' bugs with the single vs mutiple file selections.
' - Added a ComboBox to serve at the conatiner and windowing mechanism for
' the list and its events....this is a hack, pure and simple. This
' approach was selected as it allowes a floating window and list functionality
' without the need for building this via API. The combobox is hidden
' behind the textbox at runtime and has Visiable = False. Since we
' call the droplist window via SendMessage this allows us to have a
' floating window like the ComboBox, but none of the overhead to manage ;-D
' - Add the ability to programmatically Open the MultiFile ComboBox
' and check the state of the Droplist.
' - Added cmdDrop button to simulate the drop button of the ComboBox. The
' key feature here being that the button is to the left of the ellipes
' button and is resizable with the dialog, unlike the VB ComboBox.
' 13Dec05 - Fixed minor TestHareness bug which displayed the wrong properties when
' selecting the lstProperties index.
' 14Dec05 - Fixed single/multiple file open bug in the ShowOpen routine which caused the
' the sub to enter into the wrong conditional section when a single file
' was selected and the MultiSelect = False.
' - Fixed PropertyChanged calls for DialogMsg and ToolTipTexts which now supports
' individual item settings.
' 15Dec05 - More optimization on the ShowSave and ShowFont routines. These routines now
' handle missing extensions and provide a mechanism to enter them. In addtion,
' the FontColor property has been added to allow direct color picking of the
' font ForeColor, which is not appart of the StdFont structure.
' 16Dec05 - Added Appearance Property and associated API and VB routines to allow for true
' 3D or Flat appearances of the textbox and buttons.
' 18Dec05 - Fixed Minor bugs in the ShowFont dialog routines which did not preserve the
' previous selections by the user. The new addtions resolve all but one known
' bug. At the current time, the iPw addtions resolve all addtionlcrisHddtions hyOlyHlectocwthe iPwl item shnconssisteD Added MultiFile dialogbv05 - Fixes individ 'False