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 


help with dialog ADD,STYLE commands
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Mac
Professional Member
Professional Member


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

PostPosted: Mon Aug 12, 2002 5:49 am    Post subject: Reply with quote

OK, the extra comma added in the GROUP element stops
it from working in VDS3, so I went back and edited both
examples again. They have the GROUP for both VDS3 and
VDS4, just use the one you need.

The GROUP element is the first thing I've ran across that
can't have the extra comma and still work in VDS3. 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
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Aug 12, 2002 7:11 am    Post subject: thnaks Reply with quote

mac



i got it to work BUT i see that you are using BITBTN1..so my question is how would i label them? meaning like for butons you have button1, button2, etc how would this work for a program that uses buttons?


sorry for the dumb question


thanks
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: Mon Aug 12, 2002 7:29 am    Post subject: Reply with quote

You can give BITBTNS a name just like regular buttons:

DIALOG ADD,BITBTN,B1,30,60,80,24,,Button," This is a Button "

The examples now have names and captions also.

You really should look in the VDS help file. Press the
help button, choose "Contents", select the "Index" tab,
then scroll down to the "dialog elements", or you can
type in "dialog elements" (without quotes).

This explains what the different parameters are for each element.
For example, here's the BITBTN explanation:

BITBTN,<name>,<top>,<left>,<width>,<height>,<filename>,{<caption>,<hint>}

BTW, the BITBTN element is designed to use bitmaps for
the button (filename parameter), but you can also use
them without one... Wink

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
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Aug 16, 2002 1:12 pm    Post subject: help with dialog ADD,STYLE commands Reply with quote

here is a way to change the background color:

Code:

TITLE Change Background Color - by Tsunami1988
  DIALOG CREATE,Change Background Color,-1,0,300,200
  DIALOG ADD,STYLE,STYLE1,,,,BLACK
  DIALOG ADD,TEXT,TEXT1,0,0,300,200,,STYLE1
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Fri Aug 16, 2002 1:16 pm    Post subject: Reply with quote

You can change the background color of your dialog by doing this:

Code:

dialog create,Test,-1,0,300,200,Color $00FF2500

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Aug 16, 2002 1:26 pm    Post subject: Reply with quote

Does that work for VDS 3.51?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Fri Aug 16, 2002 1:29 pm    Post subject: Reply with quote

No, I don't think it does. Sorry.
_________________
Chris
Http://theblindhouse.com
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
Goto page Previous  1, 2
Page 2 of 2

 
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