Développer un logiciel avec Delphi - page 15

Avec Delphi, rien n'est impossible ! Telle a été notre devise pendant des années. A la fois EDI et langage de développement (Pascal), l'outil Delphi facilite grandement la création d'applications. A l'origine, Delphi est un langage compilé qui s'execute sur des plateformes 32 bits. Depuis l'editeur a apporté de nouvelles fonctionnalités qui ne sont pas traitées sur Fobec.com.

Copier, déplacer, effacer plusieurs fichiers à la fois

uses Windows, ShellAPI, Forms, Classes,SysUtils... function FileListToStr ( FileList: TStringList ): string; var i :integer; begin Result:= ''; for i:= FileList.Count -1 downto 0 do begin ...

Trier un TListViex en utilisant CustomSort

type TCustomSortStyle = (cssAlphaNum, cssNumeric, cssDateTime); var { var iable to hold the sort style } LvSortStyle: TCustomSortStyle; { array to hold the sort order } LvSortOrder:...

Constantes utiles de Delphi

Voiçi quelques const antes qui peuvent servir assez souvent, mais dont on se souviens rarement, il y a en a pour tous les goûts :Toutes ces var iables quand elles sont déclarées sont valable...

ChifEnLett

comment passer de 55 à Cinquante cinq ? en utilisant ce logiciel très pratique

Simuler la touche TAB en appuyant sur touche ENTER

procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); begin if Key = #13 then begin Key := #0; { check if SHIFT - Key is pressed } if GetKeyState(VK_Sh if t) and...

Afficher un Bitmap de fond dans les Hint

//enregistrer un fichier bmp sous 'D:hint.bmp'type TGraphicHintWindow = class(THintWindow) const ructor Create(AOwner: TComponent); override; private FActivating: Boolean; public ...

Empêcher un TControl de se rafraichir/redessiner

procedure LockControl(c: TWinControl; bLock: Boolean); begin if (c = nil) or (c.Handle = 0) then Exit; if bLock then SendMessage(c.Handle, WM_SETREDRAW, 0, 0) else begin ...

Parser un String

function Parse(Char, S: string; Count: Integer): string; var I: Integer; T: string; begin if S[Length(S)] Char then S := S + Char; for I := 1 to Count do begin T := Copy(S, 0,...

Animer une fenêtre (ex: Minimiser vers unTrayIcon)

{As an example I'll show how to show an animation that you can use to minimize your application to the system tray area. This example doesn't actually minimize the application, it only shows the...

Afficher les Hint sous forme de bulle

procedure ShowBalloonTip(hWnd: THandle; Text: PWideChar); const TOOLTIPS_CLASS = 'tooltips_class32'; TTS_ALWAYSTIP = $01; TTS_NOPREFIX = $02; TTS_BALLOON = $40; TTF_SUBCLASS = $0010; ...

Astuces Delphi

Catégorie
Résumé de la rubrique
Contenu
659 articles
Rédaction
22 auteurs
Mise a jour
21/12/2010
Partager sur les réseau sociaux