text
stringlengths
14
6.51M
//************************************************************************************************** // // Unit uAbout // unit for the VCL Styles for Notepad++ // https://github.com/RRUZ/vcl-styles-plugins // // The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); // y...
{ Output meshes used in selected records } unit UserScript; var slModels: TStringList; function Initialize: integer; begin // list of models, ignore duplicated ones slModels := TStringList.Create; slModels.Sorted := True; slModels.Duplicates := dupIgnore; end; function Process(e: IInterface): integer; va...
unit fAppointmentPlanner; interface uses Generics.Collections, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Aurelius.Bind.Dataset, Planner, DBPlanner, Entities.Scheduling, Entidades.Cadastro, Aurelius.Criteria.Bas...
{ [===========================================] [?]uDllFromMem - Loading a DLL from Memory[?] [v] Version 1.0 [v] [c] Hamtaro aka CorVu5 [c] [@] hamtaro.6x.to OR corvu5.6x.to [@] [================Description================] [With this Code, you can load a DLL...
{$WARNINGS OFF} unit roAutoIE; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, OleCtrls, SHDocVw, ComObj, ActiveX, MSHTML; type TIEBeforeNavigate2Event = procedure(Sender: TObject; const pDisp: IDispatch; var URL: OleVariant; var Flags: OleVaria...
unit RibbonDemo; interface uses System.UI.Ribbon, System.UI.Dialogs, System.UI.ActionList, Sigma.Document; type TRibbonDemo = class private FActionList: TActionList; FRibbonTab: TRibbonTab; protected procedure OnActionFirstUpdate(Sender: TAction); procedure OnActionFirstExecute(Sender:...
unit uConst; interface type TTipo = (tpInsumo, tpPerecível, tpRevenda, tpEmbalagem, tpLimpeza); TUnidade = (tuG, tuMG, tuKG, tuUN, tuM, tuCM); TConversoes = class private function SetInt(const pTipo: TTipo): SmallInt; overload; function SetTipo(const pIndex: Integer): TTipo; function SetI...
unit Modelo.Venda; interface uses uTipos; type TVenda = class private FCodigo : Integer; FCodBomba : Integer; FCodTanque : Integer; FCodProduto : Integer; FQtdLitros : Currency; FVlrLitro : Cur...
// shallow way to recognize item as Jewelry function isJewelry(item: IInterface): boolean; begin Result := false; if (Signature(item) = 'ARMO') then begin if ( hasKeyword(item, 'ArmorJewelry') // ArmorJewelry [KYWD:0006BBE9] or hasKeyword(item, 'VendorItemJewelry') // VendorItemJewelry [KYWD:0008F9...
(*======================================================================* | unitDebugService | | | | TDebugServiceApplication allows you to run and debug a service like | | regular application ...
unit CatMsgCromis; { Catarinka TCatMsgCromis - More reliable alternative to WM_COPYDATA messages Copyright (c) 2016 Felipe Daragon License: 3-clause BSD See https://github.com/felipedaragon/catarinka/ for details } interface {$I Catarinka.inc} uses {$IFDEF DXE2_OR_UP} System.Classes, Winapi.Windows, Winap...
{ From : Dmitry Karasik 2:464/46.36 25.04.97 Subj : Преобразование RGB <-> HLS --------------------------------------------------} {Hue, Luminocity, Saturation} Procedure RGBToHLS(R, G, B : Word; var H, L, S : integer); Var cr,cg,cb,m1,m2,ir,ig,ib,ih,il,is:real; Begin m1 := MaxWord(MaxWord(r, g), b) / 63; ...
unit qprov_http; interface uses classes, sysutils, dateutils, qstring, qjson, qdigest, db, fmtbcd, qdb, qvalue, qhttprequest, qconverter_stds; type TQHttpToken = record Value: String; ExpireTime: TDateTime; end; EQDBHttpException = class(Exception) private FHelp: QStringW; FErrorCode: Inte...
unit Bd.Atualizador; interface uses Bd.Gerenciador, Bd.DmConfig; type TBdAtualizador = class private procedure CriaTabelaBomba; procedure CriaTabelaTanque; procedure CriaTabelaProduto; procedure CriaTabelaVenda; function ExisteTabela(ATabela: string): Boolean; public procedure CriaTa...
unit CqlParser; { Copyright (c) 2017+, Health Intersections Pty Ltd (http://www.healthintersections.com.au) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
Program LZss; { ; ; LZSS.ASM Compress and uncompress program using LZ77 algorithm ; ; Assembler Programmer : Andy Tam ; Pascal Conversion : Douglas Webb } CONST N = 4096; { Bigger N -> Better compression on big files only. } F = 18; THRESHOLD = 2; NUL = N * 2; DBLARROW ...
unit CommonGeometry; interface uses System.Classes, Math; type PVertex = ^TVertex; TVertex = record public X, Y, Z, M: Double; procedure CopyX(const Other: TVertex); procedure CopyY(const Other: TVertex); function IsGreater(const Other: TVertex): Boolean; function IsLesser(const Other: ...
unit MainUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Buttons, Menus, ImgList, ToolWin, ComCtrls, StorageUnit, DataUnit; type { TMainForm } TMainForm = class(TForm) SysToolBar: TToolBar; SysImages: TImageList; ExitBtn: TToolButton; Ap...
// Copyright (c) 2016, Jordi Corbilla // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // - Redistributions of source code must retain the above copyright notice, // this list of conditions ...
unit UFTP; interface uses SysUtils, strutils, DBClient, Classes, IOUtils, IdFTP, UDAOParametro; type TFTP = class protected FTP : TIdFTP; private FIPServidor : string; FCarpetaRaiz : string; FFechaAcceso : TDateTime; {GETTERS Y SETTERS} procedure SetIPServidor(valor:string);...
{******************************************************************************* Title: T2Ti ERP 3.0 Description: Model relacionado à tabela [NFE_CONFIGURACAO] The MIT Licen...
unit ExchangeService; interface uses Classes, XData.Server.Module, XData.Service.Common, XData.Sys.Exceptions; type [ServiceContract] IExchangeService = interface(IInvokable) ['{F1DD2E9E-A907-467E-8F91-E49BF872C6EA}'] [HttpGet] function GetContactsAsXMLDataset: TStream; end; [ServiceImp...
unit DNK_edit; interface uses Windows, Graphics, Classes, Controls, Forms, SysUtils, StdCtrls, Menus, messages; type TDNK_edit = class(TEdit) private FAlignment : TAlignment; Bmp: TBitmap; fflat:boolean; fnumbersonly:boolean; procedure verticalcenter; procedure SetBmp(Val...
//## S.I.G.E ## // ## Sistema Informatizado de Gerenciamento Escolar ## // ## Desenvolvido por Diego Hartwig e Jandir Rhoden - 2010 ## unit UEditarLigacoes; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ImgList, StdCtrls, TeCanvas, TeeEdiGrad, DBCtrls, ComCtrls...
unit VisibleDSA.AlgoVisualizer; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Graphics, Forms, BGRACanvas2D, VisibleDSA.AlgoVisHelper, VisibleDSA.InsertionSortData; type TAlgoVisualizer = class(TObject) private _width: integer; _height: integer; _data: TInsertionSortData; ...
unit uBeerSong; interface type Beer = class public class function Verse(number: integer): string; static; class function Verses(start, stop: integer): string; static; end; implementation uses System.SysUtils; class function Beer.Verse(number: integer): string; begin case number of 0: result ...
unit uCursoDAO; interface uses uDAO, uCurso, FireDAC.Comp.Client, sysUtils, system.Generics.Collections; type TCursoDAO = class(TconectDAO) private FListaCurso: TObjectList<TCurso>; procedure CriaLista(Ds: TFDQuery); public Constructor Create; Destructor Destroy; override; function ListaCur...
unit lmsname; interface const SERVICE_WORKSTATION = 'LanmanWorkstation'; WORKSTATION_DISPLAY_NAME = 'Workstation'; SERVICE_SERVER = 'LanmanServer'; SERVICE_LM20_SERVER = 'SERVER'; SERVER_DISPLAY_NAME = 'Server'; SERVICE_BROWSER = 'BROWSER'; SERVICE_MESSENGER ...
unit RT_BackupCreator; interface uses Classes, SysUtils, JvUIB, JvUIBLib; type TQueryFileNameEvent = procedure (Sender: TObject; var FileName: TFileName; var Success: Boolean) of object; TErrorEvent = procedure (Sender: TObject; ErrorMsg: String) of object; type TRTBackupCreator = class (TObject...
unit TestFrameworkRunner; interface function RunRegisteredTestsGUIOrConsole(IsConsole: Boolean): Integer; implementation uses SysUtils, {$IFDEF FPC} TestFrameworkProxyIfaces, {$ENDIF FPC} TestFramework, TextTestRunner, GUITestRunner; function RunRegisteredTestsGUIOrConsole(IsConsole: Boole...
unit SensiCamUnit; // ----------------------------------------------- // PCO SensiCam cameras // ----------------------------------------------- // 14 Sept. 2007 Started by Matthias Ascherl from TILL-Photonics, // based on the PixelFly-Unit // 22.05.08 Modified by J. Dempster to work with Gregor Zupancic's Sensicam in ...
unit RentProcessFRMUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, BaseGrid, AdvGrid, AdvPageControl, StdCtrls, Buttons, cxControls, cxContainer, cxEdit, cxTextEdit, cxDBEdit, DBAdvGrid, AdvObj, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters...
unit RRManagerHorizonVersionFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, RRManagerBaseGUI, StdCtrls, ComCtrls, RRManagerObjects, CheckLst, RRManagerBaseObjects; type //TfrmHorizonVersion = class(TFrame) TfrmHorizonVersion = class(TBaseFrame) g...
unit IWBSDropDown; interface uses System.SysUtils, System.Classes, System.StrUtils, IWRenderContext, IWHTMLTag, IWControl, IWBSCommon, IWBSButton; type TIWBSDropDown = class(TIWBSCustomButton) private FDropDownItems: TOwnedCollection; FItemsTree: TList; FDropup: boolean; FDropDownRight: boo...
unit usbasp25; {$mode objfpc} interface uses Classes, Forms, SysUtils, libusb, usbhid, CH341DLL, utilfunc; const // ISP SCK speed identifiers USBASP_ISP_SCK_AUTO = 0; USBASP_ISP_SCK_0_5 = 1; // 500 Hz USBASP_ISP_SCK_1 = 2; // 1 kHz USBASP_ISP_SCK_2 = 3; // ...
unit SynTexFilterAssemblers; interface uses Windows, AvL, avlUtils, SynTex, SynTexAssembler; type TSynTexFilterAssemblers=class protected FAssembler: TSynTexAssembler; function GetInteger(Token: PSynTexToken; MinValue, MaxValue: Integer; FilterName, ParamName: string; var Value: Integer): Bo...
{ Copyright © Colin Wilson 2002 Modifications copyright (c) 2013-2014 Felipe Daragon License: MPL 1.1 (see below) This is cmpStandardSystemMenu.pas with some minor modifications: Added a public Load method to TStandardSystemMenu, and a StdSysMenu procedure so there is no need to register the component an...
Program CountingChange (input, output); { Für die Münzen 1, 2, 5, 10, 20, 50-Cent, gibt an für einen Betrag der zwischen 1 und 99 Cent liegt in wieviele möglichst wenige der obigen Münzen er dargestellt werden kann. Rückgabe ist eine Reihe aus Zahlen. Die erste Zahl entspricht der 50-cent Münzen die Nächste der 20-Ce...
{ ID: a_zaky01 PROG: cowtour LANG: PASCAL } const infinity=99999999.999999; type point=record x,y:longint; end; past=array[1..150] of integer; var n,i,j,k,l,i1,j1,i2,j2:longint; ans,diai,diaj,dia,diai0,diaj0,min:real; input:string; p:array[1..150] of point; conne...
{ The contents of this file are subject to the Netscape Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/NPL/NPL-1_1Final.html Software distributed under the License is distributed on an ...
unit qhttprequest; interface { QHttpRequest 单元用于封装 HTTP 异步访问,清使用 TQWebRequests 来管理请求,对于 早期版本的 Delphi,使用自行实现的 TQHttpClient 来访问(仅支持 HTTP 协议的 GET/POST), 其它版本的 Delphi,直接使用系统内置的 THttpClient 来访问,同时支持 HTTP/HTTPS。 每个添加到 TQHttpRequests 中的请求,完成后会自动释放,请不要手工释放,否则重复释放 会出AV时请自理 } {$IF RTLVersion>=28} {$DEFINE SYSHTTP } {$I...
unit Global.AppConfiguration; interface type TAppConfiguration = class class var secureUrlUnsubscribe: string; class procedure loadSecureConfiguration; end; implementation uses System.JSON, System.SysUtils, System.IOUtils; resourcestring StrDefaultImportUnsubscribedURL = 'http://www.delphi.pl/newsl...
unit sFade; {$I sDefs.inc} interface {$R+} uses Windows, Messages, SysUtils, Classes, sCommonData, sConst, ExtCtrls, Graphics, sSkinManager; type TsFadeTimer = class(TTimer) private procedure SetDirection(const Value: TFadeDirection); procedure SetOwnerData(const Value: TsCommonData); procedure Tim...
// Windows Volume Control // From Torry's Delphi Pages // http://www.swissdelphicenter.ch/torry/showcode.php?id=630 unit UWinVolumeControl; interface uses Windows; function GetWaveVolume(var LVol: DWORD; var RVol: DWORD): Boolean; function SetWaveVolume(const AVolume: DWORD): Boolean; implementatio...
{ Este exemplo foi baixado no site www.andrecelestino.com Passe por lá a qualquer momento para conferir os novos artigos! :) contato@andrecelestino.com } unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, DB, DBClient, ComCtrls, Grids, DBGrids, StdCtrls, Bu...
{******************************************************************************* Title: T2Ti ERP Description: Controller do lado Cliente relacionado à tabela [VIEW_TRIBUTACAO_IPI] ...
unit LogResStrings; {$mode objfpc}{$H+} interface // при добавлении строк НЕЗАБУДЬ!!! добавить эти строки в *.inc.po.en resourcestring rsLogFileType = '- Файловый'; rsLogSteramType = '- Потоковый'; rsUnknownType = 'не определен'; rsHeader = '%s (Тип данных лога %s)'; rsFileReopen = 'Перезап...
unit CustomerForm; interface uses Generics.Collections, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Aurelius.Engine.ObjectManager, Entities; type TfmCustomer = class(TForm) Label1: TLabel; edId:...
unit ClipB; interface uses Windows, Clipbrd; type TDBRecord = packed record Kod : Word; Chert : string[13]; Kol : array [1..3] of Word; Kol_1 : Word; Kol_v : array [1..3] of Word; TM : array [1..24] of String[2]; Primech : string[255]; end; TRows = record Num : inte...
unit NonLinearSystem; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Dialogs, MyMatrix, ParseMath, math, strings; type mat = array of array of real; NLSystems = class ErrorAllowed: Real; SequenceX: TStringList; SequenceY: TStringList; ErrorSeq: TStringList; mistaken: Integer; nu...
(************************************* Ext2D Engine *************************************) (* Модуль : E2DErrors.pas *) (* Автор : Есин Владимир *) (* Создан : 16.05.06 ...
{ Double Commander ------------------------------------------------------------------------- Compute signature of a form, frame, etc. based on current options set Copyright (C) 2015 Alexander Koblov (alexx2000@mail.ru) This program is free software; you can redistribute it and/or modify it ...
// $ brew install fpc // $ fpc envelopes.pas // $ ./envelopes program Envelopes; uses sysutils; const num_trials = 10000; lower_prior_max = 100; var cutoff: integer; output: String; // Runs a single trial where an envelope is chosen. If the chosen envelope has // a value < cutoff, the function will switch envelope...
unit uCanvas; (* Generic off-screen drawing canvas *) (* 2016 pjde *) {$mode objfpc} {$H+} interface uses Classes, SysUtils, FrameBuffer, uFontInfo, Ultibo, freetypeh; type { TCanvas } TCanvas = class private function GetFont (byFont : string; Load : boolean) : TFontInfo; public ...
unit AsyncTimer; { Timer like thread that will call a specific notifyevent routiner every specified interval } {$mode delphi} interface uses Classes, SysUtils, syncobjs; type TAsyncTimer=class(tthread) private fInterval: integer; fOnTimer: TNotifyEvent; fOnTimerCS: TCriticalSectio...
{$INCLUDE switches} unit Inp; interface uses ScreenTools,Messg, Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, ButtonA, StdCtrls, ButtonB, ButtonBase; type TInputDlg = class(TDrawDlg) OKBtn: TButtonA; EInput: TEdit; procedure OKBtnClick(Sender: TObject); p...
unit crpKeyValue; {written by Charles Richard Peterson, 2007; You can reach me at www.houseofdexter.com or houseofdexter@gmail.com; The code is released under Mozilla Public License 1.1 (MPL 1.1); } interface uses Classes, SysUtils; type EKeyValue = Exception; EKeyValueMapper = EKeyValue; EKeyValueLoader...
{ Сортировка слов в предложении методом пузырьковой сортировки } program bubblesort; function prevspace(s:string;from:integer):integer; begin repeat dec(from); until (copy(s,from,1)=' ') or (from=1); while (copy(s,from-1,1)=' ') and (from>1) do dec(from); if (from=1) then dec(from); prevspace:=from; end; ...
{$H-} // string = ShortString unit tc; interface Uses SysUtils, classes, math, comctrls, windows, dialogs, forms; type time = real; massa = real; const eps = 1e-5; // погрешность step : time = 60; // шаг обработки (сек) // количество чисел с равномерным распределением, используемых дл...
// Create "real" analogs. // TRealPoint instead of TPoint // TRealRect instead of TRect // RealPoint instead of Point // RealRect instead of Rect // // efg, January 1999. UNIT MapWorldToPixel; INTERFACE USES WinTypes, // TRect, TPoint Graphics; // TCanvas // Define "Real" ...
unit dco.rpc.jsonrpc.DecoderTest; { Delphi DUnit Test Case ---------------------- This unit contains a skeleton test case class generated by the Test Case Wizard. Modify the generated code to correctly setup and call the methods from the unit being tested. } interface uses TestFramework, superobject, dco.r...
unit HTTPRoute; interface uses SysUtils, Generics.Collections, HTTPRequest, HTTPResponse, HTTPURI; type EHTTPRoute = class sealed(Exception) end; THTTPMethod = (Get, Post, Put, Delete); IHTTPRoute = interface ['{5DA7698E-E10F-4814-8DFC-CE967547D771}'] function URI: IURI; function Met...
unit uSalaryChangerAttributeDemo; interface uses Spring.Interception , Spring.Container , Spring.Container.Common , Spring.Services ; type ISalaryChanger = interface(IInvokable) ['{9BD8D6E6-EC69-4FBA-9BD3-13BD958CDBC2}'] procedure ChangeSalary(const aNewSalary: Integer); end; TS...
unit ViewBrowser; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Ora, Vcl.Dialogs, ComCtrls, JvExComCtrls, JvComCtrls, DBAccess, MemDS, Vcl.ExtCtrls, Vcl.DBCtrls, JvStringHolder, Vcl.Buttons, Vcl.ActnList, BCControl...
unit FMX.DCText; interface uses System.UITypes, System.UIConsts, System.Classes, System.Rtti, System.Types, System.TypInfo, System.RTLConsts, System.Actions, FMX.Controls, FMX.Graphics, FMX.Types, FMX.ActnList, FMX.BehaviorManager, FMX.Objects, FMX.Consts, FMX.TextLayout, FMX.DCDataObject; type TT...
unit Demo.Bootstrap; interface uses ViewNavigator; type TBootstrap = class private class var FNavigator: TViewNavigator; public class function Navigator: TViewNavigator; class function NavStore: TViewsStore; class constructor Create; class destructor Destroy; end; implementation ...
unit ufraFraction; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, StdCtrls; type { TfraFraction } TfraFraction = class(TFrame) lblTop : TLabel; lblBottom : TLabel; private function GetDenominator : string; function GetNumerator : string; procedure SetD...
unit unPath; interface uses Windows ; function AppFileName: string; procedure Write2EventLog(Source,Msg: string); implementation function AppFileName: string; var FileName: array [0..MAX_PATH] of Char; begin if IsLibrary then begin GetModuleFileName(HInstance, FileName, SizeOf(Fi...
unit AsyncIO.Net.IP.Detail; interface uses IdWinsock2, AsyncIO, AsyncIO.Detail, AsyncIO.OpResults, AsyncIO.Net.IP; const //#define SO_UPDATE_CONNECT_CONTEXT 0x7010 SO_UPDATE_CONNECT_CONTEXT = $7010; type IPSocketAccess = interface ['{05B1639C-2E59-4174-B18B-43E2B40F1E50}'] procedure Assign(const Pro...
unit InputChannelSetup; { ==================================================================== WinWCP : Digital recording parameters setup dialog. (c) J. Dempster, University of Strathclyde 1996, All Rights Reserved ==================================================================== 10/9/99 12/16 bit switch ad...
unit fmMP3; { -------------------------------------------------------------------------------- sample .mp3 file player -------------------------------------------------------------------------------- yyyy.mm.dd ini description 2003.08.23 cdt initial creation ----------------------------------------...
{ Turbo Calendar } { Copyright (c) 1990 by Borland International, Inc. } {$F+,O+,X+} Unit CalUnit; { This unit provide a objects for creating a simple calendar. Common usage in a aplication would be: Procedure ShowCalendar; Var CalendarWindow: PCalendarWindow; Begin CalendarWind...
unit uCommandLine; interface uses Classes, SysUtils; const sCommandLineUser = 'USER'; sCommandLinePassword = 'PASSWORD'; sCommandLineProject = 'PROJECT'; sCommandLineCommandFile = 'COMMANDFILE'; sCommandLineSingleInstance = 'SINGLEINSTANCE'; function CommandLineStrings: TStringList; implementation v...
(*******************************************************) (* *) (* Engine Paulovich DirectX *) (* Win32-DirectX API Unit *) (* *) (* Copyright (c) 20...
unit MedUtils; interface function DateToMedDateStr(ADate: TDate): string; function DateTimeToMedDateTimeStr(ADateTime: TDateTime): string; function DateToSQLiteDateStr(ADate: TDate): string; function SQLiteDateStrToDate(ADate: string): TDate; function GetSubElement(AElement: string; ADelimiter: Char; AIdxSubElement...
unit TextEditor.LeftMargin.Bookmarks; interface uses System.Classes, Vcl.Controls, Vcl.Graphics, Vcl.ImgList; type TTextEditorLeftMarginBookmarks = class(TPersistent) strict private FImages: TCustomImageList; FLeftMargin: Integer; FOnChange: TNotifyEvent; FOwner: TComponent; FShortCuts: Bo...
unit Aurelius.Bind.Exceptions; {$I Aurelius.inc} interface uses Aurelius.Global.Exceptions; type EInvalidListObject = class(EOPFBaseException) public constructor Create(Obj: TObject); end; ESourceListNotAssigned = class(EOPFBaseException) public constructor Create; end; ...
{$A+,B-,D+,E-,F-,G-,I+,L+,N-,O-,R-,S-,V-,X-} {$M 16384,0,655360} {******************************************} { SIXPACK.C -- Data compression program } { Written by Philip G. Gage, April 1991 } { Translated into Pascal Nov. 1991 } { by Douglas Webb } {*****************************...
unit frmReferencedFunctionsUnit; {$mode delphi} interface uses LCLProc, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls, ExtCtrls, Menus, symbolhandler, Clipbrd, betterControls; type { TfrmReferencedFunctions } TfrmReferencedFunctions = class(TForm) F...
program StringExample; var s: string; begin s := "hello, world" end.
program Exercicio6; { Constantes usadas para o algoritmo } const n_times = 5; const n_jogadores = 11; { Modelo de registro para jogadores } type Jogador = record idade : integer; peso : real; altura : real; end; { Modelo de registro para times de futebol } type time = record jogadores : array[1..n_jo...
unit UCancelaNFe; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons, IniFiles, SHDocVw, ShellAPI, ACBrBase, ACBrDFe, ACBrNFe, ACBrNFeDANFEClass, ACBrNFeDANFeRLClass, pcnRetConsReciNFe, pcnConversao, ACBrUtil, ACBrNFeDANFeESCPOS, ACBr...
{------------------------------------ 功能说明:工厂管理 创建日期:2010/04/20 作者:WZW 版权:WZW -------------------------------------} unit SysFactoryMgr; interface uses System.Types, SysUtils, Classes, FactoryIntf, SvcInfoIntf, uIntfObj, System.Generics.Collections; type TSysFactoryList = class(TObject) pr...
unit AllocMemory; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Math, StdCtrls, ActiveX, ComCtrls; function AllocFrames( FrameSize:Integer; Var FramesPtr:PChar; Var FrameNum:Integer ) : Boolean; function FreeFrames ( FrameSize:Integer; FramesPtr:PChar; ...
unit FlatGraphics; {***************************************************************} { FlatStyle Graphics Unit } { Copyright ©1999 Lloyd Kinsella. } { } { FlatStyle is Copyright ©199...
{ 单元名称: uBasicUDP 单元作者: 江晓德(Terry) 邮 箱: jxd524@163.com 说 明: 基本通信能力, 使用事件模式 开始时间: 2009-1-13 修改时间: 2009-1-14 (最后修改) 基本使用方法: Server: FUDP := TBasicUDP.Create; FUDP.IsBind := True; FUDP.OnRecvBuffer := DoReadBuffer; FUDP.Port := 6868; //指定端口进行绑定, 为 0 时,使用随机端口绑定(由系统指定) FUDP.IP := inet_addr('...
unit VideoDisp; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls,stdctrls, ExtCtrls,vfw,mmsystem; ////////////////////////////////////////////////////////////////////////////////// // Video Display type ENoHDD = class(Exception); type TVideoDisp = class(TCustomContr...
unit uCefUiSendEventThread; interface uses System.SysUtils, System.Classes, System.Types, System.Generics.Collections, System.SyncObjs, // uCEFInterfaces, // uWorkThreadBase; type TCefSendEventThread = class; TCefSendEventTaskItem = class abstract protected FOwner: TCefSendEve...
// ***************************************************************************** // unit et_crypt // // ??.??.?? Vlatko Stenzel erstellt // // 12.11.2013 ria Delphi XE4 Version // 08.04.2014 ria ELCO_CRYPT u. ELCO_ENTCRYPT auf ansistring und ansichar // umgestellt um gleiches Ergebnis wie mit Delp...
unit CustomAniFigure; interface uses sdl; type TCustomAniFigure = class; TCustomAniResource = class( TObject) public procedure Render( Figure : TCustomAniFigure ); virtual; abstract; procedure EnumLightSource( Figure : TCustomAniFigure; Index, X, Y, Z : longint; Intensity : double; Radius : intege...
{ ****************************************************************************** } { pauloalvis@hotmail.com | github.com/pauloalvis } { ****************************************************************************** } unit pra.messagedlgweb; interface uses PraButtonStyle, VCl.Forms, Vcl.Dialogs,...
unit acGlow; {$I sDefs.inc} interface uses Windows, Controls, Classes, Forms, SysUtils, Graphics, sSkinManager, Messages; type TacGlowEffect = class(TObject) public SkinManager : TsSkinManager; MaskIndex : integer; Margin : integer; Wnd : TForm; AlphaBmp : TBitmap; OldWndProc : TWndMetho...
unit uDependencyRaisesObjection; interface uses SysUtils ; type IWidget = interface(IInvokable) function IsValid: Boolean; end; TWidget = class(TInterfacedObject, IWidget) public function IsValid: Boolean; end; IWidgetProcessor = interface(IInvokable) procedure ProcessWidget(aWid...
unit Controllers.Interfaces.Observers; interface type IObserverLancamentoController = interface ['{89ADCC5E-C8D8-4221-9942-3908A9A34755}'] procedure AtualizarLancamento; end; ISubjectLancamentoController = interface ['{A6DEB5BB-CF30-48AA-86BA-BEC0DBA15D02}'] procedure AdicionarObser...
{ Copyright 2023 Ideas Awakened Inc. Part of the "iaLib" shared code library for Delphi For more detail, see: https://github.com/ideasawakened/iaLib Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
{ For each selected object that has the specified Papyrus script attached, create a property on that script with the specified name and assign it the specified string. (If the property already exists, it is set -- a duplicate is not added.) We don't check the new property name against the script ...
unit PasPdfStrings; interface resourcestring RStrInvalidFile = 'Invalid File'; RStrUnsupportedVersion = 'Unsupported version'; RStrNewlineCharacterExpected = 'newline character expected'; RStrNotImplemented = 'Not implemented'; RStrInvalidCharacter = 'Invalid character %s'; RStrSpaceExpected = 'Space expe...
unit uAladin; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, SynEdit, cxTextEdit, WebImage, AdvGrid, Vcl.ExtCtrls, Vcl.OleCtrls, SHDocVw, MSHTML, cxGraphics, cxControls, dxBarBuiltInMenu, cxPC, cxLookAndFeels, ...
{DECLARE} program pascal_snake_game; uses crt; type Vector = record x,y:byte; end; const GAME_COLOR = LightCyan; DEFAULT_SPEED = 8; SNAKE_HEAD = '@'; SNAKE_BODY = '0'; FOOD_SHAPE = 'X'; var food: Vector; snake: array[1..1000] of Vector; moveX, moveY, len, speed, score: integer; key: ...