Frequently Asked Component Specific Questions
Displaying items 1 to 15 of 531, page 1 of 36
<< previous next >>

TAdvMemo: How to control the vertical scroll position
(Mar 15, 2013)
In TadvMemo, you programmatically control the vertical scroll position with the property:
Nancy Lescouhier (Mar 15, 2013)


TAdvDBDateTimePicker: Using empty date/time fields
(Feb 25, 2013)
TAdvDBDateTimePicker does not support the use of empty date/time fields.
This is a limitation that is actually in the underlying Windows date/timepicker control that is used inside TAdvDBDateTimePicker.
This Windows date/timepicker control doesn't offer the capability for entry of empty values and as such, we can't workaround this on TAdvDBDateTimePicker.
Our own custom control TDBPlannerDatePicker has this capability though as this is created fully in VCL and does not depend on a Windows control. See:
http://www.tmssoftware.com/site/plannercal.asp
Nancy Lescouhier (Feb 25, 2013)


TAdvMemo: How to use bookmarks
(Feb 22, 2013)
You can add a bookmark on a specific line with:
advmemo.Bookmarks[bookmarkindex] := linenumber;
You can retrieve the linenumber for a specific bookmark index with:
advmemo.Bookmarks[bookmarkindex]: integer;
Using :
advmemo.BookmarkIndex[bookmarkindex]: integer
is just for putting an extra number on the book mark icon in the gutter.
Example:
procedure TForm1.FormCreate(Sender: TObject); begin
// load some file
advmemo1.Lines.LoadFromFile('somefile.txt');
// set first bookmark at line 100
advmemo1.Bookmarks[0] := 100;
// set second bookmark at line 200
advmemo1.Bookmarks[1] := 200;
end;
// code to move to the first bookmark, i.e. jump to line 100; begin
advmemo1.GotoBookmark(0);
end;
Nancy Lescouhier (Feb 22, 2013)


TMS Security System: How to use TMS Security for dynamically created components
(Feb 8, 2013)
When you create or destroy components dynamically , you'll need to programmatically add/remove entries
in the collection uilFormPolicy1.Policies for each control you want under
control of the Security System.
Nancy Lescouhier (Feb 8, 2013)


TMS Cloud Pack: Twitter asks to enter a PIN after authentication.
(Feb 7, 2013)
Please make sure a "Callback URL" has been assigned in the Twitter app settings. See screenshots in the
PDF Manual for an example.
Bart Holvoet (Feb 7, 2013)


TMS IntraWeb Component Pack Pro: When using TIWAdvGridExcelIO to send an XLS file to the browser, my app freezes.
(Feb 7, 2013)
IntraWeb forms have a property called LockOnSubmit. This is to prevent the user from double clicking on a form when a submit is already in progress. However, it is incompatible with some functions such as SendFile and SendStream. If you are performing any of these, make sure this property is set to False in the form where they are used.
Bart Holvoet (Feb 7, 2013)


TAdvOfficeMDITabSet: How do you determine which tab of the set is being pointed to by the mouse
(Jan 17, 2013)
You can use
TadvOfficeTabSet.PtOnTab(x,y: integer): integer;
This returns -1 when the mouse is not on a tab and the index of a tab when the mouse is over a tab.
Nancy Lescouhier (Jan 17, 2013)


TAdvOfficeMDITabSet: How to add an AdvOfficeTab at runtime
(Jan 17, 2013)
AdvOfficeTabSet1.AddTab('test');
Nancy Lescouhier (Jan 17, 2013)


TAdvOfficeMDITabSet: How to set the selected tab
(Jan 17, 2013)
For TAdvOfficeTabSet, you can get & set the selected tab with a simple single property:
AdvOfficeTabSet.ActiveTabIndex: integer;
Nancy Lescouhier (Jan 17, 2013)


TMS WebGMaps: When I try to install TMS WebGMaps in Delphi 2007, I get the error message: TMSWebGMapsPkgD2007.dpk(38) Fatal: E2202 Required package 'IndyCore' not found
(Jan 3, 2013)
Please make sure Indy 10 is installed with Delphi 2007 and then retry to install. TWebGMaps internally uses some Indy functions and therefore needs Indy 10.
Nancy Lescouhier (Jan 3, 2013)


TAdvStringGrid: How to disable scrolling with mousewheel and arrow keys
(Jan 3, 2013)
Disable the mousewheel with:
BinningGrid.EnableWheel := false;
Disable scrolling with arrow keys with:
procedure TForm1.BinningGridTopLeftChanged(Sender: TObject);
begin
BinningGrid.TopRow := 0;
end;
Nancy Lescouhier (Jan 3, 2013)


TMS WebGMaps: How to save and restore a map position
(Jan 3, 2013)
Initialization:
public
MapBounds: TBounds;
MapZoom: Integer;
procedure TForm2.FormCreate(Sender: TObject);
begin
MapBounds := TBounds.Create;
end;
Get the current map position:
Save the current map position:
procedure TForm1.WebGMaps1BoundsRetrieved(Sender: TObject; Bounds: TBounds);
begin
MapBounds.NorthEast.Latitude := Bounds.NorthEast.Latitude;
MapBounds.NorthEast.Longitude := Bounds.NorthEast.Longitude;
MapBounds.SouthWest.Latitude := Bounds.SouthWest.Latitude;
MapBounds.SouthWest.Longitude := Bounds.SouthWest.Longitude;
MapZoom := WebGMaps1.MapOptions.ZoomMap;
end;
Load a saved map position:
WebGMaps1.MapZoomTo(MapBounds);
WebGMaps1.MapOptions.ZoomMap := MapZoom;
Bart Holvoet (Jan 3, 2013)


TDBAdvSmoothListBox: How to get the selected items from TAdvSmoothlistbox when the property Multiselect = true;
(Dec 17, 2012)
for i := 0 to advsmoothlistbox1.Items.Count - 1 do
begin
if advsmoothlistbox1.Items[i].Selected then ...
// returns a selected item in multiselect
end;
Nancy Lescouhier (Dec 17, 2012)


TDBPlanner: MultiDay Events in TPlanner and TDBPlanner
(Dec 6, 2012)
Multiday items will (by design - like in Outlook) be displayed in the header for each day where the event occurs.
You can do this by setting the property PlannerItem.InHeader :=true.
This means that for a non databound planner, you should add an inheader item for each day where the event occurs.
In the TPlanner this can’t happen automatically as there is no imposed fixed relationship
between positions (columns) and days or resources you use.
Please make sure to increase Planner.header.Height so items can be shown there.
For the DB-aware TDBPlanner, this is handled automatically.
TDBPlanner will display the items that span multiple days in the header for each day where the item occurs.
It will display this as an item in the header on each day. It can indicate in the caption (when you set PlannerItem.CaptionType = ctTime)
the start/end time of the item.
Nancy Lescouhier (Dec 6, 2012)


TPlanner: MultiDay Events in TPlanner and TDBPlanner
(Dec 6, 2012)
Multiday items will (by design - like in Outlook) be displayed in the header for each day where the event occurs.
You can do this by setting the property PlannerItem.InHeader :=true.
This means that for a non databound planner, you should add an inheader item for each day where the event occurs.
In the TPlanner this can't happen automatically as there is no imposed fixed relationship
between positions (columns) and days or resources you use.
Please make sure to increase Planner.header.Height so items can be shown there.
For the DB-aware TDBPlanner, this is handled automatically.
TDBPlanner will display the items that span multiple days in the header for each day where the item occurs.
It will display this as an item in the header on each day. It can indicate in the caption (when you set PlannerItem.CaptionType = ctTime)
the start/end time of the item.
Nancy Lescouhier (Dec 6, 2012)