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 


Undiscovered dialog element

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


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

PostPosted: Fri Jan 21, 2005 2:54 pm    Post subject: Undiscovered dialog element Reply with quote

While in the process of checking the correspondence between the VDS source code and the help file, I found an undocumented dialog element. Don't get too excited, but try this:

Code:
  rem undocumented dialog element!
  dialog create,Test,-1,0,240,160
  dialog add,colorgrid,colorgrid1,10,10,,,2,,CLICK
  dialog show
:loop
  wait event
  goto @event()
:colorgrid1click
  rem info @dlgtext(colorgrid1)
  goto loop
:close
  stop


As far as I can tell, it is completely useless, as there appears to be no code to get information into or out of it. I presume it was put there during the SADE era, as I had no knowledge of it, so I presume it is in VDS 4, and possibly even in VDS 3!

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


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Fri Jan 21, 2005 2:57 pm    Post subject: Reply with quote

Interesting... Cool
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Fri Jan 21, 2005 4:30 pm    Post subject: Reply with quote

Normal commands like "dialog setpos" and "@dlgpos()" seem to work just fine with this colorgrid. Maybe there is a special function to get the front- and backgroundcolors?
_________________
[ 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
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Jan 21, 2005 5:39 pm    Post subject: Reply with quote

"COLORGRID" doesn't seem to be in VDS 3... Confused

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


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

PostPosted: Fri Jan 21, 2005 6:24 pm    Post subject: Reply with quote

Skit3000 wrote:
Normal commands like "dialog setpos" and "@dlgpos()" seem to work just fine with this colorgrid. Maybe there is a special function to get the front- and backgroundcolors?


They would because it's just a windowed control and the functions don't need to know anything about it. But there is no code to set and get the selected colors anywhere in the VDS runtime. Perhaps the API wizards will come up with an API way of doing it. I guess it's just a matter of finding the right message to send to the window's handle.

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


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 22, 2005 4:18 am    Post subject: Reply with quote

Cool! Thumbs Up Will you add a function to get the values from it? Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
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: Sat Jan 22, 2005 10:54 am    Post subject: Reply with quote

I can either leave it in and make it useable, or take it out altogether. Personally, I'm not sure it's really worth the 8K overhead. For the number of occasions it might be useful, you could achieve the same end using a set of colored bitmaps.

Mind you, much could be said of many of the things SADE added. Whoever uses the TIME element? Or ANIICON? There is a ton of more generally useful dialog elements that could have been added. It's largely a matter of personal interest, I guess.

Now might be a good time to start a thread under Wishlist about what would be good new dialog elements to have, and what not.

_________________
The Tech Pro
www.tech-pro.net
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: Sat Jan 22, 2005 11:06 am    Post subject: Reply with quote

jules wrote:
For the number of occasions it might be useful, you could achieve the same end using a set of colored bitmaps.


Having seen Mac's bar chart example, I'll change that to "a set of colored text elements."

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


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jan 22, 2005 4:19 pm    Post subject: Reply with quote

I sold the vdselm extension along time ago to SADE along with source. It looks like alot of the old vdselm extensions elements were taken out of the code and put directly into vds. Much of these elements - time, colorgrid, aniicon were in the vdselm. I think you may be able to set the foreground and background color of the colorgrid by assigning a STYLE to the colorgrid, the style of course has to specify those two colors.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 22, 2005 5:07 pm    Post subject: Reply with quote

I donno if I'm going to ever use it, but something that I would really like
to see natively in VDS instead of a colorgrid is a colorcombo box.

I would use the TIME element if it let you take its border away.

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


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Jan 22, 2005 6:00 pm    Post subject: Reply with quote

jules wrote:
jules wrote:
For the number of occasions it might be useful, you could achieve the same end using a set of colored bitmaps.


Having seen Mac's bar chart example, I'll change that to "a set of colored text elements."


Actually posted an HTML "color picker" with a 216 color grid
(using text elements) a while back... Wink

The code is here:
http://www.vdsworld.com/forum/viewtopic.php?p=5694

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


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

PostPosted: Mon Jan 24, 2005 9:12 am    Post subject: Reply with quote

PGWARE wrote:
I sold the vdselm extension along time ago to SADE along with source. It looks like alot of the old vdselm extensions elements were taken out of the code and put directly into vds. Much of these elements - time, colorgrid, aniicon were in the vdselm. I think you may be able to set the foreground and background color of the colorgrid by assigning a STYLE to the colorgrid, the style of course has to specify those two colors.


Ah. I didn't try that. But for it to be useful, you need to be able to click on a box with the right or left mouse button, to choose a background or foreground color, and get the result. Clicking generates an event, but the support for this element in the @dlgtext function has been missed out.

_________________
The Tech Pro
www.tech-pro.net
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
Page 1 of 1

 
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