Výsledky 1 až 11 z 11

Téma: Help VISUAL DELPHI

  1. #1

    Standardní Help VISUAL DELPHI

    Ako vo Visual Delphi pridelit k dajakej hodnote obrazok
    Mam na mysli listbox . V listboxe napisem napr. cislo 1000 a objavy sa mi dakde obrazok co je ku tomuto cislu pridelene . Ako to urobit
    PC STORM

  2. #2

    Standardní

    Nikto nevie poradit
    PC STORM

  3. #3

    Standardní

    To se tezko radi, kdyz je dotaz tak neurcity. Jak jsou ty obrazky velke a kolik jich tak asi je ?

    Resit to lze samozrejme mnoha zpusoby - zalezi taky na tom, kde ty obrazky budes mit ulozene - jako soubory na disku, v resources, v databazi nebo treba v TImageListu.

  4. #4

    Standardní

    Obrazky budu ulozene v Image Listu a program ich bude brat odtial .
    Obrazok je asi 1000 . Ked napisem do listboxu dajaku hodnotu a dam enter tak aby mi to hodilo ten obrazek kterej je ku nemu prideleny .
    Cize ked dam napr. cislo 50 tak aby sa mi ukazal obrazok co je prideleny na cislo 50 .
    Len neviem prist na to ze k dajakej hodnote ako pridelit obrazok
    PC STORM

  5. #5

    Standardní

    Musis si urobit obsluhu udalosti OnChange toho listboxu. Tam naprogramujes nakopirovanie bitmapy do Image (ten image si tam naklikaj).
    1: Asus P2B 1.10 • Celeron 1100@1364/1.8V • 512MB SDRAM • Samsung SP1213N+WD AC28400 • Toshiba XM-6402B+SD-M1212 • PowerColor AR2L Radeon 9100 64MB • 3C900-Combo • Bt848A • ASB-3940UA • AWE-64 • DTK PTP-3007 • VisionMaster 405 • Umax UC630 • Star LC24-200 Colour 2: PCPartner TXB820DS • Cyrix MII PR300/1.8V • 256MB SDRAM • 2xSamsung HD400LD+IT8212F • Accesstek CW4001 • LS-120 • Mystique 4MB • Millennium II 4MB • 3C509 • CMI8329A+Dream MIDI • ADI ProVista E44 • SyncMaster 203B Notebook: DTK FortisPro TOP-5A • P166MMX/1.8V • 80MB EDO • Hitachi 5K80 40GB • 12,1" TFT Router: A-Trend ATC-1425B • i486DX 50@33/5V • 48MB FPM • WD AC14300 • UMC UM9003F • HP PC LAN 16/TP+ Car: Mazda 323P BA • Z5 1489ccm, 65kW@5500rpm, 134Nm@4000rpm

  6. #6

    Standardní

    OK thx skusim a uvidim co sa mi podarilo
    PC STORM

  7. #7

    Standardní

    Kde ten OnChange toho listboxu prestne najdem Neviem sa tam dajak doklikat
    PC STORM

  8. #8

    Standardní

    Pozeram na to - fakt to nema OnChange Takze asi OnClick.
    1: Asus P2B 1.10 • Celeron 1100@1364/1.8V • 512MB SDRAM • Samsung SP1213N+WD AC28400 • Toshiba XM-6402B+SD-M1212 • PowerColor AR2L Radeon 9100 64MB • 3C900-Combo • Bt848A • ASB-3940UA • AWE-64 • DTK PTP-3007 • VisionMaster 405 • Umax UC630 • Star LC24-200 Colour 2: PCPartner TXB820DS • Cyrix MII PR300/1.8V • 256MB SDRAM • 2xSamsung HD400LD+IT8212F • Accesstek CW4001 • LS-120 • Mystique 4MB • Millennium II 4MB • 3C509 • CMI8329A+Dream MIDI • ADI ProVista E44 • SyncMaster 203B Notebook: DTK FortisPro TOP-5A • P166MMX/1.8V • 80MB EDO • Hitachi 5K80 40GB • 12,1" TFT Router: A-Trend ATC-1425B • i486DX 50@33/5V • 48MB FPM • WD AC14300 • UMC UM9003F • HP PC LAN 16/TP+ Car: Mazda 323P BA • Z5 1489ccm, 65kW@5500rpm, 134Nm@4000rpm

  9. #9

    Standardní

    No fakt si neviem poradit hoci som cital aj Help
    Pls dakt popiste mi postup ako sa to ma robit lebo som total lama
    PC STORM

  10. #10

    Standardní

    Fakt nikto nevie
    PLS help
    PC STORM

  11. #11

    Standardní

    Pokud chces pouze nastrkat obrazky do listboxu pak můzes:

    1/ podivat se na ondraw demo (imagelist ma i vlastni kreslici prikazy)
    nebo
    2/ najit hotovou komponentu (a jsou takovych mraky treba tady http://www.torry.net/enhancedlistandcomboboxes.htm)
    nebo
    3/ pouzit listview (umi vic nez listbox)
    nebo
    4/ zvolit nejakou alternativu ulozeni (treba PicClip z RxLib, je vlastne obdobou imagelistu)
    nebo
    5/ zkusit neco podobneho tomuto viz
    Kód:
    //=========================================================================
    // EnhComboBox, ImgComboBox Components for Delphi 4
    // Author: Norbert ADAMKO
    // e-mail: norris@frdsa.utc.sk
    // Copyright 1999
    //=========================================================================
    
    unit EnhCBox;
    
    interface
    
    uses Windows, Messages, Classes, Forms, Controls, Graphics, StdCtrls,
         ImgList;
    
    type
      TEnhComboState = set of (csButtonPressed, csMousePressed);
    
      TCustomEnhComboBox = class(TCustomComboBox)
       private
        FOldColor: TColor;
        FOldParentColor: boolean;
        FButtonWidth: integer;
        FEditState: TEnhComboState;
        FMouseInControl: boolean;
    
        FAlwaysShowBorder: boolean;
        FAutoDropDownWidth: boolean;
        FAutoHorizontalScroll: boolean;
        FButtonStaysPushed: boolean;
        FDropDownWidth: integer;
        FExtendedInterface: boolean;
        FFlat: boolean;
        FHorizontalExtent: integer;
        FShowBorderWhenInactive: boolean;
        FToolTip: boolean;
    
        FOnCloseUp: TNotifyEvent;
    
        procedure SetFlat(const Value: boolean);
        function GetDropDownWidth: integer;
        procedure SetDropDownWidth(const Value: integer);
        function GetHorizExtent: integer;
        procedure SetHorizExtent(const Value: integer);
        function GetExUI: boolean;
        procedure SetExUI(const Value: boolean);
    
        procedure CMEnter(var Message: TCMEnter); message CM_ENTER;
        procedure CMExit(var Message: TCMExit); message CM_EXIT;
        procedure CMEnabledChanged(var Msg: TMessage); message CM_ENABLEDCHANGED;
        procedure CNCommand(var Message: TWMCommand); message CN_COMMAND;
        procedure WMLButtonDown(var Message: TWMMouse); message WM_LBUTTONDOWN;
        procedure WMPaint(var Message: TWMPaint); message WM_PAINT;
    
        procedure TrackButtonPressed(X, Y: integer);
        function InsideCombo(X,Y: integer): boolean;
        function  NeedDraw3DBorder: boolean;
    
        procedure DrawButton(DC: HDC);
        procedure DrawButtonBorder(DC: HDC);
        procedure DrawControlBorder(DC: HDC);
        procedure DrawBorders;
        procedure SetAutoDropDownWidth(const Value: boolean);
        procedure SetAutoHorizontalScroll(const Value: boolean);
        procedure SetAlwaysShowBorder(const Value: boolean);
    
       protected
        procedure DoCloseUp; dynamic;
        function ItemSize(paDC: hDC; paIndex: Integer; paInEdit: boolean): TSize; virtual;
    
        procedure CreateParams(var Params: TCreateParams); override;
        procedure CreateWnd; override;
        procedure DestroyWnd; override;
    
        procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: integer); override;
        procedure MouseMove(Shift: TShiftState; X, Y: integer); override;
        procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: integer); override;
        procedure DropDown;override;
    
        property AlwaysShowBorder: boolean read FAlwaysShowBorder write SetAlwaysShowBorder default false;
        property AutoDropDownWidth: boolean read FAutoDropDownWidth write SetAutoDropDownWidth default false;
        property AutoHorizontalScroll: boolean read FAutoHorizontalScroll write SetAutoHorizontalScroll default false;
        property ButtonStaysPushed: boolean read FButtonStaysPushed
                                            write FButtonStaysPushed default false;
        property DropDownWidth: integer read GetDropDownWidth write SetDropDownWidth;
        property ExtendedInterface: boolean read GetExUI write SetExUI default false;
        property Flat: boolean read FFlat write SetFlat default true;
        property HorizontalExtent: integer read GetHorizExtent write SetHorizExtent;
        property ShowBorderWhenInactive: boolean read FShowBorderWhenInactive
                                                 write FShowBorderWhenInactive default false;
        property ToolTip: boolean read FToolTip write FToolTip default false;
    
        property OnCloseUp: TNotifyEvent read FOnCloseUp write FOnCloseUp;
       public
        constructor Create(AOwner: TComponent); override;
      end;
    
      TEnhComboBox = class(TCustomEnhComboBox)
       published
        property Style;  //Must be first
        property Flat;
        property AlwaysShowBorder;
        {$IFDEF VER120}
        property Anchors;
        property AutoDropDownWidth;
        property AutoHorizontalScroll;
        property BiDiMode;
        property ButtonStaysPushed;
        property Constraints;
        {$ENDIF}
        property Color;
        property Ctl3D;
        property DragCursor;
        {$IFDEF VER120}
        property DragKind;
        {$ENDIF}
        property DragMode;
        property DropDownCount;
        property DropDownWidth;
        property Enabled;
        property ExtendedInterface;
        property Font;
        {$IFNDEF VER90}
        property ImeMode;
        property ImeName;
        {$ENDIF}
        property ItemHeight;
        property Items;
        property HorizontalExtent;
        property MaxLength;
        {$IFDEF VER120}
        property ParentBiDiMode;
        {$ENDIF}
        property ParentColor;
        property ParentCtl3D;
        property ParentFont;
        property ParentShowHint;
        property PopupMenu;
        property ShowBorderWhenInactive;
        property ShowHint;
        property Sorted;
        property TabOrder;
        property TabStop;
        property Text;
        property Tooltip;
        property Visible;
        property OnChange;
        property OnCloseUp;
        property OnClick;
        property OnDblClick;
        property OnDragDrop;
        property OnDragOver;
        property OnDrawItem;
        property OnDropDown;
        property OnEndDrag;
        property OnEnter;
        property OnExit;
        property OnKeyDown;
        property OnKeyPress;
        property OnKeyUp;
        property OnMeasureItem;
        property OnStartDrag;
        {$IFDEF VER120}
        property OnEndDock;
        property OnStartDock;
        {$ENDIF}
      end;
    
    
    
    //---TImgComboBox-----------------------------------------------------------
    
      TEnhComboItem = class
       private
        Indent: byte;
        ImageIndex: integer;
        SelectedIndex: integer;
        OverlayIndex: integer;
    
        constructor Create;
      end;
    
    
      TCustomImgComboBox = class(TCustomEnhComboBox)
       private
        FChangeLink: TChangeLink;
        FInEdit: boolean;
    
        FImages: TCustomImageList;
        FIndent: byte;
        FEnhItems: TList;
    
        procedure CBAddString(var Message: TMessage); message CB_ADDSTRING;
        procedure CBInsertString(var Message: TMessage); message CB_INSERTSTRING;
        procedure CBDeleteString(var Message: TMessage); message CB_DELETESTRING;
        procedure CBResetContent(var Message: TMessage); message CB_RESETCONTENT;
        procedure CNDrawItem(var Message: TWMDrawItem); message CN_DRAWITEM;
    
       protected
        function ItemSize(paDC: hDC; paIndex: integer; paInEdit: boolean): TSize; override;
    
        procedure SetImages(Value: TCustomImageList);
        function GetImageIndex(Index: Integer): integer;
        procedure SetImageIndex(Index: Integer; const Value: integer);
        function GetSelectedIndex(Index: Integer): integer;
        procedure SetSelectedIndex(Index: Integer; const Value: integer);
        function GetOverlayIndex(Index: integer): integer;
        procedure SetOverlayIndex(Index: integer; const Value: integer);
        function GetIndentLevel(Index: Integer): byte;
        procedure SetIndentLevel(Index: Integer; const Value: byte);
        procedure SetIndent(const Value: byte);
        procedure SetStyle(Value: TComboBoxStyle);override;
    
        procedure DrawItem(Index: Integer; Rect: TRect;
                           State: TOwnerDrawState); override;
        procedure ImageListChange(Sender: TObject);
        procedure Notification(AComponent: TComponent; Operation: TOperation); override;
    
        property Images: TCustomImageList read FImages write SetImages;
        property Indent: byte read FIndent write SetIndent default 8;
        property IndentLevel[Index: integer]: byte read GetIndentLevel write SetIndentLevel;
        property ImageIndex[Index: integer]: integer read GetImageIndex write SetImageIndex;
        property SelectedIndex[Index: integer]: integer read GetSelectedIndex write SetSelectedIndex;
        property OverlayIndex[Index: integer]: integer read GetOverlayIndex write SetOverlayIndex;
    
       public
        constructor Create(AOwner: TComponent); override;
        destructor Destroy; override;
    
        function AddItem(paCaption: string; paData: pointer = nil;
                         paImage: integer = -1; paIndent: byte = 0;
                         paSelectedImage: integer = -1; paOverlayImage: integer = -1): integer;
        procedure InsertItem(paIndex: integer; paCaption: string; paData: pointer = nil;
                             paImage: integer = -1; paIndent: byte = 0;
                             paSelectedImage: integer = -1; paOverlayImage: integer = -1);
      end;
    
    
      TImgComboBox = class(TCustomImgComboBox)
       published
        property Style;
        property Flat;
        property AlwaysShowBorder;
        {$IFDEF VER120}
        property Anchors;
        property AutoDropDownWidth;
        property AutoHorizontalScroll;
        property BiDiMode;
        property ButtonStaysPushed;
        property Constraints;
        {$ENDIF}
        property Color;
        property Ctl3D;
        property DragCursor;
        {$IFDEF VER120}
        property DragKind;
        {$ENDIF}
        property DragMode;
        property DropDownCount;
        property DropDownWidth;
        property Enabled;
        property ExtendedInterface;
        property Font;
        property Images;
        {$IFNDEF VER90}
        property ImeMode;
        property ImeName;
        {$ENDIF}
        property ItemHeight;
        property Items;
        property HorizontalExtent;
        property MaxLength;
        {$IFDEF VER120}
        property ParentBiDiMode;
        {$ENDIF}
        property ParentColor;
        property ParentCtl3D;
        property ParentFont;
        property ParentShowHint;
        property PopupMenu;
        property ShowBorderWhenInactive;
        property ShowHint;
        property Sorted;
        property TabOrder;
        property TabStop;
        property Text;
        property Tooltip;
        property Visible;
        property OnChange;
        property OnCloseUp;
        property OnClick;
        property OnDblClick;
        property OnDragDrop;
        property OnDragOver;
        property OnDrawItem;
        property OnDropDown;
        property OnEndDrag;
        property OnEnter;
        property OnExit;
        property OnKeyDown;
        property OnKeyPress;
        property OnKeyUp;
        property OnMeasureItem;
        property OnStartDrag;
        {$IFDEF VER120}
        property OnEndDock;
        property OnStartDock;
        {$ENDIF}
       public
        property ImageIndex;
        property IndentLevel;
        property OverlayIndex;
        property SelectedIndex;
      end;
    
    
      THackImageList = class(TCustomImageList);
    
    
    procedure Register;
    
    implementation
    
    uses SysUtils, CommCtrl, Consts;
    
    //---TCustomEnhComboBox----------------------------------------------------
    
    constructor TCustomEnhComboBox.Create(AOwner: TComponent);
    begin
       inherited;
       FAlwaysShowBorder := false;
       FAutoDropDownWidth := false;
       FAutoHorizontalScroll := false;
       FButtonWidth := GetSystemMetrics(SM_CXVSCROLL) + 1;
       FFlat := true;
       FButtonStaysPushed := false;
       FShowBorderWhenInactive := false;
       FOldColor       := Color;
       FOldParentColor := ParentColor;
       FToolTip := false;
    end;
    
    
    procedure TCustomEnhComboBox.CreateParams(var Params: TCreateParams);
    begin
      inherited CreateParams(Params);
      with Params do
        Style := Style or WS_HSCROLL;
    end;
    
    
    procedure TCustomEnhComboBox.CreateWnd;
    begin
      inherited CreateWnd;
    
      DropDownWidth := FDropDownWidth;
      ExtendedInterface := FExtendedInterface;
      HorizontalExtent := FHorizontalExtent;
    end;
    
    
    procedure TCustomEnhComboBox.DestroyWnd;
    begin
      FDropDownWidth := DropDownWidth;
      FHorizontalExtent := HorizontalExtent;
      FExtendedInterface := ExtendedInterface;
    
      inherited DestroyWnd;
    end;
    
    
    //---Property Access Methods-------------------------------------------------
    
    procedure TCustomEnhComboBox.SetFlat(const Value: boolean);
    begin
      if Value <> FFlat then
        begin
          FFlat &#58;= Value;
          Ctl3D &#58;= not Value;
          Invalidate;
        end;
    end;
    
    
    procedure TCustomEnhComboBox.SetDropDownWidth&#40;const Value&#58; integer&#41;;
    begin
      if DroppedDown then DroppedDown &#58;= false;
      Perform&#40;CB_SETDROPPEDWIDTH, Value, 0&#41;;
    end;
    
    
    function TCustomEnhComboBox.GetDropDownWidth&#58; integer;
    begin
      Result &#58;= Perform&#40;CB_GETDROPPEDWIDTH, 0, 0&#41;;
      if Result<Width then Result &#58;= Width;
      FDropDownWidth &#58;= Result;
    end;
    
    
    procedure TCustomEnhComboBox.SetHorizExtent&#40;const Value&#58; integer&#41;;
    begin
      if DroppedDown then DroppedDown &#58;= false;
      Perform&#40;CB_SETHORIZONTALEXTENT, Value, 0&#41;;
      FHorizontalExtent &#58;= HorizontalExtent;
    end;
    
    
    function TCustomEnhComboBox.GetHorizExtent&#58; integer;
    begin
      Result &#58;= Perform&#40;CB_GETHORIZONTALEXTENT, 0, 0&#41;;
    end;
    
    
    function TCustomEnhComboBox.GetExUI&#58; boolean;
    begin
      Result &#58;= boolean&#40;Perform&#40;CB_GETEXTENDEDUI, 0, 0&#41;&#41;;
    end;
    
    
    procedure TCustomEnhComboBox.SetExUI&#40;const Value&#58; boolean&#41;;
    begin
      Perform&#40;CB_SETEXTENDEDUI, integer&#40;Value&#41;, 0&#41;;
      FExtendedInterface &#58;= ExtendedInterface;
    end;
    
    
    procedure TCustomEnhComboBox.SetAutoDropDownWidth&#40;const Value&#58; boolean&#41;;
    begin
      FAutoDropDownWidth &#58;= Value;
      if FAutoDropDownWidth then FAutoHorizontalScroll &#58;= false;
    end;
    
    
    procedure TCustomEnhComboBox.SetAutoHorizontalScroll&#40;const Value&#58; boolean&#41;;
    begin
      FAutoHorizontalScroll &#58;= Value;
      if FAutoHorizontalScroll then FAutoDropDownWidth &#58;= false;
    end;
    
    
    procedure TCustomEnhComboBox.SetAlwaysShowBorder&#40;const Value&#58; boolean&#41;;
    begin
      if FAlwaysShowBorder <> Value then
        begin
          FAlwaysShowBorder &#58;= Value;
          Invalidate;
        end;
    end;
    
    
    //--- Message Handlers-------------------------------------------------------
    
    procedure TCustomEnhComboBox.DoCloseUp;
    begin
      if Assigned&#40;FOnCloseUp&#41; then FOnCloseUp&#40;Self&#41;;
    end;
    
    
    procedure TCustomEnhComboBox.DropDown;
    var DC&#58; HDC;
        OldFont&#58; HFONT;
        Size&#58; TSize;
        MaxLen, i&#58; integer;
    begin
      inherited;
      if FAutoHorizontalScroll or FAutoDropDownWidth then
        begin
          DC &#58;= CreateCompatibleDC&#40;0&#41;;
          OldFont &#58;= SelectObject&#40;DC, Font.Handle&#41;;
          MaxLen &#58;= 0;
          try
            for i&#58;=0 to Items.Count-1 do
              begin
                Size &#58;= ItemSize&#40;DC, i, false&#41;;
                if Size.cx>MaxLen then MaxLen &#58;= Size.cx;
              end;
          finally
            SelectObject&#40;DC, OldFont&#41;;
            DeleteDC&#40;DC&#41;;
          end;
    
          if FAutoDropDownWidth then
            if Items.Count>DropDownCount then
              DropDownWidth &#58;= MaxLen + GetSystemMetrics&#40;SM_CXVSCROLL&#41; + 8
            else
              DropDownWidth &#58;= MaxLen + 8;
    
          if FAutoHorizontalScroll then HorizontalExtent &#58;= MaxLen + 8;
        end;
    end;
    
    
    procedure TCustomEnhComboBox.CMEnter&#40;var Message&#58; TCMEnter&#41;;
    begin
      inherited;
      if not &#40;csDesigning in ComponentState&#41; then DrawBorders;
    end;
    
    
    procedure TCustomEnhComboBox.CMExit&#40;var Message&#58; TCMExit&#41;;
    begin
      inherited;
      if not &#40;csDesigning in ComponentState&#41; then
        begin
          FMouseInControl &#58;= false;
          DrawBorders;
        end;
    end;
    
    
    procedure TCustomEnhComboBox.CMEnabledChanged&#40;var Msg&#58; TMessage&#41;;
    begin
      inherited;
      if FFlat then
        if Enabled then
          begin
            Color       &#58;= FOldColor;
            ParentColor &#58;= FOldParentColor;
          end
        else
          begin
            FOldParentColor &#58;= ParentColor;
            FOldColor       &#58;= Color;
            ParentColor &#58;= True;
          end;
    end;
    
    
    procedure TCustomEnhComboBox.WMLButtonDown&#40;var Message&#58; TWMMouse&#41;;
    begin
      //Uncapture the mouse - ComboBox is focused now
      //Mouse was captured when entering ComboBox
      //We should set the csButtonPressed here - before Delphi drops down the combo
      //This makes the button look like it is being pushed down
      MouseCapture &#58;= false;
    
      if &#40;Style>csDropDown&#41; then
        Include&#40;FEditState, csButtonPressed&#41;  //Button should go down even when clicked in edit control
      else
        TrackButtonPressed&#40;Message.Pos.X, Message.Pos.Y&#41;;
      inherited;
    end;
    
    
    procedure TCustomEnhComboBox.MouseDown&#40;Button&#58; TMouseButton; Shift&#58; TShiftState;
                                           X, Y&#58; integer&#41;;
    begin
      if DroppedDown then
        begin
          MouseCapture &#58;= true;
          Include&#40;FEditState, csMousePressed&#41;;
        end;
      inherited;
    end;
    
    
    procedure TCustomEnhComboBox.MouseUp&#40;Button&#58; TMouseButton; Shift&#58; TShiftState;
                                         X, Y&#58; integer&#41;;
    begin
      MouseCapture &#58;= false;
      if not FButtonStaysPushed then
        begin
          Exclude&#40;FEditState, csMousePressed&#41;;
          TrackButtonPressed&#40;-1, -1&#41;;
        end;
      inherited;
    end;
    
    
    procedure TCustomEnhComboBox.MouseMove&#40;Shift&#58; TShiftState; X, Y&#58; integer&#41;;
    begin
      //Repaint button if the mouse is captured and is positioned over the button
      if FFlat then
        begin
          if csMousePressed in FEditState then TrackButtonPressed&#40;X, Y&#41;;
    
          if Enabled then
            begin
              //Leaving ComboBox
              if MouseCapture and not&#40;InsideCombo&#40;X, Y&#41;&#41;then
                begin
                  FMouseInControl &#58;= false;
                  DrawBorders;
                  //if mouse button is not pressed inside combo, then uncapture
                  if not &#40;csMousePressed in FEditState&#41; then
                    MouseCapture &#58;= false;
                  Exit;
                end;
    
              //Entering ComboBox
              if not MouseCapture and InsideCombo&#40;X, Y&#41; then
                begin
                  if FToolTip then
                    begin
                      //Should we show the hint window?
                      if ItemSize&#40;0, ItemIndex, true&#41;.cx>Width-FButtonWidth then
                        begin
                          Hint &#58;= Items&#91;ItemIndex&#93;;
                        end
                      else
                        Hint &#58;= '';
                    end;
    
                  FMouseInControl &#58;= true;
                  Exclude&#40;FEditState, csMousePressed&#41;;
                  Exclude&#40;FEditState, csButtonPressed&#41;;
                  DrawBorders;
                  MouseCapture &#58;= true;
                end;
            end;
        end;
      inherited;
    end;
    
    
    procedure TCustomEnhComboBox.CNCommand&#40;var Message&#58; TWMCommand&#41;;
    begin
      case Message.NotifyCode of
        CBN_CLOSEUP&#58;
          begin
            Exclude&#40;FEditState, csButtonPressed&#41;;
            TrackButtonPressed&#40;-1, -1&#41;;
            DoCloseUp;
          end;
        CBN_KILLFOCUS&#58;
          begin
            if not FShowBorderWhenInactive then DrawBorders;
          end;
        CBN_SETFOCUS&#58;
          begin
            if not FShowBorderWhenInactive then DrawBorders;
          end;
      end;
      inherited;
    end;
    
    
    procedure TCustomEnhComboBox.WMPaint&#40;var Message&#58; TWMPaint&#41;;
    var DC&#58; HDC;
        PS&#58; TPaintStruct;
        HelpRect&#58; TRect;
    begin
      if &#40;not FFlat&#41; then
        inherited
      else
        begin
          if Message.DC=0 then DC &#58;= BeginPaint&#40;Handle, PS&#41;
                          else DC &#58;= Message.DC;
          try
            if Style<>csSimple then
              begin
                //Clip the region  - do not let windows paint in border and button areas
                GetWindowRect&#40;Handle, HelpRect&#41;;
                OffsetRect&#40;HelpRect, -HelpRect.Left, -HelpRect.Top&#41;;
                InflateRect&#40;HelpRect, -2, -2&#41;;
                Dec&#40;HelpRect.Right, FButtonWidth-1&#41;;
                IntersectClipRect&#40;DC, HelpRect.Left, HelpRect.Top, HelpRect.Right, HelpRect.Bottom&#41;;
              end;
            //Paint Windows Control
            PaintWindow&#40;DC&#41;;
          finally
            if Message.DC=0 then EndPaint&#40;Handle, PS&#41;;
          end;
          //Make Combo look flat 
          DrawBorders;
        end;
    end;
    
    
    //---Help Routines----------------------------------------------------------
    
    function TCustomEnhComboBox.ItemSize&#40;paDC&#58; hDC; paIndex&#58; integer; paInEdit&#58; boolean&#41;&#58; TSize;
    var DC&#58; HDC;
        OldFont&#58; HFONT;
    begin
      if paIndex=-1 then
        begin
          Result.cx &#58;= 0;
          Result.cy &#58;= 0;
        end
      else
        begin
          if paDC=0 then
            begin
              DC &#58;= CreateCompatibleDC&#40;0&#41;;
              OldFont &#58;= SelectObject&#40;DC, Font.Handle&#41;;
            end
          else
            begin
              DC &#58;= paDC;
              OldFont &#58;= 0;
            end;
          try
            GetTextExtentPoint32&#40;DC, PChar&#40;Items&#91;paIndex&#93;&#41;, Length&#40;Items&#91;paIndex&#93;&#41;, Result&#41;;
          finally
            if paDC=0 then
              begin
                SelectObject&#40;DC, OldFont&#41;;
                DeleteDC&#40;DC&#41;;
              end;
          end;
        end;
    end;
    
    
    function TCustomEnhComboBox.NeedDraw3DBorder&#58; boolean;
    begin
      if csDesigning in ComponentState then
        Result &#58;= Enabled
      else
        Result &#58;= FAlwaysShowBorder or
                  &#40;&#40;FMouseInControl or &#40;Screen.ActiveControl = Self&#41;&#41; and
                  &#40;ShowBorderWhenInactive or Application.Active&#41;&#41;;
    end;
    
    
    procedure TCustomEnhComboBox.TrackButtonPressed&#40;X, Y&#58; integer&#41;;
    var HelpRect&#58; TRect;
        Pressed&#58; boolean;
    begin
      SetRect&#40;HelpRect, ClientWidth - FButtonWidth, 0, ClientWidth, ClientHeight&#41;;
      Pressed &#58;= csButtonPressed in FEditState;
      if PtInRect&#40;HelpRect, Point&#40;X, Y&#41;&#41; or &#40;Pressed and FButtonStaysPushed&#41; then
        begin
          Include&#40;FEditState, csButtonPressed&#41;;
          if not Pressed then DrawBorders;   //Paint only if state was changed
        end
      else
        begin
          Exclude&#40;FEditState, csButtonPressed&#41;;
          if Pressed or FButtonStaysPushed then DrawBorders;
        end;
    end;
    
    
    //Check if the mouse is in ComboBox area
    function TCustomEnhComboBox.InsideCombo&#40;X, Y&#58; integer&#41;&#58; boolean;
    begin
      Result &#58;= PtInRect&#40;Rect&#40;0, 0, Width, Height&#41;, Point&#40;X, Y&#41;&#41;;
    end;
    
    
    //---Drawing Methods--------------------------------------------------------
    
    procedure TCustomEnhComboBox.DrawButton&#40;DC&#58; HDC&#41;;
    var HelpRect&#58; TRect;
    begin
      GetWindowRect&#40;Handle, HelpRect&#41;;
      OffsetRect&#40;HelpRect, -HelpRect.Left, -HelpRect.Top&#41;;
      Inc&#40;HelpRect.Left, ClientWidth - FButtonWidth&#41;;
      //Make the button appear pushed
      if csButtonPressed in FEditState then
        DrawFrameControl&#40;DC, HelpRect, DFC_SCROLL, DFCS_SCROLLCOMBOBOX or DFCS_FLAT or DFCS_PUSHED&#41;
      else
        DrawFrameControl&#40;DC, HelpRect, DFC_SCROLL, DFCS_SCROLLCOMBOBOX or DFCS_FLAT&#41;;
      ExcludeClipRect&#40;DC, ClientWidth - FButtonWidth - 1, 0, ClientWidth, ClientHeight&#41;;
    end;
    
    
    procedure TCustomEnhComboBox.DrawButtonBorder&#40;DC&#58; HDC&#41;;
    var HelpRect, HelpRect2&#58; TRect;
        BtnFaceBrush&#58; HBRUSH;
    begin
      GetWindowRect&#40;Handle, HelpRect&#41;;
      OffsetRect&#40;HelpRect, -HelpRect.Left, -HelpRect.Top&#41;;
      Inc&#40;HelpRect.Left, ClientWidth - FButtonWidth - 2&#41;;
      InflateRect&#40;HelpRect, -2, -2&#41;;
    
      if NeedDraw3DBorder then
        begin
          BtnFaceBrush &#58;= CreateSolidBrush&#40;GetSysColor&#40;COLOR_BTNFACE&#41;&#41;;
          try
            //Clear the line to the left of the button
            HelpRect2 &#58;= HelpRect;
            with HelpRect2 do
              begin
                Right &#58;= Left;
                Dec&#40;Left&#41;;
                FillRect&#40;DC, HelpRect2, Brush.Handle&#41;;
              end;
    
            //Draw single line to the left of the button &#40;clBtnFace&#41;
            //There should be better way how to do this
            HelpRect2 &#58;= HelpRect;
            with HelpRect2 do
              begin
                Right &#58;= Left + 1;
                FillRect&#40;DC, HelpRect2, BtnFaceBrush&#41;;
              end;
    
            Inc&#40;HelpRect.Left, 1&#41;;
            //Draw Button Edge
            if csButtonPressed in FEditState then
              begin
                DrawEdge&#40;DC, HelpRect, BDR_SUNKENOUTER, BF_RECT or BF_MIDDLE&#41;;
              end
            else
              begin
                DrawEdge&#40;DC, HelpRect, BDR_RAISEDINNER, BF_RECT or BF_MIDDLE&#41;;
              end;
          finally
            DeleteObject&#40;BtnFaceBrush&#41;;
          end;
        end
      else
        begin
          BtnFaceBrush &#58;= CreateSolidBrush&#40;GetSysColor&#40;COLOR_BTNFACE&#41;&#41;;
          try
            //Clear the line to the left of the button
            InflateRect&#40;HelpRect, -1, -1&#41;;
    
            HelpRect2 &#58;= HelpRect;
            with HelpRect2 do
              begin
                Right &#58;= Left + 2;
                Dec&#40;Left, 2&#41;;
                FillRect&#40;DC, HelpRect2, Brush.Handle&#41;;
              end;
    
            //Gray out the region
            Inc&#40;HelpRect.Left, 1&#41;;
            FillRect&#40;DC, HelpRect, BtnFaceBrush&#41;;
    
          finally
            DeleteObject&#40;BtnFaceBrush&#41;;
          end;
        end;
    
      //ExcludeClipRect&#40;DC, HelpRect.Left, HelpRect.Top, HelpRect.Right, HelpRect.Bottom&#41;;
      //Clip the borders, so we can paint the button with arrow
      IntersectClipRect&#40;DC, HelpRect.Left + 2, HelpRect.Top + 1,
                            HelpRect.Right - 1, HelpRect.Bottom - 1&#41;;
      DrawButton&#40;DC&#41;;
    end;
    
    
    procedure TCustomEnhComboBox.DrawControlBorder&#40;DC&#58; HDC&#41;;
    var HelpRect&#58; TRect;
        BtnFaceBrush, WindowBrush&#58; HBRUSH;
    begin
      BtnFaceBrush &#58;= CreateSolidBrush&#40;GetSysColor&#40;COLOR_BTNFACE&#41;&#41;;
      WindowBrush &#58;= CreateSolidBrush&#40;GetSysColor&#40;COLOR_WINDOW&#41;&#41;;
      try
        GetWindowRect&#40;Handle, HelpRect&#41;;
        OffsetRect&#40;HelpRect, -HelpRect.Left, -HelpRect.Top&#41;;
        if NeedDraw3DBorder then
          begin
            DrawEdge&#40;DC, HelpRect, BDR_SUNKENOUTER, BF_RECT or BF_ADJUST&#41;;
            FrameRect&#40;DC, HelpRect, BtnFaceBrush&#41;;
            InflateRect&#40;HelpRect, -1, -1&#41;;
            FrameRect&#40;DC, HelpRect, WindowBrush&#41;;
          end
        else
          begin
            FrameRect&#40;DC, HelpRect, BtnFaceBrush&#41;;
            InflateRect&#40;HelpRect, -1, -1&#41;;
            FrameRect&#40;DC, HelpRect, BtnFaceBrush&#41;;
            InflateRect&#40;HelpRect, -1, -1&#41;;
            FrameRect&#40;DC, HelpRect, WindowBrush&#41;;
          end;
      finally
        DeleteObject&#40;WindowBrush&#41;;
        DeleteObject&#40;BtnFaceBrush&#41;;
      end;
    end;
    
    
    procedure TCustomEnhComboBox.DrawBorders;
    var DC&#58; HDC;
    begin
      if &#40;FFlat&#41; and &#40;Style <> csSimple&#41; then
        begin
          DC &#58;= GetWindowDC&#40;Handle&#41;;
          try
            DrawControlBorder&#40;DC&#41;;
            DrawButtonBorder&#40;DC&#41;;
          finally
            ReleaseDC&#40;Handle, DC&#41;;
          end;
        end;
    end;
    
    
    
    //---TEnhComboItem-----------------------------------------------------------
    
    constructor TEnhComboItem.Create;
    begin
      ImageIndex &#58;= -1;
      SelectedIndex &#58;= -1;
      OverlayIndex &#58;= -1;
    end;
    
    
    //---TCustomImgComboBox-----------------------------------------------------
    
    constructor TCustomImgComboBox.Create&#40;AOwner&#58; TComponent&#41;;
    begin
      inherited;
      FIndent &#58;= 8;
      ItemHeight &#58;= 16;
      Style &#58;= csOwnerDrawFixed;
      FEnhItems &#58;= TList.Create;
      FChangeLink &#58;= TChangeLink.Create;
      FChangeLink.OnChange &#58;= ImageListChange;
    end;
    
    
    destructor TCustomImgComboBox.Destroy;
    var i&#58; integer;
    begin
      for i&#58;=0 to FEnhItems.Count-1 do
        tEnhComboItem&#40;FEnhItems&#91;i&#93;&#41;.Free;
      FEnhItems.Free;
      FChangeLink.Free;
      inherited;
    end;
    
    
    
    //---Message Handlers------------------------------------------------------
    
    procedure TCustomImgComboBox.CNDrawItem&#40;var Message&#58; TWMDrawItem&#41;;
    var State&#58; TOwnerDrawState;
    begin
      with Message.DrawItemStruct^ do
        begin
          State &#58;= TOwnerDrawState&#40;byte&#40;LongRec&#40;itemState&#41;.Lo&#41;&#41;;
          FInEdit &#58;= &#40;ODS_COMBOBOXEDIT and itemState&#41;>0;
          Canvas.Handle &#58;= hDC;
          Canvas.Font &#58;= Font;
          Canvas.Brush &#58;= Brush;
    
          Canvas.FillRect&#40;rcItem&#41;;
    
          if &#40;Integer&#40;itemID&#41; >= 0&#41; and &#40;odSelected in State&#41; then
            begin
              Canvas.Brush.Color &#58;= clHighlight;
              Canvas.Font.Color &#58;= clHighlightText
            end;
    
          if Integer&#40;itemID&#41; >= 0 then
            DrawItem&#40;itemID, rcItem, State&#41;
          else
            Canvas.FillRect&#40;rcItem&#41;;
    
          Canvas.Handle &#58;= 0;
        end;
    end;
    
    
    procedure TCustomImgComboBox.CBAddString&#40;var Message&#58; TMessage&#41;;
    begin
      inherited;
      FEnhItems.Insert&#40;Message.Result, TEnhComboItem.Create&#41;;
    end;
    
    
    procedure TCustomImgComboBox.CBInsertString&#40;var Message&#58; TMessage&#41;;
    begin
      inherited;
      FEnhItems.Insert&#40;Message.Result, TEnhComboItem.Create&#41;;
    end;
    
    
    procedure TCustomImgComboBox.CBDeleteString&#40;var Message&#58; TMessage&#41;;
    begin
      TEnhComboItem&#40;FEnhItems&#91;Message.wParam&#93;&#41;.Free;
      FEnhItems.Delete&#40;Message.wParam&#41;;
      inherited;
    end;
    
    
    procedure TCustomImgComboBox.CBResetContent&#40;var Message&#58; TMessage&#41;;
    var i&#58; integer;
    begin
      for i&#58;=0 to FEnhItems.Count-1 do TEnhComboItem&#40;FEnhItems&#91;i&#93;&#41;.Free;
      FEnhItems.Clear;
      inherited;
    end;
    
    
    //---Property Access Methods-------------------------------------------------
    
    function TCustomImgComboBox.GetImageIndex&#40;Index&#58; Integer&#41;&#58; integer;
    begin
      Result &#58;= TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.ImageIndex;
    end;
    
    
    procedure TCustomImgComboBox.SetImageIndex&#40;Index&#58; Integer;
      const Value&#58; Integer&#41;;
    begin
      if TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.ImageIndex <> Value then
        begin
          TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.ImageIndex &#58;= Value;
          Invalidate;
        end;
    end;
    
    
    function TCustomImgComboBox.GetSelectedIndex&#40;Index&#58; Integer&#41;&#58; integer;
    begin
      Result &#58;= TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.SelectedIndex;
    end;
    
    
    procedure TCustomImgComboBox.SetSelectedIndex&#40;Index&#58; Integer;
      const Value&#58; Integer&#41;;
    begin
      if TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.SelectedIndex <> Value then
        begin
          TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.SelectedIndex &#58;= Value;
          Invalidate;
        end;
    end;
    
    
    function TCustomImgComboBox.GetOverlayIndex&#40;Index&#58; integer&#41;&#58; integer;
    begin
      Result &#58;= TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.OverlayIndex;
    end;
    
    
    procedure TCustomImgComboBox.SetOverlayIndex&#40;Index&#58; integer;
      const Value&#58; integer&#41;;
    begin
      if TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.OverlayIndex <> Value then
        begin
          TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.OverlayIndex &#58;= Value;
          Invalidate;
        end;
    end;
    
    
    function TCustomImgComboBox.GetIndentLevel&#40;Index&#58; Integer&#41;&#58; byte;
    begin
      Result &#58;= TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.Indent;
    end;
    
    
    procedure TCustomImgComboBox.SetIndentLevel&#40;Index&#58; Integer;
      const Value&#58; byte&#41;;
    begin
      if TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.Indent <> Value then
        begin
          TEnhComboItem&#40;FEnhItems&#91;Index&#93;&#41;.Indent &#58;= Value;
          if DroppedDown then Invalidate;
        end;
    end;
    
    
    procedure TCustomImgComboBox.SetIndent&#40;const Value&#58; byte&#41;;
    begin
      if FIndent <> Value then
        begin
          FIndent &#58;= Value;
          if DroppedDown then Invalidate;
        end;
    end;
    
    
    procedure TCustomImgComboBox.SetImages&#40;Value&#58; TCustomImageList&#41;;
    begin
      if Images <> nil then Images.UnRegisterChanges&#40;FChangeLink&#41;;
      FImages &#58;= Value;
      if Images <> nil then
        begin
          Images.RegisterChanges&#40;FChangeLink&#41;;
          Images.FreeNotification&#40;Self&#41;;
          ItemHeight &#58;= Images.Height;
        end;
      RecreateWnd;
    end;
    
    
    procedure TCustomImgComboBox.SetStyle&#40;Value&#58; TComboBoxStyle&#41;;
    begin
      if Value = csOwnerDrawFixed then
        inherited SetStyle&#40;Value&#41;;
    end;
    
    
    //---Other Methods----------------------------------------------------------
    
    function TCustomImgComboBox.ItemSize&#40;paDC&#58; hDC; paIndex&#58; Integer; paInEdit&#58; boolean&#41;&#58; TSize;
    begin
      Result &#58;= inherited ItemSize&#40;paDC, paIndex, paInEdit&#41;;
      if FImages<>nil then
        Result.cx &#58;= Result.cx + FImages.Width;
      if not paInEdit then
        Result.cx &#58;= Result.cx + IndentLevel&#91;paIndex&#93;*Indent + 6;
    end;
    
    
    procedure TCustomImgComboBox.DrawItem&#40;Index&#58; Integer; Rect&#58; TRect;
                                          State&#58; TOwnerDrawState&#41;;
    const
      DrawingStyles&#58; array&#91;TDrawingStyle&#93; of integer = &#40;ILD_FOCUS,
        ILD_SELECTED, ILD_NORMAL, ILD_TRANSPARENT&#41;;
      ImageTypes&#58; array&#91;TImageType&#93; of integer = &#40;0, ILD_MASK&#41;;
    var DC&#58; HDC;
        OldFont&#58; HFONT;
        Size&#58; TSize;
        OldBlendColor&#58; TColor;
        DrawStyle&#58; TDrawingStyle;
        HelpRight, OldRight, HelpImageIndex, HelpOverlayIndex&#58; integer;
    
    begin
      TControlCanvas&#40;Canvas&#41;.UpdateTextFlags;
      if Assigned&#40;OnDrawItem&#41; then
        OnDrawItem&#40;Self, Index, Rect, State&#41;
      else
        begin
          DC &#58;= CreateCompatibleDC&#40;0&#41;;
          OldFont &#58;= SelectObject&#40;DC, Font.Handle&#41;;
          try
            GetTextExtentPoint32&#40;DC, PChar&#40;Items&#91;Index&#93;&#41;, Length&#40;Items&#91;Index&#93;&#41;, Size&#41;;
          finally
            SelectObject&#40;DC, OldFont&#41;;
            DeleteDC&#40;DC&#41;;
          end;
    
          OldRight &#58;= Rect.Right;
          if not FInEdit then OffsetRect&#40;Rect, FIndent*IndentLevel&#91;Index&#93;, 0&#41;;
    
          if FImages<>nil then
            with FImages do
              begin
                OldBlendColor &#58;= BlendColor;
                if odFocused in State then
                  begin
                    BlendColor &#58;= clHighlight;
                    DrawStyle &#58;= dsSelected;
                    HelpImageIndex &#58;= Self.SelectedIndex&#91;Index&#93;;
                  end
                else
                  begin
                    DrawStyle &#58;= dsTransparent;
                    HelpImageIndex &#58;= Self.ImageIndex&#91;Index&#93;;
                  end;
    
                if OverlayIndex&#91;Index&#93;=-1 then
                  begin
                    THackImageList&#40;FImages&#41;.DoDraw&#40;HelpImageIndex, Canvas,
                      Rect.Left + 2, Rect.Top,
                      DrawingStyles&#91;DrawStyle&#93; or ImageTypes&#91;FImages.ImageType&#93;, Enabled&#41;;
                  end
                else
                  begin
                    HelpOverlayIndex &#58;= IndexToOverlayMask&#40;OverlayIndex&#91;Index&#93; + 1&#41;;
                    THackImageList&#40;FImages&#41;.DoDraw&#40;HelpImageIndex, Canvas,
                      Rect.Left + 2, Rect.Top,
                      DrawingStyles&#91;DrawStyle&#93; or ImageTypes&#91;FImages.ImageType&#93; or
                      ILD_OVERLAYMASK and HelpOverlayIndex, Enabled&#41;;
                  end;
    
                BlendColor &#58;= OldBlendColor;
                Rect.Left &#58;= Rect.Left + FImages.Width + 4;
              end;
    
          with Rect do
            begin
              HelpRight &#58;= Left + Size.cx + 4;
              if OldRight>HelpRight then Right &#58;= HelpRight
                                    else Right &#58;= OldRight;
            end;
    
          if Enabled then
            //Needed only in ListBox
            Canvas.FillRect&#40;Rect&#41;
          else
            begin
              //Canvas.DoDraw changes this when drawing disabled images!!!
              //Another Borland's bug?
              Canvas.Brush.Color &#58;= Color;
              Canvas.Font.Color &#58;= clBtnShadow;
            end;
    
          Canvas.TextOut&#40;Rect.Left + 2, Rect.Top + 1, Items&#91;Index&#93;&#41;;
          if odFocused in State then Canvas.DrawFocusRect&#40;Rect&#41;;
        end;
    end;
    
    
    procedure TCustomImgComboBox.Notification&#40;AComponent&#58; TComponent;
      Operation&#58; TOperation&#41;;
    begin
      inherited Notification&#40;AComponent, Operation&#41;;
      if Operation = opRemove then
        begin
          if AComponent = FImages then FImages &#58;= nil;
        end;
    end;
    
    
    procedure TCustomImgComboBox.ImageListChange&#40;Sender&#58; TObject&#41;;
    begin
      if Sender = FImages then SetImages&#40;FImages&#41;;
    end;
    
    
    function TCustomImgComboBox.AddItem&#40;paCaption&#58; string; paData&#58; pointer;
      paImage&#58; Integer; paIndent&#58; byte;
      paSelectedImage&#58; integer; paOverlayImage&#58; integer&#41;&#58; integer;
    begin
      Result &#58;= Items.AddObject&#40;paCaption, paData&#41;;
      with TEnhComboItem&#40;FEnhItems&#91;Result&#93;&#41; do
        begin
          ImageIndex &#58;= paImage;
          Indent &#58;= paIndent;
          if paSelectedImage<>-1 then SelectedIndex &#58;= paSelectedImage
                                 else SelectedIndex &#58;= paImage;
        end;
    end;
    
    
    procedure TCustomImgComboBox.InsertItem&#40;paIndex&#58; integer; paCaption&#58; string;
      paData&#58; pointer; paImage&#58; Integer; paIndent&#58; byte;
      paSelectedImage&#58; integer; paOverlayImage&#58; integer&#41;;
    begin
      Items.InsertObject&#40;paIndex, paCaption, paData&#41;;
      with TEnhComboItem&#40;FEnhItems&#91;paIndex&#93;&#41; do
        begin
          ImageIndex &#58;= paImage;
          Indent &#58;= paIndent;
          if paSelectedImage<>-1 then SelectedIndex &#58;= paSelectedImage
                                 else SelectedIndex &#58;= paImage;
        end;
    end;
    
    
    
    //---Register Procedure------------------------------------------------------
    
    procedure Register;
    begin
      RegisterComponents&#40;'Additional', &#91;TEnhComboBox, TImgComboBox&#93;&#41;;
    end;
    
    
    
    end.
    Jaro

Informace o tématu

Users Browsing this Thread

Toto téma si právě prohlíží 1 uživatelů. (0 registrovaných a 1 anonymních)

Podobná témata

  1. Delphi, hlidani nabourani do jineho procesu
    Založil jimmy v sekci fóra Programování
    Odpovědí: 0
    Poslední příspěvek: 14.12.2005, 11:39
  2. MySQL 4.1 a Delphi - špatné kódování
    Založil KDante v sekci fóra Programování
    Odpovědí: 9
    Poslední příspěvek: 28.08.2005, 21:51
  3. Delphi : komunikace pres RS-232
    Založil mudboy v sekci fóra Programování
    Odpovědí: 10
    Poslední příspěvek: 07.06.2005, 21:37
  4. delphi 7 X delphi 8
    Založil night_ v sekci fóra Programování
    Odpovědí: 28
    Poslední příspěvek: 25.10.2004, 15:20
  5. 5.1 zvuk v Mplayeru
    Založil CompCrasher v sekci fóra Operační systémy na bázi Unixu
    Odpovědí: 12
    Poslední příspěvek: 25.08.2003, 11:44

Pravidla přispívání

  • Nemůžete zakládat nová témata
  • Nemůžete zasílat odpovědi
  • Nemůžete přikládat přílohy
  • Nemůžete upravovat své příspěvky
  •