forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


icon editor
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Apr 27, 2003 6:41 pm    Post subject: Reply with quote

Skit3000 wrote:
It can be done, by something like this:

Code:

  DIALOG CREATE,Iconizer... :-),-1,0,396,325
REM *** Modified by Dialog Designer on 26-4-2003 - 19:44 ***
  DIALOG ADD,STYLE,STYLE1,,,,FF8000,
  DIALOG ADD,STYLE,STYLE2,,,,000000, 
  DIALOG ADD,GROUP,GROUP1,6,190,150,165,Colors

%x = 1
repeat
%z = 1
  repeat
  DIALOG ADD,TEXT,"X"%x"Z"%z,@fadd(5,@prod(%x,5)),@fadd(10,@prod(%z,5)),5,5,,,CLICK,STYLE1
  %z = @succ(%z)
  until @equal(%z,33)
%x = @succ(%x)
until @equal(%x,33)

DIALOG SHOW

:Clickloop
wait event
%%event = @event()
if @equal(%%event,CLOSE)
  exit
  end
%%clickevent = @substr(%%event,1,@pred(@pos(CLICK,%%event)))
dialog remove,%%clickevent
%x = @substr(%%clickevent,@succ(@pos(X,%%clickevent)),@pred(@pos(Z,%%clickevent)))
%y = @substr(%%clickevent,@succ(@pos(Z,%%clickevent)),@len(%%clickevent))
dialog add,TEXT,%%clickevent,@fadd(5,@prod(%x,5)),@fadd(10,@prod(%y,5)),5,5,,,CLICK,STYLE2
goto Clickloop


I'm still working on it, but I think it takes too long to read / write a file to the screen...


This is not a very elegant way though, it would probably use up many many resources.
It would probably be better to for example use Mac's draw.dll.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Apr 27, 2003 6:43 pm    Post subject: Reply with quote

If you can figure out within the binary code where the icon itself starts,
and how to sort out what code is for each pixel, then convert that code
to a color and position, then you should be able to do this in VDS. I
would make the grid in VDS using the Shape Element since you can
change it's color without the need for a STYLE, and of course, each
element will need click events.

Also, here's a document I've had sitting on my hd about the icon format.

http://garrett.vdsworld.com/IconsinWin32.htm

I had plans of trying to make an icon editor in VDS also, but it's been
some time now since I looked into this.

-Garrett
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Apr 28, 2003 7:16 am    Post subject: Reply with quote

Hi Garrett,

I already found out where it starts. The first pixel is the 'AA' on line 9, the last the 'AA' on line 41.

Code:

  BINFILE OPEN,1,@path(%0)blank.cur,WRITE
  BINFILE WRITE,1,HEX,00 00 01 00 01 00 20 20 10 00 00 00 00 00 E8 02
  BINFILE WRITE,1,HEX,00 00 16 00 00 00 28 00 00 00 20 00 00 00 40 00
  BINFILE WRITE,1,HEX,00 00 01 00 04 00 00 00 00 00 80 02 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 10 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 80 00 00 80 00 00 00 80 80 00 80 00
  BINFILE WRITE,1,HEX,00 00 80 00 80 00 80 80 00 00 C0 C0 C0 00 80 80
  BINFILE WRITE,1,HEX,80 00 00 00 FF 00 00 FF 00 00 00 FF FF 00 FF 00
  BINFILE WRITE,1,HEX,00 00 FF 00 FF 00 FF FF 00 00 FF FF FF 00 AA 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  BINFILE WRITE,1,HEX,00 00 00 00 00 00 00 00 00 00 00 00 AA 00 FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE WRITE,1,HEX,FF FF FF FF FF FF FF FF FF FF FF FF FF FF
  BINFILE CLOSE,1
 
  DIALOG CREATE,Nieuw dialoogvenster,-1,0,240,160
REM *** Gewijzigd door Dialoogbeheer op 26-4-2003 - 17:32 ***
  DIALOG CURSOR,CUSTOM,@path(%0)blank.cur
  DIALOG SHOW
  wait event


BTW. It's a bit strange, but the icon can't be used by VDS... Confused

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Mon Apr 28, 2003 8:52 am    Post subject: Reply with quote

ff...to answer your question from way back...the program just says FULL COLOUR...i'm not sure if it means TRUE COLOUR...the web site does not say...it could be 16k colours (true colour is 24 k...correct?)

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Apr 28, 2003 6:26 pm    Post subject: Reply with quote

Skit3000 wrote:
BTW. It's a bit strange, but the icon can't be used by VDS... Confused


It's just a blank icon with no image, just masking to make it invisible.
It worked for me through VDS 4.x and.... Ooops, almost said....Oooops,
almost said it again!!! Wink

-Garrett
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Apr 28, 2003 8:08 pm    Post subject: Reply with quote

Garrett wrote:
It's just a blank icon with no image, just masking to make it invisible.


But then why does it have icon data and it's not all 00's?

Garrett wrote:
It worked for me through VDS 4.x and.... Ooops, almost said....Oooops,
almost said it again!!! Wink


What'd you almost say? VDSWORLD? Doritos? VDS 5?! Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Apr 29, 2003 7:42 am    Post subject: Reply with quote

The first stuff is the header, so Windows knows that an icon is coming... Wink

BTW. The icon is (if you use Garrett's code) 16 x 16 pixels, with 256 colors...

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 29, 2003 7:33 pm    Post subject: Reply with quote

No, because you said the the AA's indicated where the data stopped/
started.

There are a few FF's thrown into the 00's. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group