Folder Color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • JDog37
    No longer a forum member
    • Feb 2008
    • 566

    Folder Color

    If I use the create a folder, can I pick a color for the folder I created, (Red, Green, Blue, Yellow)...

    Say the user wants to create a folder but wants to choose a color for that folder, how would I do that??

    Other people helped me with this code Thanks to all!! :
    Code:
    local sBaseFolder = Dialog.FolderBrowse("Select a Directory for storing your data.", _DesktopFolder);
    local sFolderName = Input.GetText("Input1")
    
    if sBaseFolder ~= "CANCEL" and sFolderName ~= "" then
    	MainFolder = sBaseFolder.."\\"..sFolderName
    	Folder.Create(MainFolder)
    	
    	local msgsubfolders = ""
    	
    	for n = 1, 6 do
    		if CheckBox.GetChecked("CheckBox"..n) then
    			local SubFolder = MainFolder.."\\"..CheckBox.GetText("CheckBox"..n)
    			Folder.Create(SubFolder)
    			msgsubfolders = msgsubfolders..SubFolder.."\r\n\t"
    		end
    	end
    	
    result = Dialog.Message("Notice", "Your Main WorkField Has Now Been Created.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    Now all I need is the colored folders!! Like a color coding system..

    Thank you guys and have a great weekend!
    Joe
  • JDog37
    No longer a forum member
    • Feb 2008
    • 566

    #2
    Anyone...

    Hello, anyone care to help me out?? I figured maybe I can use a ICON for the color and look, but I dont know how to apply that to whatever the user pics..

    Say this user wants a "Red" folder and A blue one. Red being Photos, and Blue Music folders... How can I set it up so they can pick??? I'm trying to explain....

    Thanks,
    Joe

    Comment

    • Samio
      Forum Member
      • Nov 2006
      • 191

      #3
      Originally posted by JDog37 View Post
      If I use the create a folder, can I pick a color for the folder I created, (Red, Green, Blue, Yellow)...

      Say the user wants to create a folder but wants to choose a color for that folder, how would I do that??

      Other people helped me with this code Thanks to all!! :
      Code:
      local sBaseFolder = Dialog.FolderBrowse("Select a Directory for storing your data.", _DesktopFolder);
      local sFolderName = Input.GetText("Input1")
      
      if sBaseFolder ~= "CANCEL" and sFolderName ~= "" then
      	MainFolder = sBaseFolder.."\\"..sFolderName
      	Folder.Create(MainFolder)
      	
      	local msgsubfolders = ""
      	
      	for n = 1, 6 do
      		if CheckBox.GetChecked("CheckBox"..n) then
      			local SubFolder = MainFolder.."\\"..CheckBox.GetText("CheckBox"..n)
      			Folder.Create(SubFolder)
      			msgsubfolders = msgsubfolders..SubFolder.."\r\n\t"
      		end
      	end
      	
      result = Dialog.Message("Notice", "Your Main WorkField Has Now Been Created.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
      end
      Now all I need is the colored folders!! Like a color coding system..

      Thank you guys and have a great weekend!
      Joe
      It isn't possible Change Folders Color.
      You can Change Foldr ICon With a Icon similar a colored Folder.
      for this:
      1- Make a INI file with this name (Desktop.ini) to the your folder.
      2- Insert This code th the Desktop.INI and save it.
      code:
      [.ShellClassInfo]
      IconFile=%icon%
      %icon% is full path for your icon.
      3- Set system and hidden attribute for desktop.ini
      4- Set system attribute for your folder

      Comment

      • JDog37
        No longer a forum member
        • Feb 2008
        • 566

        #4
        Cool

        I will give it a shot, thank you!!!! I am off 2 work right now, I'll try it tonight!!

        THank You,
        Joe :yes

        Comment

        • webultra
          Forum Member
          • Mar 2007
          • 225

          #5
          I made a small icon library (FolderColors.zip) for u. It contains 5 different colors of 48x48px and true color each. U can create more icon sizes, resolutions and colors using an image editor and microangelo. The zip file contains the icon library and a desktop.ini file that will show you how to set a different color for each folder:

          IconIndex=1 (Normal yellow color)
          IconIndex=2 (Green color)
          IconIndex=3 (Blue color)
          IconIndex=4 (Red color)
          IconIndex=5 (Purple color)

          For example:

          IconFile=.\FolderColorIcons.icl
          IconIndex=4

          So u only have to drop the icon library and the desktop.ini file into desired folder changing the icon index of your preference. Or you can only drop the selected icon file (of the Individual icons.rar file) into the desired folder and set the IconIndex to 0. For example:

          IconFile=.\2.ico
          IconIndex=0

          Comment

          • JDog37
            No longer a forum member
            • Feb 2008
            • 566

            #6
            Wow

            WOW, Thank you so much fo the time you put into this for me. I have been at work allot but when I get home I will try it!!! THANK YOU!!!

            Comment

            Working...
            X