IconBrowser

By knoeki on Nov 17, 2009

Image

Just a simple tool to aid development. makes it easy to flip through an iconfile, and get it's index number.

Press the + and - buttons to, respectively, go to the next or previous icon.

The field below the icon will show the icon's index number. If you fill in any numerical value here, you can use the jump button to jump to that index.

the button all the way at the bottom is self-explanatory.

comments? questions? like it? find it useful? leave a comment ;_)

dialog icobrowse {
  title "IconBrowser"
  size -1 -1 55 64
  option dbu
  icon 1, 3 8 32 32
  button "+", 2, 37 8 16 15
  button "-", 3, 37 25 16 15
  box "Browse", 4, 0 0 55 53
  edit "", 5, 2 42 17 10
  button "Jump", 6, 20 42 33 9
  button "Select icon file...", 7, 0 54 55 10
}

alias iconbrowse {
    dialog -dm icobrowse icobrowse
}

on *:DIALOG:icobrowse:sclick:7: {
    set %icobrowse.file $sfile($mircdir, Select an icon...)
    did -g $dname 1 0 $qt(%icobrowse.file)
    did -ra $dname 5 0
}

on *:DIALOG:icobrowse:sclick:2: {
    var %new $calc($did($dname, 5) + 1)
    did -ra $dname 5 %new
    did -g $dname 1 %new $qt(%icobrowse.file)
}

on *:DIALOG:icobrowse:sclick:3: {
    var %new $calc($did($dname, 5) - 1)
    did -ra $dname 5 %new
    did -g $dname 1 %new $qt(%icobrowse.file)
}

on *:DIALOG:icobrowse:sclick:6: {
    did -g $dname $did($dname, 5) %new $qt(%icobrowse.file)
}

on *:DIALOG:icobrowse:close:0: {
    unset %icobrowse.*
}

Comments

Sign in to comment.
Silo   -  Dec 11, 2009

I wish I found this a week ago!!! I had to make my own because I'd never used .icl files before and was getting frustrated trying work out an icons index number.

Instead of using did -g I used a combo box to list the icons (MDX) and echoed the number to the screen as you scrolled up or down using arrow keys etc

Good work!!!!

 Respond  
knoeki   -  Nov 18, 2009

Updated it a bit, specifically fixed a small bug, and made the icon displayarea larger.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.