More Programming Articles Page 5

  • Enumerated Types - Converting to a string

    Demonstrates how to convert an Eumerated Types to a string.The following functions demonstrate how to convert an enumerated type to a string and vice versa using...
  • How To Make the Selected TreeNode Bold without Owner Drawing

    Basic code demonstrating how to make the selected TreeNode Bold without owner drawingThe following code uses the TVIS_BOLD constant to make the selected node bold. ...
  • Form Resembling a Paper Form

    Technique for creating a Delphi form that looks the same as the original paper version of the form.IntroductionIt is easier to transcribe information from a paper form...
  • SQL Handle

    An SQL based Bold list handleSometimes it is useful to run complex queries to retrieve bold objects. The TIDSSQLHandle component encapsulates this functionality,...
  • IconToBitmap

    Simple function to convert an Icon to a Bitmap.procedure IconToBitmapEx(Icon: TIcon; var Bitmap: TBitmap; Size: Integer = 16); begin (* Simple function to convert...
  • ParseHTML

    The following code demonstrates how to parse a html file looking for Begin Tag End Tag Raw Text The following routine demonstrates how to parse a html file. I welcome...
  • Better System Debugger Form

    An improved Bold System Debugger formOver the course of development I've made a few changes and additions to the Bold system debugger form. I call the result my Better...
  • Getting application version

    This short article shows how to obtain the version information of the application, usable for instance in an about box.The easiest way is of course to use the...
  • Detecting if your control is being created

    Some properties are only valid when compared to other properties. During initialization it is logical to allow invalid properties. This is how to check if your control...
  • Getting the look of a Bold Navigator with TButtons

    The Bold Navigator button graphics are available as bitmaps that can be used on regular buttons.The Bold navigator control is handy, but it doesn't take focus the way...
  • Validating objects by their constraints

    You may have noticed by now that by default Bold will allow you to save objects with invalid constraints. Here is a solution.Override MayUpdate in your base class...
  • Attributes which can only be written internally

    It is sometimes necessary to allow attributes which are read-only to be writable by the object itselfI do this 1) Create a property InternalChangeCount on your base...
  • Add new object to BoldListHandle as CurrentObject

    Creating a new object from the BoldNavigator makes the new object the current object in the list and any attached BoldListHandles. This code replicates that...
  • Enable 'Add Existing' menu on default Auto Forms

    The 'Add Existing' menu in the default autoforms was not implimented and is always disabled. This simple form patches the bold source to enable this option.While...
  • HTML as a reporting tool

    I have often wanted to use HTML as a reporting tool, but was annoyed at the lack of page-breaks.If you insert the following CSS into your HTML the browser should force...
  • Make ADO connection string at runtime

    How to use ADO connection string dialog in your applicationUdocumented, can be found in ADODB. NewConnectionString := PromptDataSource (0, CurrentConnectString);...
  • Getting a list of Drag 'n' Dropped objects.

    If your user drags an object onto a list on your form, your BoldFormSaver wont detect it.If you have a list of objects on your form, and the user drags an object from...
  • Windows Taskbar Tips&Tricks

    Some secrets of Windows Taskbar How to press a Start button from your program: procedure TForm1.PressStart(Sender: TObject); var hTaskBar, hButton : HWND; hDCScreen...
  • Send a custom message to all forms in application

    Quick tutorial on how to send a custom windows message to all forms in an applicationThis sounds like it should be a fairly simple task. Unfortunately the...
  • Using AFP without Bold's default forms.

    How to use AFP without Bold's default forms.If you like AFP, but don't like to see the default forms generated by Bold, you can do this uses BoldAFPPluggable; ...
  • Automated testing with DUnit

    To err is human - Automated testing of Delphi code with DUnit. By Kris Golko To introduce bugs is human; the problem is usually not with fixing them, but with finding...
  • How To create custom InputQuery/MessageBox etc without pain.

    Using a way that may look like a hack it is possible to modify generic message boxes and change the icon, edit, button, size, etc...The idea behind this customization...
  • Reconnecting to Network Shares with the use of a component

    Ever lost a networked share and didn't know how to connect to it? Well with this component you can search the network for a specific share containing a file or a...
  • A component to make transparent (shaped) forms

    The code below is for a component that can create transparent (shaped) forms ...The code below is for a component that can create transparent (shaped) forms using...
  • Give your menus a (customisable) new look with this component

    Create a new look for your menus with this VCL.Set the Ownerdraw property of the Menu you wish to change to true, and call the Execute method. unit XpMenu; interface...
  • Extended Stored Procedures with Delphi

    Have you ever tried to create a stored procedure on an SQL Server? What if the functionality you wish to incorporate is not inside the SQL but in your Delphi project?...
  • Tips for ModelMaker users

    A few tips for using ModelMaker as your modeller for Bold.Edit the file BoldMMTagDefs.XML file in your ModelMaker\bin folder. 1) Change the default from False to True...
  • Conserving Memory in Bold

    How to minimize memory usage in Bold. In doing a report on some Bold object your code might be something like this: var EmpList:TEmployeeList; i : integer; ...
  • Generic Routine to Select Bold Elements

    The SelectBoldElement function provides a reusable and flexible way to select objects or lists.function SelectBoldElement( Root: TBoldElement; sOCL: string; Params:...
  • How To Make Your Own Computer Operating System

    This tutorial covers the whole process of creating your own tiny computer operating system. It includes booting module and kernel. Making your own Operating System ...
  • Updating individual objects to the database

    BoldSystemHandle has an UpdateDatabase method for all objects, but how do you update individual objects?procedure UpdateDatabaseWithObjects(Objects: array of...
  • MSN Messenger in delphi

    how to work with the msn messenger protocol in delphiThis article is severly outdated and will be updated soonThis is an implementation of the msn messenger protocol...
  • Redefining TCP/IP Client...

    How do we create a TCP/IP Server/Client in Delphi?This article is a redefined version of my previous article (http://www.howtodothings.com/showarticle.asp?article=220...
  • Alpha blending a bitmap

    Using AlphaBlend function in DelphiAlpha blending is used to display an alpha bitmap, which is a bitmap that has transparent or semi-transparent pixels. In addition to...
  • DEBUGGING SHELL EXTENSIONS USING DELPHI

    This article describes the details of debugging Shell extensions written with Borland Delphi or C++ Builder.Introduction Nowadays the integrated programming...
  • Reducing Variance in Huffman Trees

    Method to reduce variance in Huffman Trees.#Consider a Huffman tree to be constructed for the symbols : a_1,a_2,....,a_n. Let their probabilities be...
  • Create Read Write Text File with KYLIX

    This Article is for the beginner to intermediate developer who wants to read / write / print and erase text file. Hope it will be helpfull for many developers . Create...
  • Read drive as a file

    How to open a drive as if it was a file.var FS: TFileStream; begin FS := TFileStream.Create('\\.\DRIVELETTER:', fmOpenRead); try > finally FS.Free; ...
  • FIFO stream

    A Delphi class implementation of a FIFO stream.A FIFO stream (First In First Out) is useful when you need to constantly receive data to a member buffer, but don't want...
  • ntdll.dbgUserBreakPoint (another fix)

    How to eliminate those annoying ntdll.dbgUserBreakPointsPatchINT3 is based on code from Pete Morris Add this procedure to your unit, and also the initialisation...
  • How To force ASP pages to use SSL

    Using SSL in ASP Pages.Paste following code at the top of ASP page you want to force to use SSL. ASP Code ==> If...
  • Starting with Bold for Delphi, Part 3

    The Object Constraint Language (OCL) is a very powerful part of the Bold for Delphi product. Article 3 covers the basic areas where OCL is used and covers the Bold for...
  • Create a control by name

    How to create a control when only given the classname of the control.First the class needs to be registered, this is done in the initialization section. ...
  • Shut down windows

    How to force windows to shut down.Call the following routine like so WinExit(EWX_POWEROFF or EWX_FORCE); function WinExit(flags: integer): boolean; function...
  • VCL enhancements

    I have just altered a VCL class in Delphi 5. This article will keep track of anything I change and why.Make sure that the folder is in your library path or the altered...
  • Changing form inheritance

    Once a form has been created it is possible to change its ancestor class to another form in your project.TForm1 = class(TForm) TForm2 = class(TForm) Now I want to...
  • Yahoo Messaging module

    A module to communicate with the yahoo chat server.Protocol details at Yahoo.txt or Webpage. Download the perl module -- Varun
  • Validating date fields in OCL

    How to validate dates in OCL expressions.Bold allows the model to specify a list of constraints in OCL (Object Constraint Language). The problem that I encountered was...
  • Introduction to Bold + DCOM

    A step-by-step walk through of separating business logic to another server using BOLD + DCOM with an Interbase database.This article was compiled from logs of an...
  • Invoking the default editor for an object

    When a BoldGrid is double clicked it envokes a standard form editor. Here is how to invoke that code manually.uses BoldAFP; ... AutoForm :=...