Rank: Member
Groups: Guest
Joined: 8/1/2006(UTC) Posts: 33
|
Dear Alex, i m using filelist viewer to display the image from a folder,but i want to display the image name without it extension. thanx san san attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello San, Whether the control will display extension or not depends on the system options (FolderOptions->View->Hide extensions for known files). So, if you want always hide extension you should change behaviour of the ThumbnailListItem class. It will be something like this: Code:public class CustomThumbItem: Aurigma.GraphicsMill.WinControls.ThumbnailListItem
{
public CustomThumbItem(string path)
: base(path)
{
}
public override string GetText(int textInfoId)
{
string result = base.GetText(textInfoId);
if (textInfoId == Aurigma.GraphicsMill.WinControls.ThumbnailListItem.TextInfoIdDisplayName)
{
int dotIndex = result.LastIndexOf('.');
if (dotIndex != -1)
result = result.Substring(0, dotIndex);
}
return result;
}
}
Edited by user Wednesday, December 19, 2007 3:06:44 PM(UTC)
| Reason: Not specified |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.