Changeset 112


Ignore:
Timestamp:
Feb 15, 2022, 9:42:57 AM (2 years ago)
Author:
chronos
Message:
  • Fixed: Contact photo was not saved correctly.
  • Fixed: URL contact photo was incorrectly encoded with BASE64 encoding.
  • Fixed: Disabled not correctly working autodetection of max. line length.
  • Fixed: Tab order in Contact name details window.
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContact.lfm

    r110 r112  
    9090        Width = 265
    9191        ParentFont = False
    92         TabOrder = 2
     92        TabOrder = 3
    9393      end
    9494      object EditPhone: TEdit
     
    9898        Width = 265
    9999        ParentFont = False
    100         TabOrder = 4
     100        TabOrder = 5
    101101      end
    102102      object Label3: TLabel
     
    114114        Width = 216
    115115        ParentFont = False
    116         TabOrder = 6
     116        TabOrder = 7
    117117      end
    118118      object Label4: TLabel
     
    130130        Width = 216
    131131        ParentFont = False
    132         TabOrder = 9
     132        TabOrder = 10
    133133      end
    134134      object Label22: TLabel
     
    182182        Width = 224
    183183        ParentFont = False
    184         TabOrder = 1
     184        TabOrder = 2
    185185      end
    186186      object Label45: TLabel
     
    198198        Width = 217
    199199        ParentFont = False
    200         TabOrder = 10
     200        TabOrder = 11
    201201      end
    202202      object Label9: TLabel
     
    214214        Width = 265
    215215        ParentFont = False
    216         TabOrder = 3
     216        TabOrder = 4
    217217      end
    218218      object EditPager: TEdit
     
    222222        Width = 265
    223223        ParentFont = False
    224         TabOrder = 5
     224        TabOrder = 6
    225225      end
    226226      object Label10: TLabel
     
    246246        Width = 666
    247247        ParentFont = False
    248         TabOrder = 8
     248        TabOrder = 9
    249249      end
    250250      object Label49: TLabel
     
    262262        Width = 265
    263263        ParentFont = False
    264         TabOrder = 7
     264        TabOrder = 8
    265265      end
    266266      object Label56: TLabel
     
    278278        Width = 265
    279279        ParentFont = False
    280         TabOrder = 11
     280        TabOrder = 12
    281281      end
    282282      object SpeedButtonWeb: TSpeedButton
     
    335335        Caption = 'Details'
    336336        OnClick = ButtonNameDetailsClick
    337         TabOrder = 12
     337        TabOrder = 1
    338338      end
    339339    end
     
    432432        Anchors = [akTop, akLeft, akRight]
    433433        Caption = 'Address'
    434         ClientHeight = 259
     434        ClientHeight = 285
    435435        ClientWidth = 895
    436436        TabOrder = 6
     
    674674        Width = 920
    675675        Caption = 'Address'
    676         ClientHeight = 255
     676        ClientHeight = 281
    677677        ClientWidth = 918
    678678        TabOrder = 9
  • trunk/Forms/UFormNameDetails.lfm

    r110 r112  
    2121    Anchors = [akTop, akLeft, akRight]
    2222    ParentFont = False
    23     TabOrder = 0
     23    TabOrder = 1
    2424  end
    2525  object Label1: TLabel
     
    4646    Anchors = [akTop, akLeft, akRight]
    4747    ParentFont = False
    48     TabOrder = 1
     48    TabOrder = 3
    4949  end
    5050  object EditMiddleName: TEdit
     
    8080    Anchors = [akTop, akLeft, akRight]
    8181    ParentFont = False
    82     TabOrder = 3
     82    TabOrder = 0
    8383  end
    8484  object Label27: TLabel
     
    107107    Caption = 'OK'
    108108    ModalResult = 1
    109     TabOrder = 5
     109    TabOrder = 6
    110110  end
    111111  object ButtonCancel: TButton
     
    117117    Caption = 'Cancel'
    118118    ModalResult = 2
    119     TabOrder = 6
     119    TabOrder = 5
    120120  end
    121121end
  • trunk/Packages/Common/UCommon.pas

    r109 r112  
    310310end;
    311311
    312 {$IFDEF Windows}
     312{$IFDEF WINDOWS}
    313313function GetUserName: string;
    314314const
     
    318318begin
    319319  L := MAX_USERNAME_LENGTH + 2;
     320  Result := Default(string);
    320321  SetLength(Result, L);
    321322  if Windows.GetUserName(PChar(Result), L) and (L > 0) then begin
     
    331332  end;
    332333end;
    333 {$endif}
     334{$ENDIF}
    334335
    335336function ComputerName: string;
    336 {$ifdef mswindows}
     337{$IFDEF WINDOWS}
    337338const
    338339 INFO_BUFFER_SIZE = 32767;
     
    349350  end;
    350351end;
    351 {$endif}
    352 {$ifdef unix}
     352{$ENDIF}
     353{$IFDEF UNIX}
    353354var
    354355  Name: UtsName;
     
    358359  Result := Name.Nodename;
    359360end;
    360 {$endif}
    361 
    362 {$ifdef windows}
     361{$ENDIF}
     362
     363{$IFDEF WINDOWS}
    363364function LoggedOnUserNameEx(Format: TUserNameFormat): string;
    364365const
     
    438439procedure LoadLibraries;
    439440begin
    440   {$IFDEF Windows}
     441  {$IFDEF WINDOWS}
    441442  DLLHandle1 := LoadLibrary('secur32.dll');
    442443  if DLLHandle1 <> 0 then
     
    449450procedure FreeLibraries;
    450451begin
    451   {$IFDEF Windows}
     452  {$IFDEF WINDOWS}
    452453  if DLLHandle1 <> 0 then FreeLibrary(DLLHandle1);
    453454  {$ENDIF}
  • trunk/UContact.pas

    r109 r112  
    17241724begin
    17251725  Contacts.Clear;
    1726   MaxLineLength := 10;
     1726  //MaxLineLength := 10;
    17271727
    17281728  I := 0;
  • trunk/UContactImage.pas

    r108 r112  
    295295      if Url <> '' then begin
    296296        Contact.Fields[FieldIndex] := Url;
     297        PhotoProperty.Encoding := '';
    297298      end else begin
    298299        PhotoProperty.Encoding := VCardBase64;
     
    322323  Url := '';
    323324  Used := False;
     325  Modified := True;
    324326end;
    325327
     
    332334    Url := '';
    333335    Used := True;
     336    Modified := True;
    334337  finally
    335338    Free;
  • trunk/UCore.lfm

    r110 r112  
    282282    AppName = 'vCard Studio'
    283283    Description = 'vCard files management tool'
    284     ReleaseDate = 44606
     284    ReleaseDate = 44607
    285285    RegistryKey = '\Software\Chronosoft\vCard Studio'
    286286    RegistryRoot = rrKeyCurrentUser
  • trunk/vCardStudio.lpi

    r110 r112  
    231231        <IsPartOfProject Value="True"/>
    232232        <ComponentName Value="FormNameDetails"/>
     233        <HasResources Value="True"/>
    233234        <ResourceBaseClass Value="Form"/>
    234235      </Unit20>
Note: See TracChangeset for help on using the changeset viewer.