summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/apps/debugserver/extrafpc.cfg4
-rw-r--r--examples/apps/debugserver/fpgDebugServer.lpi7
-rw-r--r--examples/apps/debugserver/fra_liveview.pas66
-rw-r--r--examples/apps/debugserver/frm_main.pas204
-rw-r--r--examples/apps/debugserver/images.inc54
-rw-r--r--examples/apps/debugserver/images/extended_view.bmpbin0 -> 822 bytes
-rw-r--r--examples/apps/docedit/extrafpc.cfg4
-rw-r--r--examples/apps/globe/extrafpc.cfg4
-rw-r--r--examples/apps/globe/frm_main.pas6
-rw-r--r--examples/apps/ide/src/extrafpc.cfg4
-rw-r--r--examples/apps/ide/src/fpg_textedit.pas4
-rw-r--r--examples/apps/ide/src/frm_main.pas11
-rw-r--r--examples/apps/ide/src/maximus.lpi2
-rw-r--r--examples/apps/ide/src/maximus.lpr27
-rw-r--r--examples/apps/nanoedit/extrafpc.cfg4
-rw-r--r--examples/apps/nanoedit/mainfrm.pas16
-rw-r--r--examples/corelib/aggcanvas/agg_canvas_test.lpr6
-rw-r--r--examples/corelib/aggcanvas/extrafpc.cfg4
-rw-r--r--examples/corelib/canvastest/extrafpc.cfg4
-rw-r--r--examples/corelib/eventtest/extrafpc.cfg4
-rw-r--r--examples/corelib/helloworld/extrafpc.cfg4
-rw-r--r--examples/gui/alignment/aligntest.lpi29
-rw-r--r--examples/gui/alignment/extrafpc.cfg4
-rw-r--r--examples/gui/alignment_resize/alignment_resize.lpi27
-rw-r--r--examples/gui/alignment_resize/extrafpc.cfg4
-rw-r--r--examples/gui/animation/anim_test.lpi24
-rw-r--r--examples/gui/animation/extrafpc.cfg4
-rw-r--r--examples/gui/bevel/beveltest.lpi24
-rw-r--r--examples/gui/bevel/extrafpc.cfg4
-rw-r--r--examples/gui/calendar/calendartest.lpi20
-rw-r--r--examples/gui/calendar/extrafpc.cfg4
-rw-r--r--examples/gui/colorlistbox/colorlistboxtest.lpi24
-rw-r--r--examples/gui/colorlistbox/extrafpc.cfg4
-rw-r--r--examples/gui/colorwheel/colorwheel_test.lpi20
-rw-r--r--examples/gui/colorwheel/extrafpc.cfg4
-rw-r--r--examples/gui/colorwheel/frm_main.pas8
-rw-r--r--examples/gui/combobox/comboboxtest.lpi25
-rw-r--r--examples/gui/combobox/extrafpc.cfg4
-rw-r--r--examples/gui/combobox/frm_main.pas18
-rw-r--r--examples/gui/command_interface/extrafpc.cfg4
-rw-r--r--examples/gui/command_interface/test.lpi26
-rw-r--r--examples/gui/customstyles/customstyles.lpi11
-rw-r--r--examples/gui/customstyles/customstyles.lpr3
-rw-r--r--examples/gui/customstyles/extrafpc.cfg4
-rw-r--r--examples/gui/customstyles/frm_test.pas42
-rw-r--r--examples/gui/customstyles/mystyle.pas4
-rw-r--r--examples/gui/dbtest/dbtest.lpi24
-rw-r--r--examples/gui/dbtest/extrafpc.cfg4
-rw-r--r--examples/gui/drag_n_drop/dndexample.lpi4
-rw-r--r--examples/gui/drag_n_drop/dndexample.lpr3
-rw-r--r--examples/gui/drag_n_drop/extrafpc.cfg4
-rw-r--r--examples/gui/edits/edittest.lpi24
-rw-r--r--examples/gui/edits/extrafpc.cfg4
-rw-r--r--examples/gui/embedded_form/demo1.lpi24
-rw-r--r--examples/gui/embedded_form/extrafpc.cfg4
-rw-r--r--examples/gui/embedded_form/frm_main.pas1
-rw-r--r--examples/gui/filedialog/extrafpc.cfg4
-rw-r--r--examples/gui/filedialog/filedialog.lpi25
-rw-r--r--examples/gui/filedialog/filedialog.lpr1
-rw-r--r--examples/gui/filegrid/extrafpc.cfg4
-rw-r--r--examples/gui/filegrid/filegrid.lpi28
-rw-r--r--examples/gui/fontselect/extrafpc.cfg4
-rw-r--r--examples/gui/fontselect/fontselect.lpi25
-rw-r--r--examples/gui/gauges/extrafpc.cfg4
-rw-r--r--examples/gui/gauges/gaugetest.lpi21
-rw-r--r--examples/gui/gridediting/extrafpc.cfg4
-rw-r--r--examples/gui/gridediting/gridediting.lpi15
-rw-r--r--examples/gui/gridtest/gridtest.lpi20
-rw-r--r--examples/gui/gridtest/gridtest.lpr16
-rw-r--r--examples/gui/hintwindow/extrafpc.cfg4
-rw-r--r--examples/gui/hintwindow/hintwindowtest.lpi24
-rw-r--r--examples/gui/imgtest/bitmaptest.lpi27
-rw-r--r--examples/gui/imgtest/extrafpc.cfg4
-rw-r--r--examples/gui/imgtest_jpeg/extrafpc.cfg4
-rw-r--r--examples/gui/imgtest_jpeg/jpeg.lpi22
-rw-r--r--examples/gui/listbox/extrafpc.cfg4
-rw-r--r--examples/gui/listbox/frm_main.pas16
-rw-r--r--examples/gui/listbox/listboxtest.lpi26
-rw-r--r--examples/gui/listviewtest/extrafpc.cfg4
-rw-r--r--examples/gui/listviewtest/listviewtest.lpi10
-rw-r--r--examples/gui/memo/extrafpc.cfg4
-rw-r--r--examples/gui/memo/memotest.lpi20
-rw-r--r--examples/gui/menutest/extrafpc.cfg4
-rw-r--r--examples/gui/menutest/menutest.lpi22
-rw-r--r--examples/gui/modalforms/extrafpc.cfg4
-rw-r--r--examples/gui/modalforms/modalforms.lpi27
-rw-r--r--examples/gui/mousecursor/cursordemo.lpi21
-rw-r--r--examples/gui/mousecursor/extrafpc.cfg4
-rw-r--r--examples/gui/panel/extrafpc.cfg4
-rw-r--r--examples/gui/panel/panel_test.lpi27
-rw-r--r--examples/gui/reporting/extrafpc.cfg4
-rw-r--r--examples/gui/reporting/pdf_demo.lpi2
-rw-r--r--examples/gui/scrollframe/bigframe_test.lpi78
-rw-r--r--examples/gui/scrollframe/bigframe_test.lpr114
-rw-r--r--examples/gui/scrollframe/frame_test.lpi78
-rw-r--r--examples/gui/scrollframe/frame_test.lpr112
-rw-r--r--examples/gui/splashscreen/extrafpc.cfg4
-rw-r--r--examples/gui/splashscreen/frm_main.pas1
-rw-r--r--examples/gui/splashscreen/test.lpi24
-rw-r--r--examples/gui/splitter/extrafpc.cfg4
-rw-r--r--examples/gui/splitter/splitter_test.lpi28
-rw-r--r--examples/gui/sprites/extrafpc.cfg4
-rw-r--r--examples/gui/sprites/spritedemo.lpi27
-rw-r--r--examples/gui/stdimages/extrafpc.cfg4
-rw-r--r--examples/gui/stdimages/stdimglist.lpi9
-rw-r--r--examples/gui/tabtest/extrafpc.cfg4
-rw-r--r--examples/gui/tabtest/tabtest.lpi20
-rw-r--r--examples/gui/tabtest/tabtest.lpr28
-rw-r--r--examples/gui/timertest/extrafpc.cfg4
-rw-r--r--examples/gui/timertest/timertest.lpi28
-rw-r--r--examples/gui/treeviewtest/extrafpc.cfg4
-rw-r--r--examples/gui/treeviewtest/treeviewtest.lpi11
-rw-r--r--examples/gui/video_vlc/frmvlcplayer.pas340
-rw-r--r--examples/gui/video_vlc/testfpguivlc.lpi99
-rw-r--r--examples/gui/video_vlc/testfpguivlc.lpr31
-rw-r--r--examples/gui/wulinetest/extrafpc.cfg4
-rw-r--r--examples/gui/wulinetest/wuline_test.lpi28
117 files changed, 2102 insertions, 325 deletions
diff --git a/examples/apps/debugserver/extrafpc.cfg b/examples/apps/debugserver/extrafpc.cfg
index bf32f456..49dd2ec7 100644
--- a/examples/apps/debugserver/extrafpc.cfg
+++ b/examples/apps/debugserver/extrafpc.cfg
@@ -4,3 +4,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/apps/debugserver/fpgDebugServer.lpi b/examples/apps/debugserver/fpgDebugServer.lpi
index f26f35ee..582e7494 100644
--- a/examples/apps/debugserver/fpgDebugServer.lpi
+++ b/examples/apps/debugserver/fpgDebugServer.lpi
@@ -38,7 +38,7 @@
<PackageName Value="fpgui_toolkit"/>
</Item1>
</RequiredPackages>
- <Units Count="2">
+ <Units Count="3">
<Unit0>
<Filename Value="fpgDebugServer.lpr"/>
<IsPartOfProject Value="True"/>
@@ -49,6 +49,11 @@
<IsPartOfProject Value="True"/>
<UnitName Value="frm_main"/>
</Unit1>
+ <Unit2>
+ <Filename Value="fra_liveview.pas"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="fra_liveview"/>
+ </Unit2>
</Units>
</ProjectOptions>
<CompilerOptions>
diff --git a/examples/apps/debugserver/fra_liveview.pas b/examples/apps/debugserver/fra_liveview.pas
new file mode 100644
index 00000000..dd04e625
--- /dev/null
+++ b/examples/apps/debugserver/fra_liveview.pas
@@ -0,0 +1,66 @@
+unit fra_liveview;
+
+{$mode objfpc}{$H+}
+
+interface
+
+uses
+ SysUtils,
+ Classes,
+ fpg_base,
+ fpg_main,
+ fpg_form,
+ fpg_panel,
+ fpg_grid;
+
+type
+
+ TLiveViewFrame = class(TfpgFrame)
+ private
+ {@VFD_HEAD_BEGIN: fra_liveview}
+ Grid1: TfpgStringGrid;
+ {@VFD_HEAD_END: fra_liveview}
+ public
+ procedure AfterCreate; override;
+ property Grid: TfpgStringGrid read Grid1;
+ end;
+
+{@VFD_NEWFORM_DECL}
+
+implementation
+
+{@VFD_NEWFORM_IMPL}
+
+procedure TLiveViewFrame.AfterCreate;
+begin
+ {%region 'Auto-generated GUI code' -fold}
+ {@VFD_BODY_BEGIN: fra_liveview}
+ Name := 'fra_liveview';
+ SetPosition(359, 215, 442, 104);
+ WindowTitle := 'fra_liveview';
+ Hint := '';
+
+ Grid1 := TfpgStringGrid.Create(self);
+ with Grid1 do
+ begin
+ Name := 'Grid1';
+ SetPosition(0, 4, 444, 98);
+ Anchors := [anLeft,anRight,anTop,anBottom];
+ BackgroundColor := TfpgColor($80000002);
+ AddColumn('Desc', 100, taLeftJustify);
+ AddColumn('Value', 310, taLeftJustify);
+ FontDesc := '#Grid';
+ HeaderFontDesc := '#GridHeader';
+ Hint := '';
+ RowCount := 0;
+ RowSelect := False;
+ ShowHeader := False;
+ TabOrder := 1;
+ end;
+
+ {@VFD_BODY_END: fra_liveview}
+ {%endregion}
+end;
+
+
+end.
diff --git a/examples/apps/debugserver/frm_main.pas b/examples/apps/debugserver/frm_main.pas
index 3e0fdd33..436a170c 100644
--- a/examples/apps/debugserver/frm_main.pas
+++ b/examples/apps/debugserver/frm_main.pas
@@ -79,8 +79,10 @@ uses
,fpg_menu
,fpg_basegrid
,fpg_grid
+ ,fpg_memo
,simpleipc
- ,dbugmsg
+ ,fpg_dbugmsg
+ ,fra_liveview
;
type
@@ -98,6 +100,9 @@ type
btnPause: TfpgButton;
btnStart: TfpgButton;
btnClear: TfpgButton;
+ btnExpandView: TfpgButton;
+ Bevel3: TfpgBevel;
+ btnLiveView: TfpgButton;
{@VFD_HEAD_END: MainForm}
miPause: TfpgMenuItem;
FIPCSrv: TSimpleIPCServer;
@@ -105,21 +110,31 @@ type
FAddAtBottom: Boolean;
FDiscarded: Integer;
FShowOnMessage: Boolean;
+ FMemo: TfpgMemo;
+ FLiveViewFrame: TLiveViewFrame;
procedure StartServer;
procedure StopServer;
procedure CheckMessages(Sender: TObject);
procedure CheckDebugMessages;
procedure ReadDebugMessage;
procedure ShowDebugMessage(const AMsg: TDebugmessage);
+ procedure ShowLiveViewMessage(const AMsg: TDebugmessage);
procedure ShowMessageWindow;
procedure miPauseClicked(Sender: TObject);
procedure miFileQuit(Sender: TObject);
+ procedure miEditCopy(Sender: TObject);
+ procedure btnExpandViewClicked(Sender: TObject);
procedure miHelpAboutFPGui(Sender: TObject);
procedure miHelpProductInformation(Sender: TObject);
procedure btnClearClicked(Sender: TObject);
procedure btnPauseClicked(Sender: TObject);
procedure btnStartClicked(Sender: TObject);
+ procedure btnLiveViewClicked(Sender: TObject);
procedure GridDrawCell(Sender: TObject; const ARow, ACol: Integer; const ARect: TfpgRect; const AFlags: TfpgGridDrawState; var ADefaultDrawing: boolean);
+ procedure GridRowChanged(Sender: TObject; ARow: Integer);
+ procedure GridClicked(Sender: TObject);
+ procedure CreateLiveViewFrame;
+ procedure DestroyLiveViewFrame;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
@@ -133,6 +148,8 @@ implementation
uses
dateutils
,fpg_dialogs
+ ,fpg_constants
+ ,fpg_dbugintf
;
@@ -171,12 +188,13 @@ begin
ADefaultDrawing := False;
try
i := StrToInt(grdMessages.Cells[ACol, ARow]);
+ { TODO: This needs improving. We need to somehow referce TDebugLevel instead }
case i of
- -1: img := fpgImages.GetImage('dbs.state.stop');
- 0: img := fpgImages.GetImage('dbs.state.info');
- 1: img := fpgImages.GetImage('dbs.state.warning');
- 2: img := fpgImages.GetImage('dbs.state.error');
- 3: img := fpgImages.GetImage('dbs.state.identify');
+ 0: img := fpgImages.GetImage('dbs.state.stop');
+ 1: img := fpgImages.GetImage('dbs.state.info');
+ 2: img := fpgImages.GetImage('dbs.state.warning');
+ 3: img := fpgImages.GetImage('dbs.state.error');
+ 4: img := fpgImages.GetImage('dbs.state.identify');
end;
dx := (grdMessages.ColumnWidth[ACol] - 16) div 2;
grdMessages.Canvas.DrawImage(ARect.Left + dx, ARect.Top {+ y}, img);
@@ -189,6 +207,47 @@ begin
end;
end;
+procedure TMainForm.GridRowChanged(Sender: TObject; ARow: Integer);
+begin
+ if not btnExpandView.Down then
+ Exit;
+ FMemo.Text := grdMessages.Cells[2, ARow];
+// FMemo.Text := grdMessages.Cells[2, grdMessages.FocusRow];
+end;
+
+procedure TMainForm.GridClicked(Sender: TObject);
+begin
+ if not btnExpandView.Down then
+ Exit;
+ if (grdMessages.RowCount > 0) and (grdMessages.FocusRow <> -1) then
+ FMemo.Text := grdMessages.Cells[2, grdMessages.FocusRow];
+end;
+
+procedure TMainForm.CreateLiveViewFrame;
+begin
+ if Assigned(FLiveViewFrame) then
+ FLiveViewFrame.Free;
+ FLiveViewFrame := TLiveViewFrame.Create(self);
+ grdMessages.Height := grdMessages.Height - FLiveViewFrame.Height;
+ grdMessages.UpdateWindowPosition;
+ FLiveViewFrame.SetPosition(grdMessages.Left, grdMessages.Bottom+1, grdMessages.Width, FLiveViewFrame.Height);
+end;
+
+procedure TMainForm.DestroyLiveViewFrame;
+begin
+ grdMessages.Height := grdMessages.Height + FLiveViewFrame.Height;
+ FreeAndNil(FLiveViewFrame);
+ grdMessages.UpdateWindowPosition;
+end;
+
+procedure TMainForm.btnLiveViewClicked(Sender: TObject);
+begin
+ if btnLiveView.Down then
+ CreateLiveViewFrame
+ else
+ DestroyLiveViewFrame;
+end;
+
procedure TMainForm.StartServer;
begin
FIPCSrv := TSimpleIPCServer.Create(nil);
@@ -223,9 +282,14 @@ var
Msg: TDebugMessage;
begin
FIPCSrv.MsgData.Seek(0, soFromBeginning);
- ReadDebugMessageFromStream(FIPCSrv.MsgData, MSg);
+ ReadDebugMessageFromStream(FIPCSrv.MsgData, Msg);
if not FPaused then
- ShowDebugMessage(Msg)
+ begin
+ if Msg.MsgType = Ord(dlLive) then
+ ShowLiveViewMessage(Msg)
+ else
+ ShowDebugMessage(Msg);
+ end
else
Inc(FDiscarded);
end;
@@ -254,6 +318,36 @@ begin
ShowMessageWindow;
end;
+procedure TMainForm.ShowLiveViewMessage(const AMsg: TDebugmessage);
+var
+ r: integer;
+ lFound: Boolean;
+begin
+ if not Assigned(FLiveViewFrame) then
+ Exit;
+ lFound := False;
+ FLiveViewFrame.Grid.BeginUpdate;
+ for r := 0 to FLiveViewFrame.Grid.RowCount-1 do
+ begin
+ if FLiveViewFrame.Grid.Cells[0, r] = AMsg.MsgTitle then
+ begin
+ lFound := True;
+ Break;
+ end;
+ end;
+ if lFound then
+ begin
+ FLiveViewFrame.Grid.Cells[1, r] := AMsg.Msg;
+ end
+ else
+ begin
+ FLiveViewFrame.Grid.RowCount := FLiveViewFrame.Grid.RowCount + 1;
+ FLiveViewFrame.Grid.Cells[0, FLiveViewFrame.Grid.RowCount-1] := AMsg.MsgTitle;
+ FLiveViewFrame.Grid.Cells[1, FLiveViewFrame.Grid.RowCount-1] := AMsg.Msg;
+ end;
+ FLiveViewFrame.Grid.EndUpdate;
+end;
+
procedure TMainForm.ShowMessageWindow;
begin
if not Visible then
@@ -271,6 +365,37 @@ begin
Close;
end;
+procedure TMainForm.miEditCopy(Sender: TObject);
+begin
+ if (grdMessages.RowCount > 0) and (grdMessages.FocusRow <> -1) then
+ fpgClipboard.Text := grdMessages.Cells[2, grdMessages.FocusRow];
+end;
+
+procedure TMainForm.btnExpandViewClicked(Sender: TObject);
+const
+ cSpacing = 4;
+begin
+ if btnExpandView.Down then
+ begin
+ FMemo := CreateMemo(self, grdMessages.Right + cSpacing, grdMessages.Top, 200, Height - grdMessages.Top - cSpacing);
+ FMemo.UpdateWindowPosition;
+ grdMessages.Anchors := grdMessages.Anchors - [anRight];
+ Width := Width + FMemo.Width + (2 * cSpacing);
+ UpdateWindowPosition;
+ grdMessages.Anchors := grdMessages.Anchors + [anRight];
+ GridClicked(nil); // update memo contents
+ end
+ else
+ begin
+ grdMessages.Anchors := grdMessages.Anchors - [anRight];
+ Width := Width - FMemo.Width - (2 * cSpacing);
+ FMemo.Visible := False;
+ UpdateWindowPosition;
+ grdMessages.Anchors := grdMessages.Anchors + [anRight];
+ FreeAndNil(FMemo);
+ end;
+end;
+
procedure TMainForm.miHelpAboutFPGui(Sender: TObject);
begin
TfpgMessageDialog.AboutFPGui;
@@ -293,6 +418,7 @@ begin
fpgImages.AddMaskedBMP('dbs.stop', @DBS_stop, sizeof(DBS_stop), 0, 0);
fpgImages.AddMaskedBMP('dbs.pause', @DBS_pause, sizeof(DBS_pause), 0, 0);
fpgImages.AddMaskedBMP('dbs.run', @DBS_run, sizeof(DBS_run), 0, 0);
+ fpgImages.AddMaskedBMP('dbs.extended_view', @DBS_extended_view, sizeof(DBS_extended_view), 0, 0);
fpgImages.AddMaskedBMP('dbs.state.info', @DBS_state_info, sizeof(DBS_state_info), 0, 0);
fpgImages.AddMaskedBMP('dbs.state.warning', @DBS_state_warning, sizeof(DBS_state_warning), 0, 0);
@@ -316,6 +442,7 @@ begin
WindowTitle := 'fpGUI''s Debug Server';
Hint := '';
ShowHint := True;
+ WindowPosition := wpScreenCenter;
MainMenu := TfpgMenuBar.Create(self);
with MainMenu do
@@ -332,8 +459,8 @@ begin
SetPosition(0, 21, 486, 30);
Anchors := [anLeft,anRight,anTop];
Hint := '';
- Style := bsLowered;
Shape := bsBottomLine;
+ Style := bsLowered;
end;
grdMessages := TfpgStringGrid.Create(self);
@@ -342,6 +469,7 @@ begin
Name := 'grdMessages';
SetPosition(4, 55, 478, 254);
Anchors := [anLeft,anRight,anTop,anBottom];
+ BackgroundColor := TfpgColor($80000002);
AddColumn('Type', 50, taLeftJustify);
AddColumn('Time', 75, taCenter);
AddColumn('Message', 330, taLeftJustify);
@@ -354,6 +482,8 @@ begin
TabOrder := 2;
Options := [go_SmoothScroll];
OnDrawCell := @GridDrawCell;
+// OnRowChange := @GridRowChanged;
+ OnClick := @GridClicked;
end;
mnuFile := TfpgPopupMenu.Create(self);
@@ -371,9 +501,9 @@ begin
begin
Name := 'mnuEdit';
SetPosition(260, 126, 120, 24);
- AddMenuItem('Cut', '', nil).Enabled := False;
- AddMenuItem('Copy', '', nil).Enabled := False;
- AddMenuItem('Paste', '', nil).Enabled := False;
+ // AddMenuItem('Cut', '', nil).Enabled := False;
+ AddMenuItem('Copy selected message to clipboard', rsKeyCtrl+'C', @miEditCopy);
+ // AddMenuItem('Paste', '', nil).Enabled := False;
AddMenuItem('-', '', nil);
AddMenuItem('Preferences...', '', nil).Enabled := False;
end;
@@ -410,8 +540,8 @@ begin
Name := 'Bevel2';
SetPosition(34, 2, 8, 25);
Hint := '';
- Style := bsLowered;
Shape := bsLeftLine;
+ Style := bsLowered;
end;
btnPause := TfpgButton.Create(Bevel1);
@@ -439,6 +569,7 @@ begin
Name := 'btnStart';
SetPosition(67, 2, 24, 24);
Text := '';
+ Enabled := False;
Flat := True;
FontDesc := '#Label1';
Hint := 'start server';
@@ -448,7 +579,6 @@ begin
TabOrder := 2;
Focusable := False;
OnClick := @btnStartClicked;
- Enabled := False;
end;
btnClear := TfpgButton.Create(Bevel1);
@@ -468,6 +598,52 @@ begin
OnClick :=@btnClearClicked;
end;
+ btnExpandView := TfpgButton.Create(Bevel1);
+ with btnExpandView do
+ begin
+ Name := 'btnExpandView';
+ SetPosition(128, 2, 24, 24);
+ Text := '';
+ AllowAllUp := True;
+ Flat := True;
+ FontDesc := '#Label1';
+ GroupIndex := 2;
+ Hint := 'Toggle expanded view';
+ ImageMargin := -1;
+ ImageName := 'dbs.extended_view';
+ ImageSpacing := 0;
+ TabOrder := 6;
+ Focusable := False;
+ OnClick := @btnExpandViewClicked;
+ end;
+
+ Bevel3 := TfpgBevel.Create(Bevel1);
+ with Bevel3 do
+ begin
+ Name := 'Bevel3';
+ SetPosition(120, 2, 8, 24);
+ Hint := '';
+ Shape := bsLeftLine;
+ Style := bsLowered;
+ end;
+
+ btnLiveView := TfpgButton.Create(Bevel1);
+ with btnLiveView do
+ begin
+ Name := 'btnLiveView';
+ SetPosition(156, 2, 24, 24);
+ Text := 'LV';
+ AllowAllUp := True;
+ Flat := True;
+ FontDesc := '#Label1';
+ GroupIndex := 3;
+ Hint := '';
+ ImageName := '';
+ TabOrder := 8;
+ Focusable := False;
+ OnClick := @btnLiveViewClicked;
+ end;
+
{@VFD_BODY_END: MainForm}
{%endregion}
diff --git a/examples/apps/debugserver/images.inc b/examples/apps/debugserver/images.inc
index 166155c9..ce33402d 100644
--- a/examples/apps/debugserver/images.inc
+++ b/examples/apps/debugserver/images.inc
@@ -206,3 +206,57 @@ Const
255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255,
0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
255, 0,255,255, 0,255);
+
+
+const
+ DBS_extended_view: array[0..821] of byte = (
+ 66, 77, 54, 3, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 40, 0, 0,
+ 0, 16, 0, 0, 0, 16, 0, 0, 0, 1, 0, 24, 0, 0, 0, 0, 0,
+ 0, 3, 0, 0, 19, 11, 0, 0, 19, 11, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
+ 255, 0,255,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,101,
+ 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,
+ 101, 52,164,101, 52,164,101, 52,164,101, 52,255, 0,255,255, 0,255,
+ 164,101, 52,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,164,101, 52,215,166,125,215,166,125,215,
+ 166,125,215,166,125,164,101, 52,255, 0,255,255, 0,255,164,101, 52,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,164,101, 52,215,166,125,215,166,125,215,166,125,215,
+ 166,125,164,101, 52,255, 0,255,255, 0,255,164,101, 52,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,164,101, 52,215,166,125,215,166,125,215,166,125,215,166,125,164,
+ 101, 52,255, 0,255,255, 0,255,164,101, 52,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,164,101,
+ 52,215,166,125,215,166,125,215,166,125,215,166,125,164,101, 52,255,
+ 0,255,255, 0,255,164,101, 52,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,164,101, 52,215,166,
+ 125,215,166,125,215,166,125,215,166,125,164,101, 52,255, 0,255,255,
+ 0,255,164,101, 52,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,164,101, 52,215,166,125,215,166,
+ 125,215,166,125,215,166,125,164,101, 52,255, 0,255,255, 0,255,164,
+ 101, 52,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,164,101, 52,215,166,125,215,166,125,215,166,
+ 125,215,166,125,164,101, 52,255, 0,255,255, 0,255,164,101, 52,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,164,101, 52,215,166,125,215,166,125,215,166,125,215,166,
+ 125,164,101, 52,255, 0,255,255, 0,255,164,101, 52,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 164,101, 52,215,166,125,215,166,125,215,166,125,215,166,125,164,101,
+ 52,255, 0,255,255, 0,255,164,101, 52,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,164,101, 52,
+ 215,166,125,215,166,125,215,166,125,215,166,125,164,101, 52,255, 0,
+ 255,255, 0,255,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,
+ 101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,
+ 164,101, 52,164,101, 52,164,101, 52,164,101, 52,255, 0,255,255, 0,
+ 255,164,101, 52,200,208,212,164,101, 52,164,101, 52,164,101, 52,164,
+ 101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,200,208,212,
+ 164,101, 52,200,208,212,164,101, 52,255, 0,255,255, 0,255,164,101,
+ 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,
+ 101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,164,101, 52,
+ 164,101, 52,164,101, 52,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
+ 255, 0,255,255, 0,255);
+
diff --git a/examples/apps/debugserver/images/extended_view.bmp b/examples/apps/debugserver/images/extended_view.bmp
new file mode 100644
index 00000000..d137c6c4
--- /dev/null
+++ b/examples/apps/debugserver/images/extended_view.bmp
Binary files differ
diff --git a/examples/apps/docedit/extrafpc.cfg b/examples/apps/docedit/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/apps/docedit/extrafpc.cfg
+++ b/examples/apps/docedit/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/apps/globe/extrafpc.cfg b/examples/apps/globe/extrafpc.cfg
index bf32f456..49dd2ec7 100644
--- a/examples/apps/globe/extrafpc.cfg
+++ b/examples/apps/globe/extrafpc.cfg
@@ -4,3 +4,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/apps/globe/frm_main.pas b/examples/apps/globe/frm_main.pas
index 76775a4b..ef80f2f7 100644
--- a/examples/apps/globe/frm_main.pas
+++ b/examples/apps/globe/frm_main.pas
@@ -579,7 +579,7 @@ procedure TGlobe.DrawGrid;
var
temp: integer;
begin
- Canvas.Color := TfpgColor($8080FF); // clGray;
+ Canvas.Color := TfpgColor($FF8080FF); // clGray;
Canvas.SetLineStyle(0, lsDash);
{ Parallels }
temp := Wfi;
@@ -672,12 +672,8 @@ end;
procedure TGlobe.HandlePaint;
begin
- Canvas.BeginDraw;
Canvas.Clear(clWindowBackground);
-// R := Width div 2;
- // inherited HandlePaint;
DrawGlobe;
- Canvas.EndDraw;
end;
constructor TGlobe.Create(AOwner: TComponent);
diff --git a/examples/apps/ide/src/extrafpc.cfg b/examples/apps/ide/src/extrafpc.cfg
index 90e167a9..2132065d 100644
--- a/examples/apps/ide/src/extrafpc.cfg
+++ b/examples/apps/ide/src/extrafpc.cfg
@@ -4,3 +4,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/apps/ide/src/fpg_textedit.pas b/examples/apps/ide/src/fpg_textedit.pas
index 013ad86b..3e88f3d1 100644
--- a/examples/apps/ide/src/fpg_textedit.pas
+++ b/examples/apps/ide/src/fpg_textedit.pas
@@ -2412,7 +2412,7 @@ begin
BuffList[I] := SLine;
end;
end;
- BuffList.SaveToFile(AFileName);
+ BuffList.SaveToFile(fpgToOSEncoding(AFileName));
finally
BuffList.Free;
end;
@@ -2423,7 +2423,7 @@ begin
if not fpgFileExists(AFileName) then
Exit; //==>
Clear;
- FLines.LoadFromFile(AFileName);
+ FLines.LoadFromFile(fpgToOSEncoding(AFileName));
HandleResize(Width, Height);
Invalidate;
end;
diff --git a/examples/apps/ide/src/frm_main.pas b/examples/apps/ide/src/frm_main.pas
index 6ef73f50..fe903c31 100644
--- a/examples/apps/ide/src/frm_main.pas
+++ b/examples/apps/ide/src/frm_main.pas
@@ -168,7 +168,7 @@ uses
,UnitList
,BuilderThread
{$IFDEF DEBUGSVR}
- ,dbugintf
+ ,fpg_dbugintf
{$ENDIF}
,ideutils
;
@@ -856,7 +856,7 @@ const
+ '|xor|repeat|until|constref|stdcall|cdecl|external|generic|specialize)\b';
cComments1 = '(\s*\/\/.*$)|(\{[^\{]*\})';
- cComments2 = '\{[^\{]*\}';
+ cComments2 = '\{[^\$][^\{]*\}';
cDefines1 = '\{\$[^\{]*\}';
@@ -892,6 +892,7 @@ begin
if not Assigned(FKeywordFont) then
FKeywordFont := fpgGetFont(edt.FontDesc + ':bold');
ACanvas.Font := FKeywordFont;
+ ACanvas.Color := clWhite;
FRegex.Expression := cKeywords1;
FRegex.ModifierI := True;
if FRegex.Exec(ALineText) then
@@ -912,6 +913,7 @@ begin
{ syntax highlighting for: cDecimal }
ACanvas.TextColor := clNavy;
+ ACanvas.Color := clWhite;
FRegex.Expression := cDecimal;
if FRegex.Exec(ALineText) then
begin
@@ -929,6 +931,7 @@ begin
{ syntax highlighting for: cHexadecimal }
ACanvas.TextColor := clMagenta;
+ ACanvas.Color := clWhite;
FRegex.Expression := cHexadecimal;
if FRegex.Exec(ALineText) then
begin
@@ -946,6 +949,7 @@ begin
{ syntax highlighting for: comments2 }
ACanvas.TextColor := clDarkCyan;
+ ACanvas.Color := clWhite;
FRegex.Expression := cComments2;
if FRegex.Exec(ALineText) then
begin
@@ -963,6 +967,7 @@ begin
{ syntax highlighting for: cDefines1 }
ACanvas.TextColor := clRed;
+ ACanvas.Color := clWhite;
FRegex.Expression := cDefines1;
if FRegex.Exec(ALineText) then
begin
@@ -980,6 +985,7 @@ begin
{ syntax highlighting for: cString1 }
ACanvas.TextColor := clOlive;
+ ACanvas.Color := clWhite;
FRegex.Expression := cString1;
if FRegex.Exec(ALineText) then
begin
@@ -997,6 +1003,7 @@ begin
{ syntax highlighting for: comments1 }
ACanvas.TextColor := clDarkCyan;
+ ACanvas.Color := clWhite;
FRegex.Expression := cComments1;
if FRegex.Exec(ALineText) then
begin
diff --git a/examples/apps/ide/src/maximus.lpi b/examples/apps/ide/src/maximus.lpi
index 5d3e289a..accb3570 100644
--- a/examples/apps/ide/src/maximus.lpi
+++ b/examples/apps/ide/src/maximus.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
diff --git a/examples/apps/ide/src/maximus.lpr b/examples/apps/ide/src/maximus.lpr
index 1f758a43..cf9c439f 100644
--- a/examples/apps/ide/src/maximus.lpr
+++ b/examples/apps/ide/src/maximus.lpr
@@ -22,10 +22,29 @@ uses
{$IFDEF UNIX}
cthreads,
{$ENDIF}
- Classes, fpg_base, fpg_main, frm_main, frm_configureide, ideconst, idemacros,
- frm_debug, project, unitlist, frm_projectoptions, ideutils, builderthread,
- ideimages, stringhelpers, frm_procedurelist, mPasLex, filemonitor, SynRegExpr,
- fpg_textedit, frm_find, Sha1;
+ Classes,
+ fpg_base,
+ fpg_main,
+ fpg_cmdlineparams,
+ frm_main,
+ frm_configureide,
+ ideconst,
+ idemacros,
+ frm_debug,
+ project,
+ unitlist,
+ frm_projectoptions,
+ ideutils,
+ builderthread,
+ ideimages,
+ stringhelpers,
+ frm_procedurelist,
+ mPasLex,
+ filemonitor,
+ SynRegExpr,
+ fpg_textedit,
+ frm_find,
+ Sha1;
procedure MainProc;
diff --git a/examples/apps/nanoedit/extrafpc.cfg b/examples/apps/nanoedit/extrafpc.cfg
index 97a53282..8fdb5d9b 100644
--- a/examples/apps/nanoedit/extrafpc.cfg
+++ b/examples/apps/nanoedit/extrafpc.cfg
@@ -4,3 +4,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/apps/nanoedit/mainfrm.pas b/examples/apps/nanoedit/mainfrm.pas
index 5cece909..f652e179 100644
--- a/examples/apps/nanoedit/mainfrm.pas
+++ b/examples/apps/nanoedit/mainfrm.pas
@@ -40,6 +40,7 @@ type
procedure miPasteClicked(Sender: TObject);
procedure btnGOClick(Sender: TObject);
procedure memEditorChanged(Sender: TObject);
+ procedure UpdateStatus(const AMessage: TfpgString);
public
procedure AfterCreate; override;
end;
@@ -67,7 +68,7 @@ begin
s := StringReplace(s, 'file://', '', []);
memEditor.LoadFromFile(s);
FFilename := s;
- lblStatusText.Text := FFilename;
+ UpdateStatus(FFilename);
end;
end;
@@ -79,8 +80,9 @@ begin
try
if dlg.RunOpenFile then
begin
- memEditor.Lines.LoadFromFile(dlg.FileName);
+ memEditor.LoadFromFile(dlg.FileName);
FFileName := dlg.FileName;
+ UpdateStatus(FFileName);
end;
finally
dlg.Free;
@@ -97,7 +99,8 @@ begin
dlg.FileName := FFilename;
if dlg.RunSaveFile then
begin
- memEditor.Lines.SaveToFile(dlg.FileName);
+ memEditor.SaveToFile(dlg.FileName);
+ UpdateStatus(Format('<%s> successfully saved.', [FFileName]));
end;
finally
dlg.Free;
@@ -116,7 +119,7 @@ begin
begin
memEditor.Lines.SaveToFile(dlg.FileName);
FFilename := dlg.FileName;
- lblStatusText.Text := FFilename;
+ UpdateStatus(Format('<%s> successfully saved.', [FFileName]));
end;
finally
dlg.Free;
@@ -223,6 +226,11 @@ begin
}
end;
+procedure TMainForm.UpdateStatus(const AMessage: TfpgString);
+begin
+ lblStatusText.Text := AMessage;
+end;
+
procedure TMainForm.AfterCreate;
begin
{@VFD_BODY_BEGIN: MainFrom}
diff --git a/examples/corelib/aggcanvas/agg_canvas_test.lpr b/examples/corelib/aggcanvas/agg_canvas_test.lpr
index 63ba1d53..3b3a75ef 100644
--- a/examples/corelib/aggcanvas/agg_canvas_test.lpr
+++ b/examples/corelib/aggcanvas/agg_canvas_test.lpr
@@ -202,6 +202,10 @@ begin
Canvas.SetLineStyle(1, lsSolid);
Canvas.FillRectangle(r);
+ // Draw filled triangle
+ Canvas.Color := clOrange;
+ Canvas.FillTriangle(200, 150, 175, 175, 275, 175);
+
// Testing line drawing
ac.NoFill;
Canvas.SetColor(clBlue);
@@ -262,7 +266,7 @@ begin
Canvas.DrawString(45, y, 'DrawControlFrame():');
y := y + Canvas.Font.Height;
- Canvas.DrawControlFrame(5, y, 150, 23);
+ fpgStyle.DrawControlFrame(Canvas, 5, y, 150, 23);
// A Vector Text example
//----------------------
diff --git a/examples/corelib/aggcanvas/extrafpc.cfg b/examples/corelib/aggcanvas/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/corelib/aggcanvas/extrafpc.cfg
+++ b/examples/corelib/aggcanvas/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/corelib/canvastest/extrafpc.cfg b/examples/corelib/canvastest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/corelib/canvastest/extrafpc.cfg
+++ b/examples/corelib/canvastest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/corelib/eventtest/extrafpc.cfg b/examples/corelib/eventtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/corelib/eventtest/extrafpc.cfg
+++ b/examples/corelib/eventtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/corelib/helloworld/extrafpc.cfg b/examples/corelib/helloworld/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/corelib/helloworld/extrafpc.cfg
+++ b/examples/corelib/helloworld/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/alignment/aligntest.lpi b/examples/gui/alignment/aligntest.lpi
index 586b7b90..2062f69a 100644
--- a/examples/gui/alignment/aligntest.lpi
+++ b/examples/gui/alignment/aligntest.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,13 +40,21 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="aligntest"/>
+ </Target>
<SearchPaths>
- <IncludeFiles Value="../src/"/>
- <OtherUnitFiles Value="../src/"/>
+ <IncludeFiles Value="../src"/>
+ <OtherUnitFiles Value="../src"/>
+ <UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/alignment/extrafpc.cfg b/examples/gui/alignment/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/alignment/extrafpc.cfg
+++ b/examples/gui/alignment/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/alignment_resize/alignment_resize.lpi b/examples/gui/alignment_resize/alignment_resize.lpi
index e22fcc29..4bf13dfd 100644
--- a/examples/gui/alignment_resize/alignment_resize.lpi
+++ b/examples/gui/alignment_resize/alignment_resize.lpi
@@ -1,21 +1,22 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
<Title Value="alignment_resize"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -43,9 +44,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="alignment_resize"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/alignment_resize/extrafpc.cfg b/examples/gui/alignment_resize/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/alignment_resize/extrafpc.cfg
+++ b/examples/gui/alignment_resize/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/animation/anim_test.lpi b/examples/gui/animation/anim_test.lpi
index 16a03599..4db5823a 100644
--- a/examples/gui/animation/anim_test.lpi
+++ b/examples/gui/animation/anim_test.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=".elf"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -40,9 +42,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="anim_test"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/animation/extrafpc.cfg b/examples/gui/animation/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/animation/extrafpc.cfg
+++ b/examples/gui/animation/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/bevel/beveltest.lpi b/examples/gui/bevel/beveltest.lpi
index 2486d074..36486204 100644
--- a/examples/gui/bevel/beveltest.lpi
+++ b/examples/gui/bevel/beveltest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,9 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="beveltest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/bevel/extrafpc.cfg b/examples/gui/bevel/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/bevel/extrafpc.cfg
+++ b/examples/gui/bevel/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/calendar/calendartest.lpi b/examples/gui/calendar/calendartest.lpi
index 20afc9c1..ccc474ab 100644
--- a/examples/gui/calendar/calendartest.lpi
+++ b/examples/gui/calendar/calendartest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,14 +41,20 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="calendartest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<CStyleOperator Value="False"/>
+ <UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/calendar/extrafpc.cfg b/examples/gui/calendar/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/calendar/extrafpc.cfg
+++ b/examples/gui/calendar/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/colorlistbox/colorlistboxtest.lpi b/examples/gui/colorlistbox/colorlistboxtest.lpi
index b74ec22a..04703732 100644
--- a/examples/gui/colorlistbox/colorlistboxtest.lpi
+++ b/examples/gui/colorlistbox/colorlistboxtest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,12 +9,14 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<Title Value="colorlistboxtest"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -46,12 +48,22 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="colorlistboxtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Linking>
<LinkSmart Value="True"/>
</Linking>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/colorlistbox/extrafpc.cfg b/examples/gui/colorlistbox/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/colorlistbox/extrafpc.cfg
+++ b/examples/gui/colorlistbox/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/colorwheel/colorwheel_test.lpi b/examples/gui/colorwheel/colorwheel_test.lpi
index 41da8416..3ad6b196 100644
--- a/examples/gui/colorwheel/colorwheel_test.lpi
+++ b/examples/gui/colorwheel/colorwheel_test.lpi
@@ -1,20 +1,22 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<Title Value="colorwheel_test"/>
<UseAppBundle Value="False"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -46,19 +48,23 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="colorwheel_test"/>
+ </Target>
<SearchPaths>
- <IncludeFiles Value="$(ProjOutDir)/"/>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <UnitOutputDirectory Value="units"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<CStyleOperator Value="False"/>
<AllowLabel Value="False"/>
<CPPInline Value="False"/>
+ <UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/colorwheel/extrafpc.cfg b/examples/gui/colorwheel/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/colorwheel/extrafpc.cfg
+++ b/examples/gui/colorwheel/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/colorwheel/frm_main.pas b/examples/gui/colorwheel/frm_main.pas
index 63518360..3633b740 100644
--- a/examples/gui/colorwheel/frm_main.pas
+++ b/examples/gui/colorwheel/frm_main.pas
@@ -67,14 +67,14 @@ end;
procedure TMainForm.RGBChanged(Sender: TObject);
var
- rgb: TFPColor;
+ rgb: TRGBTriple;
c: TfpgColor;
begin
FViaRGB := True; // revent recursive updates
rgb.Red := StrToInt(edR.Text);
rgb.Green := StrToInt(edG.Text);
rgb.Blue := StrToInt(edB.Text);
- c := FPColorTofpgColor(rgb);
+ c := RGBTripleTofpgColor(rgb);
ColorWheel1.SetSelectedColor(c); // This will trigger ColorWheel and ValueBar OnChange event
FViaRGB := False;
end;
@@ -122,11 +122,11 @@ end;
procedure TMainForm.UpdateRGBComponents;
var
- rgb: TFPColor;
+ rgb: TRGBTriple;
c: TfpgColor;
begin
c := ValueBar1.SelectedColor;
- rgb := fpgColorToFPColor(c);
+ rgb := fpgColorToRGBTriple(c);
edR.Text := IntToStr(rgb.Red);
edG.Text := IntToStr(rgb.Green);
edB.Text := IntToStr(rgb.Blue);
diff --git a/examples/gui/combobox/comboboxtest.lpi b/examples/gui/combobox/comboboxtest.lpi
index 41f6ae73..2163619a 100644
--- a/examples/gui/combobox/comboboxtest.lpi
+++ b/examples/gui/combobox/comboboxtest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -50,13 +52,20 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="comboboxtest"/>
+ </Target>
<SearchPaths>
- <OtherUnitFiles Value="../common/"/>
+ <OtherUnitFiles Value="../common"/>
+ <UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/combobox/extrafpc.cfg b/examples/gui/combobox/extrafpc.cfg
index 07f6831a..89eafa99 100644
--- a/examples/gui/combobox/extrafpc.cfg
+++ b/examples/gui/combobox/extrafpc.cfg
@@ -4,3 +4,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/combobox/frm_main.pas b/examples/gui/combobox/frm_main.pas
index e1a293df..6471963d 100644
--- a/examples/gui/combobox/frm_main.pas
+++ b/examples/gui/combobox/frm_main.pas
@@ -5,12 +5,18 @@ unit frm_main;
interface
uses
- SysUtils, Classes, fpg_base, fpg_main, fpg_edit,
- fpg_widget, fpg_form, fpg_label, fpg_button,
- fpg_listbox, fpg_memo, fpg_combobox, fpg_basegrid, fpg_grid,
- fpg_dialogs, fpg_checkbox, fpg_tree, fpg_trackbar,
- fpg_progressbar, fpg_radiobutton, fpg_tab, fpg_menu,
- fpg_panel, fpg_popupcalendar, fpg_gauge, fpg_editcombo;
+ SysUtils,
+ Classes,
+ fpg_base,
+ fpg_main,
+ fpg_form,
+ fpg_label,
+ fpg_button,
+ fpg_combobox,
+ fpg_checkbox,
+ fpg_radiobutton,
+ fpg_panel,
+ fpg_editcombo;
type
diff --git a/examples/gui/command_interface/extrafpc.cfg b/examples/gui/command_interface/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/command_interface/extrafpc.cfg
+++ b/examples/gui/command_interface/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/command_interface/test.lpi b/examples/gui/command_interface/test.lpi
index da19eca5..cf714b52 100644
--- a/examples/gui/command_interface/test.lpi
+++ b/examples/gui/command_interface/test.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -50,7 +51,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="command_interface_test"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
diff --git a/examples/gui/customstyles/customstyles.lpi b/examples/gui/customstyles/customstyles.lpi
index b2996aeb..36fef016 100644
--- a/examples/gui/customstyles/customstyles.lpi
+++ b/examples/gui/customstyles/customstyles.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -52,7 +52,13 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="customstyles_test"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<CStyleOperator Value="False"/>
@@ -73,7 +79,6 @@
<CompilerMessages>
<UseMsgFile Value="True"/>
</CompilerMessages>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/customstyles/customstyles.lpr b/examples/gui/customstyles/customstyles.lpr
index 419e6456..16b00ac8 100644
--- a/examples/gui/customstyles/customstyles.lpr
+++ b/examples/gui/customstyles/customstyles.lpr
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Toolkit
- Copyright (C) 2006 - 2011 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2013 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -25,7 +25,6 @@
quotes.
}
-
program customstyles;
{$mode objfpc}{$H+}
diff --git a/examples/gui/customstyles/extrafpc.cfg b/examples/gui/customstyles/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/customstyles/extrafpc.cfg
+++ b/examples/gui/customstyles/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/customstyles/frm_test.pas b/examples/gui/customstyles/frm_test.pas
index 6eb30b35..1cefa10a 100644
--- a/examples/gui/customstyles/frm_test.pas
+++ b/examples/gui/customstyles/frm_test.pas
@@ -1,3 +1,20 @@
+{
+ fpGUI - Free Pascal GUI Toolkit
+
+ Copyright (C) 2006 - 2013 See the file AUTHORS.txt, included in this
+ distribution, for details of the copyright.
+
+ See the file COPYING.modifiedLGPL, included in this distribution,
+ for details about redistributing fpGUI.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ Description:
+ Demo form showing some widgets in different states, and how the themes
+ paint them.
+}
unit frm_test;
{$mode objfpc}{$H+}
@@ -5,8 +22,16 @@ unit frm_test;
interface
uses
- SysUtils, Classes, fpg_base, fpg_main, fpg_widget,
- fpg_form, fpg_edit, fpg_label, fpg_button, fpg_menu,
+ SysUtils,
+ Classes,
+ fpg_base,
+ fpg_main,
+ fpg_widget,
+ fpg_form,
+ fpg_edit,
+ fpg_label,
+ fpg_button,
+ fpg_menu,
fpg_memo;
type
@@ -33,6 +58,7 @@ type
Label1: TfpgLabel;
{@VFD_HEAD_END: TestForm}
procedure CloseClicked(Sender: TObject);
+ procedure HelpAboutClicked(Sender: TObject);
public
procedure AfterCreate; override;
end;
@@ -42,7 +68,8 @@ type
implementation
uses
- fpg_stylemanager;
+ fpg_stylemanager,
+ fpg_dialogs;
{@VFD_NEWFORM_IMPL}
@@ -51,6 +78,11 @@ begin
Close;
end;
+procedure TTestForm.HelpAboutClicked(Sender: TObject);
+begin
+ TfpgMessageDialog.AboutFPGui('');
+end;
+
procedure TTestForm.AfterCreate;
var
miSubMenu: TfpgMenuItem;
@@ -198,7 +230,7 @@ begin
AddMenuItem('-', '', nil);
AddMenuItem('Save && Reload', '', nil);
AddMenuItem('-', '', nil);
- AddMenuItem('&Quit', 'Ctrl+Q', nil);
+ AddMenuItem('&Quit', 'Ctrl+Q', @CloseClicked);
end;
pmEdit := TfpgPopupMenu.Create(self);
@@ -219,7 +251,7 @@ begin
begin
Name := 'pmHelp';
SetPosition(204, 196, 120, 24);
- AddMenuItem('About...', '', nil);
+ AddMenuItem('About...', '', @HelpAboutClicked);
end;
pmSubMenu1 := TfpgPopupMenu.Create(self);
diff --git a/examples/gui/customstyles/mystyle.pas b/examples/gui/customstyles/mystyle.pas
index 665a22b0..8ca00d33 100644
--- a/examples/gui/customstyles/mystyle.pas
+++ b/examples/gui/customstyles/mystyle.pas
@@ -1,4 +1,4 @@
-{
+(*
A very quick and basic style implementation. It took all of 10 minutes.
To apply this style, follow these instructions:
@@ -31,7 +31,7 @@
end;
end;
-}
+*)
unit mystyle;
{$mode objfpc}{$H+}
diff --git a/examples/gui/dbtest/dbtest.lpi b/examples/gui/dbtest/dbtest.lpi
index a7c9efb9..b9934e9e 100644
--- a/examples/gui/dbtest/dbtest.lpi
+++ b/examples/gui/dbtest/dbtest.lpi
@@ -1,22 +1,23 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
<MainUnitHasCreateFormStatements Value="False"/>
<MainUnitHasTitleStatement Value="False"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -47,16 +48,21 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="dbtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<AllowLabel Value="False"/>
<CPPInline Value="False"/>
+ <UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/dbtest/extrafpc.cfg b/examples/gui/dbtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/dbtest/extrafpc.cfg
+++ b/examples/gui/dbtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/drag_n_drop/dndexample.lpi b/examples/gui/drag_n_drop/dndexample.lpi
index 758b5887..8c0df33d 100644
--- a/examples/gui/drag_n_drop/dndexample.lpi
+++ b/examples/gui/drag_n_drop/dndexample.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -46,7 +46,7 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
<Target>
<Filename Value="dndexample"/>
</Target>
diff --git a/examples/gui/drag_n_drop/dndexample.lpr b/examples/gui/drag_n_drop/dndexample.lpr
index 13dda563..c95b97d0 100644
--- a/examples/gui/drag_n_drop/dndexample.lpr
+++ b/examples/gui/drag_n_drop/dndexample.lpr
@@ -81,7 +81,6 @@ procedure TMainForm.Bevel1DragEnter(Sender, Source: TObject;
AMimeList: TStringList; var AMimeChoice: TfpgString;
var ADropAction: TfpgDropAction; var Accept: Boolean);
var
- i: integer;
s: string;
begin
{ the mime type we want to accept }
@@ -108,7 +107,6 @@ procedure TMainForm.PanelDragDrop(Sender, Source: TObject; X, Y: integer;
AData: Variant);
var
s: string;
- v: variant;
begin
s := AData;
Bevel1.Text := Format('Drop event at (%d,%d) with value(s):'+LineEnding+'%s', [X, Y, s]);
@@ -129,7 +127,6 @@ procedure TMainForm.LabelDragStartDetected(Sender: TObject);
var
m: TfpgMimeData;
d: TfpgDrag;
- v: variant;
begin
m := TfpgMimeData.Create;
diff --git a/examples/gui/drag_n_drop/extrafpc.cfg b/examples/gui/drag_n_drop/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/drag_n_drop/extrafpc.cfg
+++ b/examples/gui/drag_n_drop/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/edits/edittest.lpi b/examples/gui/edits/edittest.lpi
index f10feccd..be69faf9 100644
--- a/examples/gui/edits/edittest.lpi
+++ b/examples/gui/edits/edittest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -40,9 +42,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="edittest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/edits/extrafpc.cfg b/examples/gui/edits/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/edits/extrafpc.cfg
+++ b/examples/gui/edits/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/embedded_form/demo1.lpi b/examples/gui/embedded_form/demo1.lpi
index f6200396..de9bb9a3 100644
--- a/examples/gui/embedded_form/demo1.lpi
+++ b/examples/gui/embedded_form/demo1.lpi
@@ -1,19 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<UseAppBundle Value="False"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -50,12 +52,20 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="embedded_form_test"/>
+ </Target>
<SearchPaths>
- <IncludeFiles Value="$(ProjOutDir)/"/>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/embedded_form/extrafpc.cfg b/examples/gui/embedded_form/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/embedded_form/extrafpc.cfg
+++ b/examples/gui/embedded_form/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/embedded_form/frm_main.pas b/examples/gui/embedded_form/frm_main.pas
index 785247c9..e2fb0f0e 100644
--- a/examples/gui/embedded_form/frm_main.pas
+++ b/examples/gui/embedded_form/frm_main.pas
@@ -56,6 +56,7 @@ var
var
j: integer;
begin
+ Result := '';
if indent = 0 then
exit;
for j := 1 to indent do
diff --git a/examples/gui/filedialog/extrafpc.cfg b/examples/gui/filedialog/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/filedialog/extrafpc.cfg
+++ b/examples/gui/filedialog/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/filedialog/filedialog.lpi b/examples/gui/filedialog/filedialog.lpi
index 2291e3f1..872cf6e3 100644
--- a/examples/gui/filedialog/filedialog.lpi
+++ b/examples/gui/filedialog/filedialog.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,10 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="filedialog"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/filedialog/filedialog.lpr b/examples/gui/filedialog/filedialog.lpr
index e1dca3d7..315b7885 100644
--- a/examples/gui/filedialog/filedialog.lpr
+++ b/examples/gui/filedialog/filedialog.lpr
@@ -105,6 +105,7 @@ procedure TMainForm.btnUserInputClicked(Sender: TObject);
var
lAnswer: TfpgString;
begin
+ lAnswer := '';
if fpgInputQuery('Caption here', 'And the prompt goes here', lAnswer) then
ShowMessage(Format('User entered <%s>', [lAnswer]));
end;
diff --git a/examples/gui/filegrid/extrafpc.cfg b/examples/gui/filegrid/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/filegrid/extrafpc.cfg
+++ b/examples/gui/filegrid/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/filegrid/filegrid.lpi b/examples/gui/filegrid/filegrid.lpi
index 1fc73d24..74fb0d20 100644
--- a/examples/gui/filegrid/filegrid.lpi
+++ b/examples/gui/filegrid/filegrid.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,10 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="filegrid"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/fontselect/extrafpc.cfg b/examples/gui/fontselect/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/fontselect/extrafpc.cfg
+++ b/examples/gui/fontselect/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/fontselect/fontselect.lpi b/examples/gui/fontselect/fontselect.lpi
index 74eb6b4d..a23797f7 100644
--- a/examples/gui/fontselect/fontselect.lpi
+++ b/examples/gui/fontselect/fontselect.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,10 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="fontselect"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/gauges/extrafpc.cfg b/examples/gui/gauges/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/gauges/extrafpc.cfg
+++ b/examples/gui/gauges/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/gauges/gaugetest.lpi b/examples/gui/gauges/gaugetest.lpi
index 731e6f4d..899f99cd 100644
--- a/examples/gui/gauges/gaugetest.lpi
+++ b/examples/gui/gauges/gaugetest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=".exe"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -38,16 +40,21 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="gaugetest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<AllowLabel Value="False"/>
<CPPInline Value="False"/>
+ <UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/gridediting/extrafpc.cfg b/examples/gui/gridediting/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/gridediting/extrafpc.cfg
+++ b/examples/gui/gridediting/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/gridediting/gridediting.lpi b/examples/gui/gridediting/gridediting.lpi
index 13caff41..dba84086 100644
--- a/examples/gui/gridediting/gridediting.lpi
+++ b/examples/gui/gridediting/gridediting.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -16,6 +16,9 @@
<VersionInfo>
<StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -46,12 +49,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="gridediting"/>
+ </Target>
+ <SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Other>
<CompilerMessages>
<UseMsgFile Value="True"/>
</CompilerMessages>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/gridtest/gridtest.lpi b/examples/gui/gridtest/gridtest.lpi
index 8d6de301..a02b0697 100644
--- a/examples/gui/gridtest/gridtest.lpi
+++ b/examples/gui/gridtest/gridtest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="8"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,15 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="gridtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/gridtest/gridtest.lpr b/examples/gui/gridtest/gridtest.lpr
index 465281b2..173806e9 100644
--- a/examples/gui/gridtest/gridtest.lpr
+++ b/examples/gui/gridtest/gridtest.lpr
@@ -16,7 +16,8 @@ uses
fpg_button,
fpg_checkbox,
fpg_tab,
- fpg_edit;
+ fpg_edit,
+ fpg_dialogs;
type
@@ -42,6 +43,7 @@ type
chkSmoothScroll: TfpgCheckBox;
chkAlterColor: TfpgCheckBox;
{@VFD_HEAD_END: MainForm}
+ procedure StringGridHeaderClicked(Sender: TObject; ACol: Integer);
procedure StringGridDoubleClicked(Sender: TObject; AButton: TMouseButton; AShift: TShiftState; const AMousePos: TPoint);
procedure btnAddFiveClicked(Sender: TObject);
procedure btnAddOneClicked(Sender: TObject);
@@ -66,6 +68,11 @@ type
{ TMainForm }
+procedure TMainForm.StringGridHeaderClicked(Sender: TObject; ACol: Integer);
+begin
+ ShowMessage(Format('column %d clicked', [ACol]));
+end;
+
procedure TMainForm.StringGridDoubleClicked(Sender: TObject;
AButton: TMouseButton; AShift: TShiftState; const AMousePos: TPoint);
var
@@ -92,7 +99,8 @@ end;
procedure TMainForm.btnDelRowClicked(Sender: TObject);
begin
- stringgrid.DeleteRow(stringgrid.FocusRow);
+ if StringGrid.RowCount > 0 then
+ stringgrid.DeleteRow(stringgrid.FocusRow);
end;
procedure TMainForm.chkDisabledChange(Sender: TObject);
@@ -219,6 +227,9 @@ begin
AddColumn('Column 1', 100, taLeftJustify);
AddColumn('Col 2', 50, taCenter);
AddColumn('Numbers', 150, taRightJustify);
+ AddColumn('Column 4', 150, taRightJustify);
+ AddColumn('Column 5', 150, taRightJustify);
+ AddColumn('Column 6', 150, taRightJustify);
FontDesc := '#Grid';
HeaderFontDesc := '#GridHeader';
Hint := '';
@@ -244,6 +255,7 @@ begin
// Add custom painting
OnDrawCell := @StringGridDrawCell;
OnDoubleClick := @StringGridDoubleClicked;
+ OnHeaderClick := @StringGridHeaderClicked;
end;
chkShowHeader := TfpgCheckBox.Create(self);
diff --git a/examples/gui/hintwindow/extrafpc.cfg b/examples/gui/hintwindow/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/hintwindow/extrafpc.cfg
+++ b/examples/gui/hintwindow/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/hintwindow/hintwindowtest.lpi b/examples/gui/hintwindow/hintwindowtest.lpi
index eef2ca11..ecb49472 100644
--- a/examples/gui/hintwindow/hintwindowtest.lpi
+++ b/examples/gui/hintwindow/hintwindowtest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,12 +9,14 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<Title Value="hintwindowtest"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,9 +42,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="hintwindowtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/imgtest/bitmaptest.lpi b/examples/gui/imgtest/bitmaptest.lpi
index ec9a5f70..f10675d4 100644
--- a/examples/gui/imgtest/bitmaptest.lpi
+++ b/examples/gui/imgtest/bitmaptest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,12 +9,14 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<Title Value="bitmaptest"/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,14 +42,21 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="bitmaptest"/>
+ </Target>
<SearchPaths>
- <IncludeFiles Value="../source/"/>
- <OtherUnitFiles Value="../source/;../source/x11/;../gui/"/>
+ <IncludeFiles Value="../source"/>
+ <OtherUnitFiles Value="../source;../source/x11;../gui"/>
+ <UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/imgtest/extrafpc.cfg b/examples/gui/imgtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/imgtest/extrafpc.cfg
+++ b/examples/gui/imgtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/imgtest_jpeg/extrafpc.cfg b/examples/gui/imgtest_jpeg/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/imgtest_jpeg/extrafpc.cfg
+++ b/examples/gui/imgtest_jpeg/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/imgtest_jpeg/jpeg.lpi b/examples/gui/imgtest_jpeg/jpeg.lpi
index 6b0fc630..bd592bfe 100644
--- a/examples/gui/imgtest_jpeg/jpeg.lpi
+++ b/examples/gui/imgtest_jpeg/jpeg.lpi
@@ -1,25 +1,26 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
<MainUnitHasCreateFormStatements Value="False"/>
<MainUnitHasTitleStatement Value="False"/>
- <UseDefaultCompilerOptions Value="True"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<UseAppBundle Value="False"/>
<ResourceType Value="res"/>
</General>
<VersionInfo>
<Language Value=""/>
<CharSet Value=""/>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -50,15 +51,14 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="jpegtest"/>
+ </Target>
<SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="units"/>
</SearchPaths>
- <Parsing>
- <SyntaxOptions>
- <UseAnsiStrings Value="True"/>
- </SyntaxOptions>
- </Parsing>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
diff --git a/examples/gui/listbox/extrafpc.cfg b/examples/gui/listbox/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/listbox/extrafpc.cfg
+++ b/examples/gui/listbox/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/listbox/frm_main.pas b/examples/gui/listbox/frm_main.pas
index 1c858112..cacc604f 100644
--- a/examples/gui/listbox/frm_main.pas
+++ b/examples/gui/listbox/frm_main.pas
@@ -5,13 +5,15 @@ unit frm_main;
interface
uses
- SysUtils, Classes,
- fpg_base, fpg_main, fpg_edit,
- fpg_widget, fpg_form, fpg_label, fpg_button,
- fpg_listbox, fpg_memo, fpg_combobox, fpg_basegrid, fpg_grid,
- fpg_dialogs, fpg_checkbox, fpg_tree, fpg_trackbar,
- fpg_progressbar, fpg_radiobutton, fpg_tab, fpg_menu,
- fpg_panel, fpg_popupcalendar, fpg_gauge;
+ SysUtils,
+ Classes,
+ fpg_base,
+ fpg_main,
+ fpg_form,
+ fpg_button,
+ fpg_listbox,
+ fpg_memo,
+ fpg_checkbox;
type
diff --git a/examples/gui/listbox/listboxtest.lpi b/examples/gui/listbox/listboxtest.lpi
index e745c4da..17170ebf 100644
--- a/examples/gui/listbox/listboxtest.lpi
+++ b/examples/gui/listbox/listboxtest.lpi
@@ -1,19 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -45,9 +47,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="listboxtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/listviewtest/extrafpc.cfg b/examples/gui/listviewtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/listviewtest/extrafpc.cfg
+++ b/examples/gui/listviewtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/listviewtest/listviewtest.lpi b/examples/gui/listviewtest/listviewtest.lpi
index e8537f5b..50579565 100644
--- a/examples/gui/listviewtest/listviewtest.lpi
+++ b/examples/gui/listviewtest/listviewtest.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -41,7 +41,13 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="listviewtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
diff --git a/examples/gui/memo/extrafpc.cfg b/examples/gui/memo/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/memo/extrafpc.cfg
+++ b/examples/gui/memo/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/memo/memotest.lpi b/examples/gui/memo/memotest.lpi
index 0102fcfc..12046720 100644
--- a/examples/gui/memo/memotest.lpi
+++ b/examples/gui/memo/memotest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -40,10 +42,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="memotest"/>
+ </Target>
<SearchPaths>
<UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
diff --git a/examples/gui/menutest/extrafpc.cfg b/examples/gui/menutest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/menutest/extrafpc.cfg
+++ b/examples/gui/menutest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/menutest/menutest.lpi b/examples/gui/menutest/menutest.lpi
index c3120df3..579cbc7c 100644
--- a/examples/gui/menutest/menutest.lpi
+++ b/examples/gui/menutest/menutest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="8"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,7 +41,13 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="menutest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
@@ -47,7 +55,7 @@
</Parsing>
<Linking>
<Debugging>
- <GenerateDebugInfo Value="True"/>
+ <DebugInfoType Value="dsStabs"/>
</Debugging>
<Options>
<Win32>
@@ -56,8 +64,6 @@
</Options>
</Linking>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/modalforms/extrafpc.cfg b/examples/gui/modalforms/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/modalforms/extrafpc.cfg
+++ b/examples/gui/modalforms/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/modalforms/modalforms.lpi b/examples/gui/modalforms/modalforms.lpi
index 7f6f526a..cc8137c8 100644
--- a/examples/gui/modalforms/modalforms.lpi
+++ b/examples/gui/modalforms/modalforms.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,9 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="modalformstests"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/mousecursor/cursordemo.lpi b/examples/gui/mousecursor/cursordemo.lpi
index 7aea18fa..d3e71ef7 100644
--- a/examples/gui/mousecursor/cursordemo.lpi
+++ b/examples/gui/mousecursor/cursordemo.lpi
@@ -1,23 +1,25 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
</Flags>
<SessionStorage Value="None"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
<Title Value="cursordemo"/>
<UseAppBundle Value="False"/>
<ResourceType Value="res"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
<Language Value=""/>
<CharSet Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -44,15 +46,14 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="cursordemo"/>
+ </Target>
<SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="units"/>
</SearchPaths>
- <Parsing>
- <SyntaxOptions>
- <UseAnsiStrings Value="True"/>
- </SyntaxOptions>
- </Parsing>
<Linking>
<Options>
<Win32>
diff --git a/examples/gui/mousecursor/extrafpc.cfg b/examples/gui/mousecursor/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/mousecursor/extrafpc.cfg
+++ b/examples/gui/mousecursor/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/panel/extrafpc.cfg b/examples/gui/panel/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/panel/extrafpc.cfg
+++ b/examples/gui/panel/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/panel/panel_test.lpi b/examples/gui/panel/panel_test.lpi
index 89378ec4..dc519cb0 100644
--- a/examples/gui/panel/panel_test.lpi
+++ b/examples/gui/panel/panel_test.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -45,9 +46,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="panel_test"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/reporting/extrafpc.cfg b/examples/gui/reporting/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/reporting/extrafpc.cfg
+++ b/examples/gui/reporting/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/reporting/pdf_demo.lpi b/examples/gui/reporting/pdf_demo.lpi
index 57598cef..9af69bbd 100644
--- a/examples/gui/reporting/pdf_demo.lpi
+++ b/examples/gui/reporting/pdf_demo.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
diff --git a/examples/gui/scrollframe/bigframe_test.lpi b/examples/gui/scrollframe/bigframe_test.lpi
new file mode 100644
index 00000000..ee242841
--- /dev/null
+++ b/examples/gui/scrollframe/bigframe_test.lpi
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CONFIG>
+ <ProjectOptions>
+ <Version Value="9"/>
+ <General>
+ <Flags>
+ <MainUnitHasCreateFormStatements Value="False"/>
+ <MainUnitHasTitleStatement Value="False"/>
+ </Flags>
+ <SessionStorage Value="InProjectDir"/>
+ <MainUnit Value="0"/>
+ <Title Value="bigframe_test"/>
+ <UseAppBundle Value="False"/>
+ <ResourceType Value="res"/>
+ </General>
+ <i18n>
+ <EnableI18N LFM="False"/>
+ </i18n>
+ <VersionInfo>
+ <StringTable ProductVersion=""/>
+ </VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="Default" Default="True"/>
+ </BuildModes>
+ <PublishOptions>
+ <Version Value="2"/>
+ <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
+ <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/>
+ </PublishOptions>
+ <RunParams>
+ <local>
+ <FormatVersion Value="1"/>
+ <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
+ </local>
+ </RunParams>
+ <RequiredPackages Count="1">
+ <Item1>
+ <PackageName Value="fpgui_toolkit"/>
+ </Item1>
+ </RequiredPackages>
+ <Units Count="1">
+ <Unit0>
+ <Filename Value="bigframe_test.lpr"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="bigframe_test"/>
+ </Unit0>
+ </Units>
+ </ProjectOptions>
+ <CompilerOptions>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="bigframe_test"/>
+ </Target>
+ <SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <UnitOutputDirectory Value="units/$(TargetCPU)-$(TargetOS)"/>
+ </SearchPaths>
+ <Other>
+ <CompilerMessages>
+ <MsgFileName Value=""/>
+ </CompilerMessages>
+ <CompilerPath Value="$(CompPath)"/>
+ </Other>
+ </CompilerOptions>
+ <Debugging>
+ <Exceptions Count="3">
+ <Item1>
+ <Name Value="EAbort"/>
+ </Item1>
+ <Item2>
+ <Name Value="ECodetoolError"/>
+ </Item2>
+ <Item3>
+ <Name Value="EFOpenError"/>
+ </Item3>
+ </Exceptions>
+ </Debugging>
+</CONFIG>
diff --git a/examples/gui/scrollframe/bigframe_test.lpr b/examples/gui/scrollframe/bigframe_test.lpr
new file mode 100644
index 00000000..5309e965
--- /dev/null
+++ b/examples/gui/scrollframe/bigframe_test.lpr
@@ -0,0 +1,114 @@
+program bigframe_test;
+
+{$mode objfpc}{$H+}
+
+uses
+ Classes,
+ sysutils,
+ fpg_base,
+ fpg_main,
+ fpg_button,
+ fpg_label,
+ fpg_form,
+ fpg_panel,
+ fpg_scrollframe
+ ;
+
+procedure create_buttons (f : TfpgFrame);
+var
+ i, j, ij : integer;
+ b : TfpgButton;
+const
+ num_button_cols = 4;
+ num_button_rows = 5;
+begin
+ with f do begin
+ for i := 0 to num_button_cols-1 do
+ begin
+ for j := 0 to num_button_rows-1 do
+ begin
+ if (j>4) and (j<16) then continue;
+ ij := j + num_button_rows*i;
+ b := TfpgButton.Create(f);
+ with b do begin
+ if (i=2) and (j=2)
+ then SetPosition(6000, 6000, 100, 25)
+ else SetPosition(20+i*105, 50+j*30, 100, 25);
+ name := 'button' + inttostr(ij);
+ Text := 'Button ' + inttostr(ij+1);
+ FontDesc := '#Label1';
+ end;
+ end;
+ end;
+ end;
+end;
+
+type
+
+ { t_sample_frame }
+
+ t_sample_frame = class (TfpgAutoSizingFrame)
+ protected
+ my_color : TfpgColor;
+ embed_button : TfpgButton;
+ procedure click_embed_button (Sender: TObject);
+ procedure paint_my_stuff (Sender: TObject);
+ public
+ procedure AfterCreate; override;
+ end;
+
+procedure t_sample_frame.click_embed_button(Sender: TObject);
+var
+ inner_bevel : TfpgBevel;
+ inner_frame : TfpgScrollFrame;
+begin
+ embed_button.Visible:=false;
+ inner_bevel := TfpgBevel.Create(self);
+ with inner_bevel do begin;
+ SetPosition(90, 210, 300, 300);
+ BorderStyle := bsDouble;
+ Shape := bsFrame;
+ UpdateWindowPosition;
+ end;
+ RecalcFrameSize;
+
+ inner_frame := TfpgScrollFrame.Create(inner_bevel, t_sample_frame);
+ inner_frame.Align:=alClient;
+end;
+
+procedure t_sample_frame.paint_my_stuff (Sender: TObject);
+begin
+ canvas.Color := my_color;
+ canvas.FillRectangle (30, 30, 200, 400);
+end;
+
+procedure t_sample_frame.AfterCreate;
+begin
+ inherited AfterCreate;
+ MarginBR:=7;
+ my_color:=TfpgColor(random(high(longint)));
+ embed_button := CreateButton (self, 20, 240, 270,
+ 'Click to embed another Scroll-Frame here', @click_embed_button);
+ OnPaint:=@paint_my_stuff;
+ create_buttons(self);
+end;
+
+
+var
+ form: TfpgForm;
+ outer_frame: TfpgScrollFrame;
+
+begin
+ fpgApplication.Initialize;
+ form := TfpgForm.Create(nil);
+ form.SetPosition(0,0,380,360);
+ outer_frame := TfpgScrollFrame.Create(form, t_sample_frame);
+ outer_frame.Align:=alClient;
+ try
+ form.Show;
+ fpgApplication.Run;
+ finally
+ form.Free;
+ end;
+end.
+
diff --git a/examples/gui/scrollframe/frame_test.lpi b/examples/gui/scrollframe/frame_test.lpi
new file mode 100644
index 00000000..ab3bd77f
--- /dev/null
+++ b/examples/gui/scrollframe/frame_test.lpi
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CONFIG>
+ <ProjectOptions>
+ <Version Value="9"/>
+ <General>
+ <Flags>
+ <MainUnitHasCreateFormStatements Value="False"/>
+ <MainUnitHasTitleStatement Value="False"/>
+ </Flags>
+ <SessionStorage Value="InProjectDir"/>
+ <MainUnit Value="0"/>
+ <Title Value="frame_test"/>
+ <UseAppBundle Value="False"/>
+ <ResourceType Value="res"/>
+ </General>
+ <i18n>
+ <EnableI18N LFM="False"/>
+ </i18n>
+ <VersionInfo>
+ <StringTable ProductVersion=""/>
+ </VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="Default" Default="True"/>
+ </BuildModes>
+ <PublishOptions>
+ <Version Value="2"/>
+ <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
+ <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/>
+ </PublishOptions>
+ <RunParams>
+ <local>
+ <FormatVersion Value="1"/>
+ <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
+ </local>
+ </RunParams>
+ <RequiredPackages Count="1">
+ <Item1>
+ <PackageName Value="fpgui_toolkit"/>
+ </Item1>
+ </RequiredPackages>
+ <Units Count="1">
+ <Unit0>
+ <Filename Value="frame_test.lpr"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="frame_test"/>
+ </Unit0>
+ </Units>
+ </ProjectOptions>
+ <CompilerOptions>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="frame_test"/>
+ </Target>
+ <SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <UnitOutputDirectory Value="units/$(TargetCPU)-$(TargetOS)"/>
+ </SearchPaths>
+ <Other>
+ <CompilerMessages>
+ <MsgFileName Value=""/>
+ </CompilerMessages>
+ <CompilerPath Value="$(CompPath)"/>
+ </Other>
+ </CompilerOptions>
+ <Debugging>
+ <Exceptions Count="3">
+ <Item1>
+ <Name Value="EAbort"/>
+ </Item1>
+ <Item2>
+ <Name Value="ECodetoolError"/>
+ </Item2>
+ <Item3>
+ <Name Value="EFOpenError"/>
+ </Item3>
+ </Exceptions>
+ </Debugging>
+</CONFIG>
diff --git a/examples/gui/scrollframe/frame_test.lpr b/examples/gui/scrollframe/frame_test.lpr
new file mode 100644
index 00000000..252f8a07
--- /dev/null
+++ b/examples/gui/scrollframe/frame_test.lpr
@@ -0,0 +1,112 @@
+program frame_test;
+
+{$mode objfpc}{$H+}
+
+uses
+ Classes,
+ sysutils,
+ fpg_base,
+ fpg_main,
+ fpg_button,
+ fpg_label,
+ fpg_form,
+ fpg_panel,
+ fpg_scrollframe
+ ;
+
+procedure create_buttons (f : TfpgFrame);
+var
+ i, j, ij : integer;
+ b : TfpgButton;
+const
+ num_button_cols = 4;
+ num_button_rows = 5;
+begin
+ with f do begin
+ for i := 0 to num_button_cols-1 do
+ begin
+ for j := 0 to num_button_rows-1 do
+ begin
+ if (j>4) and (j<16) then continue;
+ ij := j + num_button_rows*i;
+ b := TfpgButton.Create(f);
+ with b do begin
+ SetPosition(20+i*105, 50+j*30, 100, 25);
+ name := 'button' + inttostr(ij);
+ Text := 'Button ' + inttostr(ij+1);
+ FontDesc := '#Label1';
+ end;
+ end;
+ end;
+ end;
+end;
+
+type
+
+ { t_sample_frame }
+
+ t_sample_frame = class (TfpgAutoSizingFrame)
+ protected
+ my_color : TfpgColor;
+ embed_button : TfpgButton;
+ procedure click_embed_button (Sender: TObject);
+ procedure paint_my_stuff (Sender: TObject);
+ public
+ procedure AfterCreate; override;
+ end;
+
+procedure t_sample_frame.click_embed_button(Sender: TObject);
+var
+ inner_bevel : TfpgBevel;
+ inner_frame : TfpgScrollFrame;
+begin
+ embed_button.Visible:=false;
+ inner_bevel := TfpgBevel.Create(self);
+ with inner_bevel do begin;
+ SetPosition(90, 210, 300, 300);
+ BorderStyle := bsDouble;
+ Shape := bsFrame;
+ UpdateWindowPosition;
+ end;
+ RecalcFrameSize;
+
+ inner_frame := TfpgScrollFrame.Create(inner_bevel, t_sample_frame);
+ inner_frame.Align:=alClient;
+end;
+
+procedure t_sample_frame.paint_my_stuff (Sender: TObject);
+begin
+ canvas.Color := my_color;
+ canvas.FillRectangle (30, 30, 200, 400);
+end;
+
+procedure t_sample_frame.AfterCreate;
+begin
+ inherited AfterCreate;
+ MarginBR:=7;
+ my_color:=TfpgColor(random(high(longint)));
+ embed_button := CreateButton (self, 20, 240, 270,
+ 'Click to embed another Scroll-Frame here', @click_embed_button);
+ OnPaint:=@paint_my_stuff;
+ create_buttons(self);
+end;
+
+
+var
+ form: TfpgForm;
+ outer_frame: TfpgScrollFrame;
+
+begin
+ fpgApplication.Initialize;
+ form := TfpgForm.Create(nil);
+ form.SetPosition(0,0,380,360);
+ outer_frame := TfpgScrollFrame.Create(form, t_sample_frame);
+ outer_frame.Align:=alClient;
+ try
+ form.Show;
+ fpgApplication.Run;
+ finally
+ form.Free;
+ end;
+end.
+
diff --git a/examples/gui/splashscreen/extrafpc.cfg b/examples/gui/splashscreen/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/splashscreen/extrafpc.cfg
+++ b/examples/gui/splashscreen/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/splashscreen/frm_main.pas b/examples/gui/splashscreen/frm_main.pas
index 7ecf663c..61155fae 100644
--- a/examples/gui/splashscreen/frm_main.pas
+++ b/examples/gui/splashscreen/frm_main.pas
@@ -49,7 +49,6 @@ type
implementation
uses
- fpg_command_intf,
commands;
{@VFD_NEWFORM_IMPL}
diff --git a/examples/gui/splashscreen/test.lpi b/examples/gui/splashscreen/test.lpi
index fa0ecd6b..bd28075e 100644
--- a/examples/gui/splashscreen/test.lpi
+++ b/examples/gui/splashscreen/test.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -54,9 +56,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="splashscreen"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/splitter/extrafpc.cfg b/examples/gui/splitter/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/splitter/extrafpc.cfg
+++ b/examples/gui/splitter/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/splitter/splitter_test.lpi b/examples/gui/splitter/splitter_test.lpi
index 431f5ffe..6f2b669f 100644
--- a/examples/gui/splitter/splitter_test.lpi
+++ b/examples/gui/splitter/splitter_test.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=".exe"/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,7 +41,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="splitter_test"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<Checks>
@@ -57,8 +69,6 @@
<LinkSmart Value="True"/>
</Linking>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/sprites/extrafpc.cfg b/examples/gui/sprites/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/sprites/extrafpc.cfg
+++ b/examples/gui/sprites/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/sprites/spritedemo.lpi b/examples/gui/sprites/spritedemo.lpi
index d5109e71..6b393910 100644
--- a/examples/gui/sprites/spritedemo.lpi
+++ b/examples/gui/sprites/spritedemo.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
@@ -41,9 +42,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="spritedemo"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/stdimages/extrafpc.cfg b/examples/gui/stdimages/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/stdimages/extrafpc.cfg
+++ b/examples/gui/stdimages/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/stdimages/stdimglist.lpi b/examples/gui/stdimages/stdimglist.lpi
index f519fc99..e9d1ba25 100644
--- a/examples/gui/stdimages/stdimglist.lpi
+++ b/examples/gui/stdimages/stdimglist.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -41,13 +41,18 @@
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
+ <Target>
+ <Filename Value="stdimglist"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/tabtest/extrafpc.cfg b/examples/gui/tabtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/tabtest/extrafpc.cfg
+++ b/examples/gui/tabtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/tabtest/tabtest.lpi b/examples/gui/tabtest/tabtest.lpi
index b29eb7a0..a3e5d6f7 100644
--- a/examples/gui/tabtest/tabtest.lpi
+++ b/examples/gui/tabtest/tabtest.lpi
@@ -1,7 +1,7 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -39,10 +41,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="tabtest"/>
+ </Target>
<SearchPaths>
<UnitOutputDirectory Value="units"/>
</SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Linking>
<Debugging>
<UseHeaptrc Value="True"/>
diff --git a/examples/gui/tabtest/tabtest.lpr b/examples/gui/tabtest/tabtest.lpr
index 016d5af5..3675e29a 100644
--- a/examples/gui/tabtest/tabtest.lpr
+++ b/examples/gui/tabtest/tabtest.lpr
@@ -6,7 +6,7 @@ uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
- Classes,
+ Classes, SysUtils,
fpg_main, fpg_base, fpg_widget, fpg_form, fpg_tab, fpg_button,
fpg_label, fpg_edit, fpg_checkbox, fpg_combobox;
@@ -22,6 +22,10 @@ type
btn2, btn3: TfpgButton;
chkSort: TfpgCheckBox;
cbTabPos: TfpgComboBox;
+ edtHeight: TfpgEditInteger;
+ lbl: TfpgLabel;
+ procedure TabSheet4Painting(Sender: TObject);
+ procedure edtHeightChanged(Sender: TObject);
procedure btnQuitClick(Sender: TObject);
procedure btn2Click(Sender: TObject);
procedure btn3Click(Sender: TObject);
@@ -33,6 +37,16 @@ type
{ TMainForm }
+procedure TMainForm.TabSheet4Painting(Sender: TObject);
+begin
+ lbl.Text := 'H: ' + IntToStr(tsFour.Height);
+end;
+
+procedure TMainForm.edtHeightChanged(Sender: TObject);
+begin
+ pcMain.FixedTabHeight := edtHeight.Value;
+end;
+
procedure TMainForm.btnQuitClick(Sender: TObject);
begin
Close;
@@ -79,6 +93,7 @@ begin
inherited Create(AOwner);
WindowTitle := 'Tab control test';
SetPosition(100, 100, 566, 350);
+ ShowHint := True;
btnQuit := CreateButton(self, 476, 320, 80, 'Quit', @btnQuitClick);
btnQuit.ImageName := 'stdimg.Quit';
@@ -115,7 +130,9 @@ begin
tsFour := TfpgTabSheet.Create(pcMain);
tsFour.Text := 'This is one long text caption';
tsFour.BackgroundColor := clMediumSeaGreen;
-
+ tsFour.OnPaint := @TabSheet4Painting;
+ lbl := CreateLabel(tsFour, 30, 50, 'TabSheet Four');
+
pcMain.ActivePage := tsOne;
btn2 := CreateButton(self, 10, 320, 80, 'Page 1', @btn2Click);
@@ -136,7 +153,14 @@ begin
cbTabPos.Items.Add('tpNone');
cbTabPos.FocusItem := 0;
cbTabPos.Anchors := [anBottom, anLeft];
+ cbTabPos.Hint := 'Tab position';
cbTabPos.OnChange := @cbTabPosChanged;
+
+ CreateLabel(self, 390, 325, 'Height:');
+ edtHeight := CreateEditInteger(self, 435, 320, 30, 24, False);
+ edtHeight.Value := 0;
+ edtHeight.Hint := 'Tab height';
+ edtHeight.OnChange := @edtHeightChanged;
end;
procedure MainProc;
diff --git a/examples/gui/timertest/extrafpc.cfg b/examples/gui/timertest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/timertest/extrafpc.cfg
+++ b/examples/gui/timertest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/timertest/timertest.lpi b/examples/gui/timertest/timertest.lpi
index a27e074a..c9494ac4 100644
--- a/examples/gui/timertest/timertest.lpi
+++ b/examples/gui/timertest/timertest.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,10 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="timertest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/treeviewtest/extrafpc.cfg b/examples/gui/treeviewtest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/treeviewtest/extrafpc.cfg
+++ b/examples/gui/treeviewtest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/treeviewtest/treeviewtest.lpi b/examples/gui/treeviewtest/treeviewtest.lpi
index 6c19a1a9..8f925b0d 100644
--- a/examples/gui/treeviewtest/treeviewtest.lpi
+++ b/examples/gui/treeviewtest/treeviewtest.lpi
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
@@ -46,7 +46,13 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="9"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="treeviewtest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
<Parsing>
<SyntaxOptions>
<CStyleOperator Value="False"/>
@@ -57,7 +63,6 @@
<CompilerMessages>
<UseMsgFile Value="True"/>
</CompilerMessages>
- <CustomOptions Value="-FUunits"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/gui/video_vlc/frmvlcplayer.pas b/examples/gui/video_vlc/frmvlcplayer.pas
new file mode 100644
index 00000000..7b44c1e1
--- /dev/null
+++ b/examples/gui/video_vlc/frmvlcplayer.pas
@@ -0,0 +1,340 @@
+unit frmvlcplayer;
+
+{$mode objfpc}{$H+}
+
+interface
+
+uses
+ SysUtils, Classes, fpg_base, fpg_panel, fpg_button, fpg_main, fpg_form,
+ fpg_editbtn, fpg_memo, fpg_label, libvlc, vlc, fpg_vlc;
+
+type
+
+ { TVLCPlayerDemoForm }
+
+ TVLCPlayerDemoForm = class(TfpgForm)
+ private
+ {@VFD_HEAD_BEGIN: VLCPlayerDemo}
+ Panel1: TfpgPanel;
+ FilenameEdit1: TfpgFileNameEdit;
+ Label1: TfpgLabel;
+ Button1: TfpgButton;
+ Button2: TfpgButton;
+ Button3: TfpgButton;
+ Button4: TfpgButton;
+ Memo1: TfpgMemo;
+ procedure Sync;
+ {@VFD_HEAD_END: VLCPlayerDemo}
+ public
+ P : TFpgVLCPlayer;
+ FMsg: String;
+ procedure AfterCreate; override;
+ Procedure InitPlayer;
+ Procedure Log(Const Msg : String);
+ Procedure DoPlay(sender : TObject);
+ Procedure DoPause(sender : TObject);
+ Procedure DoResume(sender : TObject);
+ Procedure DoStop(sender : TObject);
+ // Event callbacks
+ procedure DoOnBackward(Sender: TObject);
+ procedure DoOnMediaChanged(Sender: TObject);
+ procedure DoOnNothingSpecial(Sender: TObject);
+ procedure DoOnBuffering(Sender: TObject);
+ procedure DoOnEOF(Sender: TObject);
+ procedure DoOnError(Sender: TObject; const AError: string);
+ procedure DoOnForward(Sender: TObject);
+ procedure DoOnLengthChanged(Sender: TObject; const time: TDateTime);
+ procedure DoOnOpening(Sender: TObject);
+ procedure DoOnPause(Sender: TObject);
+ procedure DoOnPlaying(Sender: TObject);
+ procedure DoOnStop(Sender: TObject);
+ procedure DoOnPausableChanged(Sender: TObject; const AValue: Boolean);
+ procedure DoOnPositionChanged(Sender: TObject; const APos: Double);
+ procedure DoOnSeekableChanged(Sender: TObject; const AValue: Boolean);
+ procedure DoOnTimeChanged(Sender: TObject; const time: TDateTime);
+ procedure DoOnSnapshot(Sender: TObject; const AfileName: string);
+ procedure DoOnTitleChanged(Sender: TObject; const ATitle: Integer);
+ end;
+
+{@VFD_NEWFORM_DECL}
+
+implementation
+
+{@VFD_NEWFORM_IMPL}
+
+procedure TVLCPlayerDemoForm.DoOnBackward(Sender: TObject);
+begin
+ Log('Backward');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnMediaChanged(Sender: TObject);
+begin
+ Log('Media changed');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnNothingSpecial(Sender: TObject);
+begin
+ Log('Idle');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnBuffering(Sender: TObject);
+begin
+ Log('Buffering');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnEOF(Sender: TObject);
+begin
+ Log('EOF');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnError(Sender: TObject; const AError: string);
+begin
+ Log('Error : '+AError);
+end;
+
+procedure TVLCPlayerDemoForm.DoOnForward(Sender: TObject);
+begin
+ Log('Forward');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnLengthChanged(Sender: TObject;
+ const time: TDateTime);
+begin
+ Log('Length changed : '+TimeToStr(Time));
+end;
+
+procedure TVLCPlayerDemoForm.DoOnOpening(Sender: TObject);
+begin
+ Log('Opening');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnPause(Sender: TObject);
+begin
+ Log('Pause');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnPlaying(Sender: TObject);
+begin
+ Log('Playing');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnStop(Sender: TObject);
+begin
+ Log('Stop');
+end;
+
+procedure TVLCPlayerDemoForm.DoOnPausableChanged(Sender: TObject;
+ const AValue: Boolean);
+begin
+ Log('Pausable changed : '+BoolToStr(AValue,True));
+end;
+
+procedure TVLCPlayerDemoForm.DoOnPositionChanged(Sender: TObject;
+ const APos: Double);
+begin
+ Log('Position changed : '+FloatToStr(APos));
+end;
+
+procedure TVLCPlayerDemoForm.DoOnSeekableChanged(Sender: TObject;
+ const AValue: Boolean);
+begin
+ Log('Seekable changed : '+BoolToStr(AValue,True));
+end;
+
+procedure TVLCPlayerDemoForm.DoOnTimeChanged(Sender: TObject;
+ const time: TDateTime);
+begin
+ Log('Time changed : '+TimeToStr(Time));
+end;
+
+procedure TVLCPlayerDemoForm.DoOnSnapshot(Sender: TObject;
+ const AfileName: string);
+begin
+ Log('Wrote snapshot to file : '+AFileName);
+end;
+
+procedure TVLCPlayerDemoForm.DoOnTitleChanged(Sender: TObject;
+ const ATitle: Integer);
+begin
+ Log('Title changed : '+IntToStr(ATitle));
+end;
+
+procedure TVLCPlayerDemoForm.AfterCreate;
+begin
+
+ {@VFD_BODY_BEGIN: VLCPlayerDemo}
+ Name := 'VLCPlayerDemo';
+ SetPosition(424, 319, 813, 574);
+ WindowTitle := 'VLCPlayerDemo';
+ Hint := '';
+
+ Panel1 := TfpgPanel.Create(self);
+ with Panel1 do
+ begin
+ Name := 'Panel1';
+ SetPosition(28, 40, 754, 422);
+ Anchors := [anLeft,anRight,anTop,anBottom];
+ FontDesc := '#Label1';
+ Hint := '';
+ Text := 'Select a video';
+ end;
+
+ FilenameEdit1 := TfpgFileNameEdit.Create(self);
+ with FilenameEdit1 do
+ begin
+ Name := 'FilenameEdit1';
+ SetPosition(108, 8, 566, 24);
+ Anchors := [anLeft,anRight,anTop];
+ ExtraHint := '';
+ FileName := '';
+ Filter := 'Video files|*.avi;*.flv;*.mp4';
+ InitialDir := '';
+ TabOrder := 2;
+ end;
+
+ Label1 := TfpgLabel.Create(self);
+ with Label1 do
+ begin
+ Name := 'Label1';
+ SetPosition(32, 12, 72, 20);
+ FontDesc := '#Label1';
+ Hint := '';
+ Text := 'Play file:';
+ end;
+
+ Button1 := TfpgButton.Create(self);
+ with Button1 do
+ begin
+ Name := 'Button1';
+ SetPosition(698, 8, 80, 24);
+ Anchors := [anRight,anTop];
+ Text := 'Play';
+ FontDesc := '#Label1';
+ Hint := '';
+ ImageName := '';
+ TabOrder := 4;
+ OnClick:=@DoPlay;
+ end;
+
+ Button2 := TfpgButton.Create(self);
+ with Button2 do
+ begin
+ Name := 'Button2';
+ SetPosition(28, 472, 80, 28);
+ Anchors := [anLeft,anBottom];
+ Text := 'Pause';
+ FontDesc := '#Label1';
+ Hint := '';
+ ImageName := '';
+ TabOrder := 5;
+ OnClick:=@DoPause;
+ end;
+
+ Button3 := TfpgButton.Create(self);
+ with Button3 do
+ begin
+ Name := 'Button3';
+ SetPosition(116, 472, 80, 28);
+ Anchors := [anLeft,anBottom];
+ Text := 'Resume';
+ FontDesc := '#Label1';
+ Hint := '';
+ ImageName := '';
+ TabOrder := 6;
+ OnClick:=@DoResume;
+ end;
+
+ Button4 := TfpgButton.Create(self);
+ with Button4 do
+ begin
+ Name := 'Button4';
+ SetPosition(204, 472, 80, 28);
+ Anchors := [anLeft,anBottom];
+ Text := 'Stop';
+ FontDesc := '#Label1';
+ Hint := '';
+ ImageName := '';
+ TabOrder := 7;
+ OnClick:=@DoStop;
+ end;
+
+ Memo1 := TfpgMemo.Create(self);
+ with Memo1 do
+ begin
+ Name := 'Memo1';
+ SetPosition(288, 469, 494, 100);
+ Anchors := [anLeft,anRight,anBottom];
+ FontDesc := '#Edit1';
+ Hint := '';
+ TabOrder := 8;
+ end;
+
+ {@VFD_BODY_END: VLCPlayerDemo}
+ {%endregion}
+end;
+
+procedure TVLCPlayerDemoForm.InitPlayer;
+begin
+ If P<>Nil then
+ exit;
+ P:=TFpgVLCPlayer.Create(Self);
+ P.UseEvents:=True;
+ P.ParentWindow:=Panel1;
+ P.OnMediaChanged:=@DoOnMediaChanged;
+ P.OnNothingSpecial:=@DoOnNothingSpecial;
+ P.OnBackward:=@DoOnBackward;
+ P.OnBuffering:=@DoOnBuffering;
+ P.OnEOF:=@DoOnEOF;
+ P.OnError:=@DoOnError;
+ P.OnForward:=@DoOnForward;
+ P.OnOpening:=@DoOnOpening;
+ P.OnPause:=@DoOnPause;
+ P.OnPlaying:=@DoOnPlaying;
+ P.OnStop:=@DoOnStop;
+ P.OnLengthChanged:=@DoOnLengthChanged;
+ P.OnTimeChanged:=@DoOnTimeChanged;
+ P.OnPausableChanged:=@DoOnPausableChanged;
+ P.OnPositionChanged:=@DoOnPositionChanged;
+ P.OnSeekableChanged:=@DoOnSeekableChanged;
+ P.OnTitleChanged:=@DoOnTitleChanged;
+ P.OnSnapshot:=@DoOnSnapshot;
+
+end;
+
+procedure TVLCPlayerDemoForm.Sync;
+begin
+ Memo1.Lines.Add(FMsg);
+end;
+
+procedure TVLCPlayerDemoForm.Log(const Msg: String);
+begin
+ FMsg:=Msg;
+ TThread.Synchronize(Nil,@Self.Sync);
+end;
+
+procedure TVLCPlayerDemoForm.DoPlay(sender: TObject);
+begin
+ InitPlayer;
+ P.PlayFile(FileNameEdit1.FileName);
+end;
+
+procedure TVLCPlayerDemoForm.DoPause(sender: TObject);
+begin
+ If Assigned(P) then
+ P.Pause;
+end;
+
+procedure TVLCPlayerDemoForm.DoResume(sender: TObject);
+begin
+ if Assigned(P) then
+ P.Resume;
+end;
+
+procedure TVLCPlayerDemoForm.DoStop(sender: TObject);
+begin
+ If Assigned(P) then
+ P.Stop;
+end;
+
+
+end.
diff --git a/examples/gui/video_vlc/testfpguivlc.lpi b/examples/gui/video_vlc/testfpguivlc.lpi
new file mode 100644
index 00000000..d7a4ad2a
--- /dev/null
+++ b/examples/gui/video_vlc/testfpguivlc.lpi
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<CONFIG>
+ <ProjectOptions>
+ <Version Value="9"/>
+ <General>
+ <Flags>
+ <MainUnitHasCreateFormStatements Value="False"/>
+ <MainUnitHasTitleStatement Value="False"/>
+ </Flags>
+ <SessionStorage Value="InProjectDir"/>
+ <MainUnit Value="0"/>
+ <Title Value="testfpguivlc"/>
+ <UseAppBundle Value="False"/>
+ <ResourceType Value="res"/>
+ </General>
+ <i18n>
+ <EnableI18N LFM="False"/>
+ </i18n>
+ <VersionInfo>
+ <StringTable ProductVersion=""/>
+ </VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="Default" Default="True"/>
+ </BuildModes>
+ <PublishOptions>
+ <Version Value="2"/>
+ <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
+ <ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/>
+ </PublishOptions>
+ <RunParams>
+ <local>
+ <FormatVersion Value="1"/>
+ <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
+ </local>
+ </RunParams>
+ <RequiredPackages Count="1">
+ <Item1>
+ <PackageName Value="fpgui_toolkit"/>
+ </Item1>
+ </RequiredPackages>
+ <Units Count="5">
+ <Unit0>
+ <Filename Value="testfpguivlc.lpr"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="testfpguivlc"/>
+ </Unit0>
+ <Unit1>
+ <Filename Value="frmvlcplayer.pas"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="frmvlcplayer"/>
+ </Unit1>
+ <Unit2>
+ <Filename Value="../fpg_vlc.pas"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="fpg_vlc"/>
+ </Unit2>
+ <Unit3>
+ <Filename Value="../../libvlc/libvlc.pp"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="libvlc"/>
+ </Unit3>
+ <Unit4>
+ <Filename Value="../../libvlc/vlc.pas"/>
+ <IsPartOfProject Value="True"/>
+ <UnitName Value="vlc"/>
+ </Unit4>
+ </Units>
+ </ProjectOptions>
+ <CompilerOptions>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="testfpguivlc"/>
+ </Target>
+ <SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
+ <OtherUnitFiles Value="../../../src/3rdparty/libvlc"/>
+ <UnitOutputDirectory Value="units/$(TargetCPU)-$(TargetOS)"/>
+ </SearchPaths>
+ <Other>
+ <CompilerMessages>
+ <MsgFileName Value=""/>
+ </CompilerMessages>
+ <CompilerPath Value="$(CompPath)"/>
+ </Other>
+ </CompilerOptions>
+ <Debugging>
+ <Exceptions Count="3">
+ <Item1>
+ <Name Value="EAbort"/>
+ </Item1>
+ <Item2>
+ <Name Value="ECodetoolError"/>
+ </Item2>
+ <Item3>
+ <Name Value="EFOpenError"/>
+ </Item3>
+ </Exceptions>
+ </Debugging>
+</CONFIG>
diff --git a/examples/gui/video_vlc/testfpguivlc.lpr b/examples/gui/video_vlc/testfpguivlc.lpr
new file mode 100644
index 00000000..3846a69c
--- /dev/null
+++ b/examples/gui/video_vlc/testfpguivlc.lpr
@@ -0,0 +1,31 @@
+program testfpguivlc;
+
+{$mode objfpc}{$H+}
+
+uses
+ {$IFDEF UNIX}
+ cthreads,
+ {$ENDIF}
+ Math,
+ Classes, frmvlcplayer, fpg_vlc, libvlc, vlc, fpg_main;
+
+procedure MainProc;
+var
+ frm: TVLCPlayerDemoForm;
+begin
+ fpgApplication.Initialize;
+ frm := TVLCPlayerDemoForm.Create(nil);
+ frm.Show;
+ fpgApplication.Run;
+ frm.Free;
+end;
+
+
+begin
+ With TThread.Create(False) do
+ Terminate;
+ setexceptionmask([exInvalidOp, exDenormalized, exZeroDivide,
+ exOverflow, exUnderflow, exPrecision]);
+ MainProc;
+end.
+
diff --git a/examples/gui/wulinetest/extrafpc.cfg b/examples/gui/wulinetest/extrafpc.cfg
index 775d592f..7c0fe0a0 100644
--- a/examples/gui/wulinetest/extrafpc.cfg
+++ b/examples/gui/wulinetest/extrafpc.cfg
@@ -3,3 +3,7 @@
-Xs
-XX
-CX
+#ifdef mswindows
+-WG
+#endif
+
diff --git a/examples/gui/wulinetest/wuline_test.lpi b/examples/gui/wulinetest/wuline_test.lpi
index 7a54bb83..55fd3864 100644
--- a/examples/gui/wulinetest/wuline_test.lpi
+++ b/examples/gui/wulinetest/wuline_test.lpi
@@ -1,20 +1,21 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -40,10 +41,19 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Target>
+ <Filename Value="wulinetest"/>
+ </Target>
+ <SearchPaths>
+ <UnitOutputDirectory Value="units"/>
+ </SearchPaths>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>