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 


New elements in VDS6
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


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

PostPosted: Wed Feb 02, 2005 8:11 pm    Post subject: Reply with quote

This is a little xp-menu-element I created today. You need the vdsbrw50 dll for it to run... Smile

Screenshot:

http://forum.vdsworld.com/download.php?id=58

Reference:

Code:

# Commands:
#
# - xp-menu add,menu,<menuname>,<image file>
#        This command will create a clickable menu header
#        which is needed before you can add items to the
#        menu.
# - xp-menu add,item,<itemname>,<image file>
#        With this command, you can add items to the last
#        created menu. When an item is clicked, an event
#        will occur.
# - xp-menu create,<name>,<top>,<left>,<width>,<hight>,<menu to auto-open>,{<cursor>}
#        This will create the menu and display it at the
#        specified location. The <menu to auto-open>
#        parameter can contain the name of a menu which
#        will automaticly expand. You can use these
#        values for the <cursor> parameter:
#          - default, hand, move, text, crosshair, wait, help,
#            e-resize, n-resize, s-resize, w-resize, ne-resize,
#            nw-resize, se-resize, sw-resize
#        If you don't specify a <cursor> parameter, "default"
#        will be used.
# - xp-menu open,<name>,<menu>
#        You can use this function to open a menu.
# - xp-menu close,<name>,<menu>
#        You can use this function to close a menu.
#
# Functions:
#
# - @xp-menu(item,<name>)
#        This function will return the last item click
#        when a <name>Navigate event occurs.
# - @xp-menu(menu,<name>)
#        This function will return the name of the
#        opened menu.
#
# Events:
#
# - <name>Navigate
#        This event will trigger when somebody clicks
#        a menu item.



printscreen.jpg
 Description:
A screenshot of the element
 Filesize:  21.22 KB
 Viewed:  17387 Time(s)

printscreen.jpg



xp-menu.zip
 Description:
xp-menu VDS unit file

Download
 Filename:  xp-menu.zip
 Filesize:  47.65 KB
 Downloaded:  938 Time(s)


_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!


Last edited by Skit3000 on Sat Feb 05, 2005 3:54 pm; edited 2 times in total
Back to top
View user's profile Send private message
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Wed Feb 02, 2005 8:44 pm    Post subject: Reply with quote

Very Nice Skit.

Very Happy
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Feb 03, 2005 12:52 am    Post subject: Reply with quote

looks great skit

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Feb 03, 2005 2:26 am    Post subject: Reply with quote

Very cool! That is what I was thinking when I was asking about good uses of the browser element.

Skit, did you produce that using DHTML? Regular HTML? Or some other way?

_________________
Joe Floyd
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Feb 03, 2005 2:31 am    Post subject: Reply with quote

Just noticed that you included the source code for the .dsu.

I will check it out - maybe I need to learn some javascript or vbscript...

_________________
Joe Floyd
Back to top
View user's profile Send private message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 179
Location: Netherlands

PostPosted: Thu Feb 03, 2005 7:08 am    Post subject: Reply with quote

Very nice indeed!
I'm sure this dsu will find many uses in my future programs.

Another job wel done Skit!

Laughing
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Feb 03, 2005 10:00 am    Post subject: Reply with quote

Wow, that is awesome!

I've just modified it so that the GIF graphics can be compiled into the executable. I have changed two lines and commented out the old ones so you can see the changes I needed to make. I also had to rename some of the graphics so that the filenames fitted within VDS 5's resource name limit of 8 characters, add #resource directives to add the resources to the executable, and add a line to change the directory to the program directory to ensure that the path to the executable is always correct.

In this form, the example will only show the graphics when run in the IDE if an EXE containing the compiled resources exists. I've attached a Zip with my modified version, including a compiled executable.



xp-menu2.zip
 Description:
Skit's menu example, modified to use compiled-in respurces

Download
 Filename:  xp-menu2.zip
 Filesize:  39.08 KB
 Downloaded:  916 Time(s)


_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu Feb 03, 2005 12:07 pm    Post subject: Reply with quote

Impressive Skit! Thanks!

Excellent work!


Will certainly use this in my next project Smile

Thank to Jules also for the update...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Thu Feb 03, 2005 2:57 pm    Post subject: Reply with quote

Thanks for the update Julian, it indeed is nice to also include the GIF file in the EXE file... Smile
_________________
[ 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
Skit3000
Admin Team


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

PostPosted: Thu Feb 03, 2005 3:08 pm    Post subject: Reply with quote

jwfv wrote:
Just noticed that you included the source code for the .dsu.

I will check it out - maybe I need to learn some javascript or vbscript...


I just got an example script of the internet, and adjusted it so that all the lines which are needed where generated by the VDS script itself... Smile

Does anybody have suggestions for other HTML-element which can be useful for VDS? Smile

_________________
[ 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
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Feb 03, 2005 4:03 pm    Post subject: Reply with quote

Here are some great element ideas:

http://www.blueshoes.net/en/javascript/

Browse through the examples of each component. (Look for the live examples of each.) I was impressed by the variety that they have. It may give someone an idea of coming up with a way to do these things in VDS.


One more question: Is it possible to get rid of the "hand" cursor in the browser control? I would rather have the arrow cursor so it doesn't have a "web page" feel.

_________________
Joe Floyd
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Thu Feb 03, 2005 5:14 pm    Post subject: Reply with quote

jwfv wrote:
One more question: Is it possible to get rid of the "hand" cursor in the browser control? I would rather have the arrow cursor so it doesn't have a "web page" feel.


You can open the xp-menu.dsc file and do a search-and-replace to change the word "hand" into "default" (without quotes)... Smile

_________________
[ 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
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Feb 04, 2005 3:08 am    Post subject: Reply with quote

Skit,
Excelent work... Just wanted to throw my 2cents in. See the code below. It should fix the URL encoded hex characters for the space characters and such.

Code:

if @equal(%1,"ITEM")
    # When the user clicks an item, you can get that
    # item by calling the @xp-menu(item,<elementname>)
    # function. Be aware that if you have menu items
    # which use special HTML characters like a space,
    # you will get their HEX code in return, like %20.
    # Issue above is resolved with this while loop.
    %%EventID = @browser(%2,navURL)
    While @Greater(@Pos("%",%%EventID),0)
      %%HexPos = @Pos("%",%%EventID)
      %%Ascii = @Chr(@Sum($@StrDel(@SubStr(%%EventID,%%HexPos,@Sum(%%HexPos,2)),1),0))
      %%EventID = @StrDel(%%EventID,%%HexPos,@Sum(%%HexPos,2))
      %%EventID = @StrIns(%%EventID,%%HexPos,%%Ascii)
   Wend

  exit %%EventID
end

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Feb 04, 2005 3:10 am    Post subject: Reply with quote

Oops,
Just noticed that I have made 666 posts. I think I need to post once more to change that Laughing

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


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

PostPosted: Fri Feb 04, 2005 8:49 am    Post subject: Reply with quote

I'll implent these things and will upload a new version this evening... Smile
_________________
[ 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
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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