{****************************************************************************** TInterfaceBase WinApi stuff No code here (just some dummy results to keep the compiler quiet :-) !! Keep this alphabetical !! ******************************************************************************} //##apiwiz##sps## // Do not remove function TInterfaceBase.BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc: Integer; Rop: DWORD): Boolean; begin Result := False; end; function TInterfaceBase.CallNextHookEx(hhk : HHOOK; ncode : Integer; wParam, lParam : Longint) : Integer; begin Result := 0; end; Function TInterfaceBase.ClienttoScreen(Handle : HWND; var P : TPoint) : Boolean; Begin Result := False; end; function TInterfaceBase.CreateBitmap(Width, Height: Integer; Planes, BitCount: Longint; BitmapBits: Pointer): HBITMAP; begin Result := 0; end; function TInterfaceBase.CreateBrushIndirect(const LogBrush: TLogBrush): HBRUSH; begin Result := 0; end; function TInterfaceBase.CreateCaret(Handle : HWND; Bitmap : hBitmap; width, Height : Integer) : Boolean; begin Result := False; end; function TInterfaceBase.CreateCompatibleDC(DC: HDC): HDC; begin Result := 0; end; function TInterfaceBase.CreateFontIndirect(const LogFont: TLogFont): HFONT; begin Result := 0; end; function TInterfaceBase.CreatePenIndirect(const LogPen: TLogPen): HPEN; begin Result := 0; end; function TInterfaceBase.CreatePixmapIndirect(const Data: Pointer; const TransColor: Longint): HBITMAP; begin Result := 0; end; function TInterfaceBase.CreateRectRgn(X1,Y1,X2,Y2 : Integer): HRGN; begin Result := 0; end; function TInterfaceBase.DeleteDC(hDC: HDC): Boolean; begin Result := False; end; function TInterfaceBase.DeleteObject(GDIObject: HGDIOBJ): Boolean; begin Result := False; end; function TInterfaceBase.DestroyCaret: Boolean; begin Result := False; end; function TInterfacebase.DrawFrameControl(DC: HDC; var Rect : TRect; uType, uState : Cardinal) : Boolean; begin Result := False; end; function TInterfaceBase.DrawEdge(DC: HDC; var Rect: TRect; edge: Cardinal; grfFlags: Cardinal): Boolean; Begin Result := False; end; function TInterfaceBase.EnableMenuItem(hMenu: HMENU; uIDEnableItem: Integer; bEnable: Boolean): Boolean; begin Result := False; end; function TInterfaceBase.EnableScrollBar(Wnd: HWND; wSBflags, wArrows: Cardinal): Boolean; begin Result := False; end; function TInterfaceBase.EnableWindow(hWnd: HWND; bEnable: Boolean): Boolean; begin // Your default here // Result := end; function TInterfaceBase.ExtTextOut(DC: HDC; X, Y: Integer; Options: Longint; Rect: PRect; Str: PChar; Count: Longint; Dx: PInteger): Boolean; begin Result := False; end; function TInterfaceBase.FillRect(DC: HDC; const Rect: TRect; Brush: HBRUSH): Boolean; begin Result := False; end; function TInterfaceBase.GetCapture : HWND; begin Result := 0; end; function TInterfaceBase.GetCaretPos(var lpPoint: TPoint): Boolean; begin Result := False; end; function TInterfaceBase.GetCursorPos(var lpPoint: TPoint): Boolean; begin Result := False; end; function TInterfaceBase.GetCharABCWidths(DC: HDC; p2, p3: UINT; const ABCStructs): Boolean; //pbd begin Result := False; end; function TInterfaceBase.GetDC(hWnd: HWND): HDC; begin Result := 0; end; function TInterfaceBase.GetFocus: HWND; begin Result := 0; end; function TInterfaceBase.GetKeyState(nVirtKey: Integer): Smallint; begin Result := 0; end; function TInterfaceBase.GetObject(GDIObject: HGDIOBJ; BufSize: Integer; Buf: Pointer): Integer; begin Result := 0; end; Function TInterfaceBase.GetParent(Handle : HWND): HWND; begin // Your default here // Result := end; Function TInterfaceBase.GetProp(Handle : hwnd; Str : PChar): Pointer; begin Result := nil; end; function TInterfaceBase.GetScrollInfo(Handle: HWND; BarFlag: Integer; var ScrollInfo: TScrollInfo): Boolean; begin Result := False; end; function TInterfaceBase.GetStockObject(Value: Integer): LongInt; begin Result := 0; end; function TInterfaceBase.GetSysColor(nIndex: Integer): DWORD; begin Result := 0; end; function TInterfaceBase.GetSystemMetrics(nIndex: Integer): Integer; begin Result := 0; end; function TInterfaceBase.GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; begin Result := False; end; function TInterfaceBase.GetTextMetrics(DC: HDC; var TM: TTextMetric): Boolean; begin Result := False; end; function TInterfaceBase.GetWindowLong(Handle : hwnd; int : Integer): Longint; begin Result := 0; end; Function TInterfaceBase.GetWindowOrgEx(dc : hdc; var P : TPoint): Integer; Begin Result := 0; end; function TInterfaceBase.GetWindowRect(Handle : hwnd; Rect : pRect): Integer; begin Result := 0; end; function TInterfaceBase.HideCaret(hWnd: HWND): Boolean; begin Result := False; end; function TInterfaceBase.LineTo(DC: HDC; X, Y: Integer): Boolean; begin Result := False; end; function TInterfaceBase.MessageBox(hWnd: HWND; lpText, lpCaption: PChar; uType : Cardinal): integer; begin Result:= 0; end; function TInterfaceBase.MaskBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc: Integer; Mask: HBITMAP; XMask, YMask: Integer; Rop: DWORD): Boolean; begin Result := False; end; function TInterfaceBase.MoveToEx(DC: HDC; X, Y: Integer; OldPoint: PPoint): Boolean; begin Result := False; end; function TInterfaceBase.PostMessage(hWnd: HWND; Msg: Cardinal; wParam: LongInt; lParam: LongInt): Boolean; begin Result := False; end; function TInterfaceBase.PeekMessage(var lpMsg : TMsg; Handle : HWND; wMsgFilterMin, wMsgFilterMax,wRemoveMsg : UINT): Boolean; Begin Result := False; End; function TInterfaceBase.RealizePalette(DC: HDC): Cardinal; begin Result := 0; end; function TInterfaceBase.Rectangle(DC: HDC; X1, Y1, X2, Y2: Integer): Boolean; begin Result := False; end; Function TInterfaceBase.ReleaseCapture : Boolean; Begin Result := True; end; function TInterfaceBase.ReleaseDC(hWnd: HWND; hDC: HDC): Integer; begin Result := 0; end; function TInterfaceBase.RestoreDC(DC: HDC; SavedDC: Integer): Boolean; begin Result := False; end; function TInterfaceBase.SaveDC(DC: HDC) : Integer; begin Result := 0; end; function TInterfaceBase.ScrollWindowEx(hWnd: HWND; dx, dy: Integer; prcScroll, prcClip: PRect; hrgnUpdate: HRGN; prcUpdate: PRect; flags: UINT): Boolean; begin Result := False; end; function TInterfaceBase.SelectObject(DC: HDC; GDIObj: HGDIOBJ): HGDIOBJ; begin Result := 0; end; function TInterfaceBase.SelectPalette(DC: HDC; Palette: HPALETTE; ForceBackground: Boolean): HPALETTE; begin Result := 0; end; function TInterfaceBase.SendMessage(hWnd: HWND; Msg: Cardinal; wParam: LongInt; lParam: LongInt): Integer; begin Result := 0; end; function TInterfaceBase.SetBkColor(DC: HDC; Color: TColorRef): TColorRef; //pbd begin Result := 0; end; Function TInterfaceBase.SetBkMode(DC: HDC; bkMode : Integer) : Integer; begin // Your default here // Result := end; Function TInterfaceBase.SetCapture(value : Longint) : Longint; Begin Result := 0; End; function TInterfaceBase.SetCaretPos(X, Y: Integer): Boolean; begin Result := False; end; function TInterfaceBase.SetFocus(hWnd: HWND): HWND; begin Result := 0; end; Function TInterfacebase.SetProp(Handle: hwnd; Str : PChar; Data : Pointer) : Boolean; Begin Result := True; end; function TInterfaceBase.SetSCrollInfo(Handle : HWND; SBStyle : Integer; ScrollInfo: TScrollInfo; Redraw : Boolean): Integer; begin Result := 0; end; function TInterfaceBase.SetSysColors(cElements: Integer; const lpaElements; const lpaRgbValues): Boolean; begin Result := False; end; Function TInterfaceBase.SetTextCharacterExtra(_hdc : hdc; nCharExtra : Integer):Integer; begin // Your default here // Result := end; function TInterfaceBase.SetTextColor(DC: HDC; Color: TColorRef): TColorRef; begin Result := CLR_INVALID; end; function TInterfacebase.SetWindowLong(Handle: HWND; Idx: Integer; NewLong : Longint): LongInt; begin Result := -1; end; Function TInterfaceBase.SetWindowOrgEx(dc : hdc; NewX, NewY : Integer; Var lpPoint : TPoint) : Boolean; Begin Result := False; end; function TInterfaceBase.ShowCaret(hWnd: HWND): Boolean; begin Result := False; end; function TInterfaceBase.ShowScrollBar(Handle: HWND; wBar: Integer; bShow: Boolean): Boolean; begin Result := False; end; function TInterfaceBase.StretchBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; Rop: Cardinal): Boolean; begin Result := False; end; function TInterfaceBase.StretchMaskBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; Mask: HBITMAP; XMask, YMask: Integer; Rop: DWORD): Boolean; begin Result := False; end; Function TInterfaceBase.TextOut(DC: HDC; X,Y : Integer; Str : Pchar; Count: Integer) : Boolean; begin // Your default here // Result := end; Function TInterfaceBase.WindowFromPoint(Point : TPoint) : HWND; begin // Your default here Result := 0; end; //##apiwiz##eps## // Do not remove { ============================================================================= $Log$ Revision 1.4 2000/08/11 14:59:09 lazarus Adding all the Synedit files. Changed the GDK_KEY_PRESS and GDK_KEY_RELEASE stuff to fix the problem in the editor with the shift key being ignored. Shane Revision 1.3 2000/08/10 18:56:24 lazarus Added some winapi calls. Most don't have code yet. SetTextCharacterExtra CharLowerBuff IsCharAlphaNumeric Shane Revision 1.2 2000/07/30 21:48:32 lazarus MWE: = Moved ObjectToGTKObject to GTKProc unit * Fixed array checking in LoadPixmap = Moved LM_SETENABLED to API func EnableWindow and EnableMenuItem ~ Some cleanup Revision 1.1 2000/07/13 10:28:26 michael + Initial import Revision 1.6 2000/05/11 22:04:15 lazarus MWE: + Added messagequeue * Recoded SendMessage and Peekmessage + Added postmessage + added DeliverPostMessage Revision 1.5 2000/05/08 12:54:19 lazarus Removed some writeln's Added alignment for the TLabel. Isn't working quite right. Added the shell code for WindowFromPoint and GetParent. Added FindLCLWindow Shane Revision 1.4 2000/05/03 00:27:05 lazarus MWE: + First rollout of the API wizzard. Revision 1.3 2000/04/10 14:03:07 lazarus Added SetProp and GetProp winapi calls. Added ONChange to the TEdit's published property list. Shane Revision 1.2 2000/04/07 16:59:55 lazarus Implemented GETCAPTURE and SETCAPTURE along with RELEASECAPTURE. Shane Revision 1.1 2000/04/02 20:49:56 lazarus MWE: Moved lazarus/lcl/*.inc files to lazarus/lcl/include Revision 1.30 2000/03/31 18:41:03 lazarus Implemented MessageBox / Application.MessageBox calls. No icons yet, though... Revision 1.29 2000/03/30 18:07:54 lazarus Added some drag and drop code Added code to change the unit name when it's saved as a different name. Not perfect yet because if you are in a comment it fails. Shane Revision 1.28 2000/03/28 22:47:50 lazarus MWE: Started with the blt function family Revision 1.27 2000/03/19 23:01:43 lazarus MWE: = Changed splashscreen loading/colordepth = Chenged Save/RestoreDC to platform dependent, since they are relative to a DC Revision 1.26 2000/03/16 23:58:46 lazarus MWE: Added TPixmap for XPM support Revision 1.25 2000/03/14 19:49:05 lazarus Modified the painting process for TWincontrol. Now it runs throug it's FCONTROLS list and paints all them Shane Revision 1.24 2000/03/10 18:31:10 lazarus Added TSpeedbutton code Shane Revision 1.23 2000/03/09 23:48:02 lazarus MWE: * Fixed colorcache * Fixed black window in new editor ~ Did some cosmetic stuff From Peter Dyson : + Added Rect api support functions + Added the start of ScrollWindowEx Revision 1.22 2000/03/08 23:57:39 lazarus MWE: Added SetSysColors Fixed TEdit text bug (thanks to hans-joachim ott ) Finished GetKeyState Added changes from Peter Dyson - a new GetSysColor - some improvements on ExTextOut Revision 1.21 2000/03/06 00:05:05 lazarus MWE: Added changes from Peter Dyson for a new release of mwEdit (0.92) Revision 1.20 2000/03/03 22:58:26 lazarus MWE: Fixed focussing problem. LM-FOCUS was bound to the wrong signal Added GetKeyState api func. Now LCL knows if shift/trl/alt is pressed (might be handy for keyboard selections ;-) Revision 1.19 2000/02/22 23:26:13 lazarus MWE: Fixed cursor movement in editor Started on focus problem Revision 1.18 2000/01/31 20:00:22 lazarus Added code for Application.ProcessMessages. Needs work. Added TScreen.Width and TScreen.Height. Added the code into GetSystemMetrics for these two properties. Shane Revision 1.17 2000/01/25 00:38:25 lazarus MWE: Added GetFocus Revision 1.16 2000/01/16 23:23:07 lazarus MWE: Added/completed scrollbar API funcs Revision 1.15 1999/12/21 21:35:54 lazarus committed the latest toolbar code. Currently it doesn't appear anywhere and I have to get it to add buttons correctly through (I think) setstyle. I think I'll implement the LM_TOOLBARINSERTBUTTON call there. Shane Revision 1.14 1999/12/21 00:07:06 lazarus MWE: Some fixes Completed a bit of DraWEdge Revision 1.13 1999/12/20 21:01:14 lazarus Added a few things for compatability with Delphi and TToolbar Shane Revision 1.12 1999/12/18 18:27:32 lazarus MWE: Rearranged some events to get a LM_SIZE, LM_MOVE and LM_WINDOWPOSCHANGED Initialized the TextMetricstruct to zeros to clear unset values Get mwEdit to show more than one line Fixed some errors in earlier commits Revision 1.11 1999/12/14 21:07:12 lazarus Added more stuff for TToolbar Shane Revision 1.10 1999/12/02 19:00:59 lazarus MWE: Added (GDI)Pen Changed (GDI)Brush Changed (GDI)Font (color) Changed Canvas to use/create pen/brush/font Hacked mwedit to allow setting the number of chars (till it get a WM/LM_SIZE event) The editor shows a line ! Revision 1.9 1999/11/29 00:46:47 lazarus MWE: Added TBrush as gdiobject commented out some more mwedit MWE_FPC ifdefs Revision 1.8 1999/11/25 23:45:08 lazarus MWE: Added font as GDIobject Added some API testcode to testform Commented out some more IFDEFs in mwCustomEdit Revision 1.7 1999/11/19 01:09:43 lazarus MWE: implemented TCanvas.CopyRect Added StretchBlt Enabled creation of TCustomControl.Canvas Added a temp hack in TWinControl.Repaint to get a LM_PAINT Revision 1.6 1999/11/18 00:13:08 lazarus MWE: Partly Implemented SelectObject Added ExTextOut Added GetTextExtentPoint Added TCanvas.TextExtent/TextWidth/TextHeight Added TSize and HPEN Revision 1.5 1999/11/17 01:16:40 lazarus MWE: Added some more API stuff Added an initial TBitmapCanvas Added some DC stuff Changed and commented out, original gtk linedraw/rectangle code. This is now called through the winapi wrapper. Revision 1.4 1999/11/16 01:32:22 lazarus MWE: Added some more DC functionality }