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 


STYLE to Menus ?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Tue May 28, 2002 8:31 am    Post subject: STYLE to Menus ? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


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

PostPosted: Tue May 28, 2002 4:15 pm    Post subject: Reply with quote

__________________________________________________________________________________________________________________________
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 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
Tommy
Admin Team


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

PostPosted: Tue May 28, 2002 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed May 29, 2002 8:18 am    Post subject: Change Style to Menus Reply with quote

Hi Tommy,

thanks for your help.

This command seems not to affect Buttons and Menus.

Bye,
Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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