summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-11 13:14:31 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-11 13:14:31 +0000
commita9826323b721ce193cd15a8cdef997f7308adf44 (patch)
tree03331bd40ade5eb47c6bf8c08afbd61234349b67 /examples/gui
parent13c0492540a3edc0a3522198ceca641d17f6154c (diff)
downloadfpGUI-a9826323b721ce193cd15a8cdef997f7308adf44.tar.xz
* Implemented a new fpgGetNamedFontList() function
* Enabled Font Collections support in the Font Select Dialog. Currently only the All Fonts and Alias Fonts collections are active. * TfpgMemo now has a custom internal StringList that will notify the memo of text changes. * Made many code improvements to gui_listbox unit. Lots of redundant code was removed. * Fixed a bug in gui_listbox where the OnChange event did not fire for all instances of FocusItem changing. * Fixed a bug in gui_listbox KeyPress event where it did not take into account that FocusItem is 1-based.
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/fontselect/fontselect.lpr9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/gui/fontselect/fontselect.lpr b/examples/gui/fontselect/fontselect.lpr
index a93175ce..640eec05 100644
--- a/examples/gui/fontselect/fontselect.lpr
+++ b/examples/gui/fontselect/fontselect.lpr
@@ -36,7 +36,7 @@ type
public
constructor Create(AOwner: TComponent); override;
end;
-
+
{ TMainForm }
@@ -75,13 +75,13 @@ begin
btnSelectFont := CreateButton(self, 10, 10, 110, rsSelectAFont, @btnSelectFontClick);
edFontDesc := CreateEdit(self, 10, 45, Width - 20, 24);
-// edFontDesc.Text := fpgApplication.DefaultFont.FontDesc;
edFontDesc.Text := 'Bitstream Vera Sans-9';
lblFontList := CreateLabel(self, 10, 80, rsMyFontList + ':');
lbFontList := TfpgListBox.Create(self);
with lbFontList do
begin
+ Name := 'lbFontList';
SetPosition(10, 100, 232, 236);
Items.Clear;
end;
@@ -93,7 +93,10 @@ begin
btnQuit.ShowImage := True;
btnQuit.Anchors := [anRight, anBottom];
- btnSelectFont.TabOrder := 0;
+ btnSelectFont.TabOrder := 1;
+ edFontDesc.TabOrder := 2;
+ lbFontList.TabOrder := 3;
+ btnQuit.TabOrder := 4;
end;
procedure MainProc;