View Issue Details

IDProjectCategoryView StatusLast Update
0002563JEDI VCL04 Feature Requestpublic2005-02-04 02:00
ReportercarloswAssigned Tojfudickar 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 
Summary0002563: Change distance between LabelControl and FocusedControl in DynControlEngine
DescriptionCould there be an option to change the default distance between an label and it's control. When the label is on top the default distance is 1px. this doesn't look good


The Height of the ButtonPanel is currently calculated by ButtonControl.Height + 6. I would like to change this also. Maybe an global variable for these?
Additional InformationThis could be implemented with Global Variables:

in JvDynControlEngine.pas
var
  DistanceBetweenLabelAndControlHorz = 4;
  DistanceBetweenLabelAndControlVert = 4;

...

function TJvDynControlEngine.CreateLabelControlPanel(AOwner: TComponent;
  AParentControl: TWinControl; const AControlName, ACaption: string; AFocusControl: TWinControl;
  ALabelOnTop: Boolean = True; ALabelDefaultWidth: Integer = 0): TWinControl;
...
...
if ALabelOnTop then
begin
  AFocusControl.Top := LabelControl.Height + DistanceBetweenLabelAndControlVert;
  ...
  ...
end
else
begin
  if ALabelDefaultWidth > 0 then
    LabelControl.Width := ALabelDefaultWidth;
  AFocusControl.Left := LabelControl.Width + DistanceBetweenLabelAndControlHorz;
  ...

TagsNo tags attached.

Activities

jfudickar

2005-01-28 16:02

developer   ~0006309

Changed in cvs, Please give it a try.

The variables are now part of the DynControlEngine Class.

You can use it like this (or define an own class and overwrite the creator)

  DefaultDynControlengine.DistanceBetweenLabelAndControlVert := 18;
  DefaultDynControlengine.DistanceBetweenLabelAndControlHorz := 18;

carlosw

2005-01-31 00:55

reporter   ~0006322

thanx this works.

obones

2005-02-04 02:00

administrator   ~0006385

As indicated by user, this is resolved

Issue History

Date Modified Username Field Change
2005-01-27 13:20 carlosw New Issue
2005-01-28 13:44 jfudickar Status new => assigned
2005-01-28 13:44 jfudickar Assigned To => jfudickar
2005-01-28 16:02 jfudickar Note Added: 0006309
2005-01-28 16:02 jfudickar Status assigned => feedback
2005-01-28 16:03 jfudickar Severity minor => feature
2005-01-31 00:55 carlosw Note Added: 0006322
2005-02-04 02:00 obones Status feedback => resolved
2005-02-04 02:00 obones Fixed in Version => 3.00
2005-02-04 02:00 obones Resolution open => fixed
2005-02-04 02:00 obones Note Added: 0006385