| View previous topic :: View next topic |
| Author |
Message |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 21, 2005 2:54 pm Post subject: Undiscovered dialog element |
|
|
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 |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Jan 21, 2005 2:57 pm Post subject: |
|
|
Interesting...  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Jan 21, 2005 5:39 pm Post subject: |
|
|
"COLORGRID" doesn't seem to be in VDS 3...
Cheers, Mac  _________________ 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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 21, 2005 6:24 pm Post subject: |
|
|
| 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 22, 2005 4:18 am Post subject: |
|
|
Cool! Will you add a function to get the values from it?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Jan 22, 2005 10:54 am Post subject: |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Jan 22, 2005 11:06 am Post subject: |
|
|
| 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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jan 22, 2005 4:19 pm Post subject: |
|
|
| 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 22, 2005 5:07 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jan 22, 2005 6:00 pm Post subject: |
|
|
| 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...
The code is here:
http://www.vdsworld.com/forum/viewtopic.php?p=5694
Cheers, Mac  _________________ 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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Jan 24, 2005 9:12 am Post subject: |
|
|
| 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 |
|
 |
|