This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
san  
#1 Posted : Monday, August 21, 2006 5:59:35 PM(UTC)
san

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):
untitled.bmp
Alex Kon  
#2 Posted : Tuesday, August 22, 2006 3:48:32 PM(UTC)
Alex Kon

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

Users browsing this topic
Guest (3)
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.