Browse Source

* unicode version of TListViewer.GetText

git-svn-id: branches/unicodekvm@48560 -
nickysn 4 years ago
parent
commit
bb06c623c3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      packages/fv/src/views.inc

+ 8 - 0
packages/fv/src/views.inc

@@ -615,7 +615,11 @@ TYPE
       CONSTRUCTOR Load (Var S: TStream);
       CONSTRUCTOR Load (Var S: TStream);
       FUNCTION GetPalette: PPalette; Virtual;
       FUNCTION GetPalette: PPalette; Virtual;
       FUNCTION IsSelected (Item: Sw_Integer): Boolean; Virtual;
       FUNCTION IsSelected (Item: Sw_Integer): Boolean; Virtual;
+{$ifdef FV_UNICODE}
+      FUNCTION GetText (Item: Sw_Integer; MaxLen: Sw_Integer): UnicodeString; Virtual;
+{$else FV_UNICODE}
       FUNCTION GetText (Item: Sw_Integer; MaxLen: Sw_Integer): String; Virtual;
       FUNCTION GetText (Item: Sw_Integer; MaxLen: Sw_Integer): String; Virtual;
+{$endif FV_UNICODE}
       PROCEDURE Draw; Virtual;
       PROCEDURE Draw; Virtual;
       PROCEDURE FocusItem (Item: Sw_Integer); Virtual;
       PROCEDURE FocusItem (Item: Sw_Integer); Virtual;
       PROCEDURE SetTopItem (Item: Sw_Integer);
       PROCEDURE SetTopItem (Item: Sw_Integer);
@@ -3589,7 +3593,11 @@ END;
 {--TListViewer--------------------------------------------------------------}
 {--TListViewer--------------------------------------------------------------}
 {  GetText -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 28May98 LdB           }
 {  GetText -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 28May98 LdB           }
 {---------------------------------------------------------------------------}
 {---------------------------------------------------------------------------}
+{$ifdef FV_UNICODE}
+FUNCTION TListViewer.GetText (Item: Sw_Integer; MaxLen: Sw_Integer): UnicodeString;
+{$else FV_UNICODE}
 FUNCTION TListViewer.GetText (Item: Sw_Integer; MaxLen: Sw_Integer): String;
 FUNCTION TListViewer.GetText (Item: Sw_Integer; MaxLen: Sw_Integer): String;
+{$endif FV_UNICODE}
 BEGIN                                                 { Abstract method }
 BEGIN                                                 { Abstract method }
    GetText := '';                                     { Return empty }
    GetText := '';                                     { Return empty }
 END;
 END;