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 


Skinning VDS apps...
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Wed Dec 04, 2002 4:33 pm    Post subject: Skinning VDS apps... Reply with quote

I have seen several VDs apps that have been skinned with graphic images, however, my attempts to do so have met with very dismal failure. A guide to skinning VDS dialogs would be very helpful. Hint, hint! Wink
Back to top
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Dec 04, 2002 5:22 pm    Post subject: Reply with quote

Your using VDS 4?


If so I might make a quick example... Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Wed Dec 04, 2002 6:10 pm    Post subject: Reply with quote

I usually use VDS 3.51, but I am trying out version 4.5 to see if it is worthy of an upgrade (unless s.a.d.e has version 5 in the works, in which case I might wait). Very Happy Being able to skin a dialog would be a pretty good argument for VDS 4.5
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 6:33 pm    Post subject: Reply with quote

You can use a BITMAP element with the STRETCH
style for a background, just add it first. Wink

Here's a stretchable example (change %%bmp to
a bitmap on your computer).

NOTE: If ya don't save code as a DSC file, the
@path(%0) function doesn't work, so use the full
path to your bitmap if ya don't want to save this. Wink
__________________________________________________________________________________________________________________________
Code:

%%bmp = @path(%0)splash1.bmp

OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
%%wintitle = "Test Program"
DIALOG CREATE,%%wintitle,-1,0,300,200,RESIZABLE
  DIALOG ADD,BITMAP,BkGrnd,0,0,300,200,%%bmp,,STRETCH
  DIALOG ADD,EDIT,E1,20,20,208,127,,,MULTI,WRAP
DIALOG SHOW

:RESIZE
  DIALOG SETPOS,BkGrnd,,,@diff(@winpos(%%wintitle,W),8),@diff(@winpos(%%wintitle,H), 27)
  DIALOG SETPOS,E1,,,@diff(@winpos(%%wintitle,W),100),@diff(@winpos(%%wintitle,H), 100)
:EVLOOP
  WAIT EVENT
  goto @event()

:CLOSE
  EXIT

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
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 7:17 pm    Post subject: Reply with quote

OOPS... Background adjustment height was off by one pixel. Embarassed
It's fixed now. Also replaced the list with an edit element.

BTW, the "27" allows for title bar height, the "8" allows
for discrepancies between the @winpos() function and the
DIALOG SETPOS command (prolly some of this in the
title bar allowance as well). 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
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Wed Dec 04, 2002 9:00 pm    Post subject: Reply with quote

Mac: I've been able to get that far in my attempts before, but how do you account for text or group elements? They always show the grey over the bitmap.
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


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

PostPosted: Wed Dec 04, 2002 9:10 pm    Post subject: Reply with quote

For text elements you can use the transparent option like this:

Code:

dialog add,text,text1,0,0,,,Your Text Here,Transparent


This will remove the "gray" (or any color) from the background of
your text.

For the groups and such, If you want them to match your skinning
theme you will have to make them out of bitmaps.

Check out my ColorCell2 program. It may give you an example.
http://www.cgs.vdsworld.com/x/modules/mydownloads/viewcat.php?cid=3

For buttons, you will have to make bitmaps for normal and pressed
state.

If I have time I will try to make an example for you.

Good luck,

_________________
Chris
Http://theblindhouse.com
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: Wed Dec 04, 2002 9:11 pm    Post subject: Reply with quote

Use the TRANSPARENT style. Wink

DIALOG ADD,TEXT,T1,5,5,,,"This is a test",,TRANSPARENT

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
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 9:14 pm    Post subject: Reply with quote

OOPS... Sorry Chris. I'm too slow typing... Wink
_________________
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
LiquidCode
Moderator Team


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

PostPosted: Wed Dec 04, 2002 9:16 pm    Post subject: Reply with quote

No prob Mac! Very Happy
_________________
Chris
Http://theblindhouse.com
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: Wed Dec 04, 2002 9:21 pm    Post subject: Reply with quote

Lol, I forgot to answer the group question anyway. 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
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 9:50 pm    Post subject: Reply with quote

BTW, you can also use a STYLE for groups if ya
want a solid background that matches the color
scheme rather than another bitmap. 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
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 9:57 pm    Post subject: Reply with quote

LiquidCode wrote:
For buttons, you will have to make bitmaps for normal and pressed state.


Uh... Chris...

Normal buttons work fine over a bitmap... Confused

_________________
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
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Dec 04, 2002 10:12 pm    Post subject: Reply with quote

I think he means to skin em Mac. Rolling Eyes Wink
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


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

PostPosted: Wed Dec 04, 2002 10:17 pm    Post subject: Reply with quote

Well... if that's the case, why not use a BITBTN? 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
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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