| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue May 28, 2002 8:31 am Post subject: STYLE to Menus ? |
|
|
Hi,
is there a way to make menus shown in a specific style (color) ?
I found the following in the vds help:
| Quote: | | The STYLE dialog element defines a typeface, text attributes and colors which are associated with a style name. The style name can be used in the DLGTYPE dialog element to have it apply globally to the whole dialog, or it can be applied to individual elements. |
What is dlgtype ?
Does somebody have an idea ?
Thank you,
Fabian |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue May 28, 2002 4:15 pm Post subject: |
|
|
__________________________________________________________________________________________________________________________
DLGTYPE is a "leftover" in the help file from VDS2x
(it should have been removed). The STYLE element
replaced it in VDS3x and later.
Not all elements can have their style changed. The
menu style cannot be changed in VDS3x, not sure
about VDS4.
You can make custom menus by using a child window.
Here's the link to "Custom POPUP menu" (in VDS3
source code). Check all the examples, more features
were added.
http://www.vdsworld.com/forum/viewtopic.php?t=44&postdays=0&postorder=asc&start=0
These are popup menus, but you can use the idea to
create custom menus for the main program, just use
text elements with the CLICK style for "File", "Edit", etc.
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 |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue May 28, 2002 9:05 pm Post subject: |
|
|
At least VDS 4 allows to change the dialog color using something like the following:
| Code: |
DIALOG CREATE,Dialog,-1,0,273,158,COLOR FF8000
DIALOG ADD,LIST,LIST1,6,8,180,144
DIALOG ADD,BUTTON,BUTTON1,8,200,64,24,BUTTON1
DIALOG ADD,BUTTON,BUTTON2,40,200,64,24,BUTTON2
DIALOG SHOW
list loadtext,list1
"1
"2
"3
"4
"5
"6
"7
"8
"9
"10
"11
"12
"13
wait event
|
Not sure if it would ever have any effect on any controls though.
Tommy |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed May 29, 2002 8:18 am Post subject: Change Style to Menus |
|
|
Hi Tommy,
thanks for your help.
This command seems not to affect Buttons and Menus.
Bye,
Fabian |
|
| Back to top |
|
 |
|
|
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
|
|