CnPack Forum


 
西方失败
普通灌水员
Rank: 2



UID 455028
Digest Posts 0
Credits 75
Posts 26
点点分 75
Reading Access 10
Registered 2021-12-18
Status Offline
Post at 2024-5-2 23:28  Profile | Blog | P.M. 
显示bug

似乎前面有这种特殊字符的时候显示不太正常


Image Attachment: 2024-5-2-1.png (2024-5-2 23:28, 74.37 K)

Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2024-5-7 15:47  Profile | Blog | P.M. 
是什么版本的Delphi,什么版本的CnWizards?如果是D12,尝试下最新的每日构建试一试?
Top
西方失败
普通灌水员
Rank: 2



UID 455028
Digest Posts 0
Credits 75
Posts 26
点点分 75
Reading Access 10
Registered 2021-12-18
Status Offline
Post at 2024-5-10 00:02  Profile | Blog | P.M. 
12.1 就是每日构建最新版
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2024-5-11 20:41  Profile | Blog | P.M. 
那这段代码发我一下?我看看是不是特殊字符宽度计算错误。
Top
西方失败
普通灌水员
Rank: 2



UID 455028
Digest Posts 0
Credits 75
Posts 26
点点分 75
Reading Access 10
Registered 2021-12-18
Status Offline
Post at 2024-5-12 19:18  Profile | Blog | P.M. 
procedure TMytstringgrid.HeaderClick(Column: TColumn);
var
  header: theader;
  id: Integer;
begin
  header := THeader(self.FindStyleResource('header'));
  id := Column.Index;
  if header.Items[id].TagString = '' then
  begin
    header.Items[id].TagString := '▲';
    self.sort(id, true);
  end
  else if header.Items[id].TagString = '▲' then
  begin
    header.Items[id].TagString := '▼';
    self.sort(id, false);
  end
  else if header.Items[id].TagString = '▼' then
  begin
//    header.Items[id].TagString := '';
    header.Items[id].TagString := '▲';
    self.sort(id, true);
  end;
  for var i := 0 to header.Count - 1 do
  begin
    if i <> id then
      header.Items.TagString := '';
  end;
end;
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2024-8-3 19:10  Profile | Blog | P.M. 
这个问题水还很深居然一直搞不定。。。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2024-8-4 06:43  Profile | Blog | P.M. 
先试一试每日构建1197?
Top
 




All times are GMT++8, the time now is 2024-11-21 20:51

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.009468 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP