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 


Transparent Groupelement

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


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Jan 22, 2003 5:52 pm    Post subject: Transparent Groupelement Reply with quote

Hi,

is there a way to make a group element transparent ?
I want to show a bitmap through a group box (from the whole dialog
background)

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Jan 22, 2003 7:11 pm    Post subject: Reply with quote

Maybe you can use this, for simulating group elements. You can't use dialog setpos with it...

Code:

rem Works with VDS 3 and 4

rem This script makes a Group element which can be invisible...
rem Make sure you have an existing group that can be overwritten...

  DIALOG CREATE,Group elements,-1,0,325,268
  DIALOG ADD,GROUP,GROUP1,12,16,286,238
  DIALOG SHOW

rem              Name  |  Value  |  BGColor
%%CreateGroup = GROUP1 | Group 1 | INVISIBLE

rem Name has to be the name of an existing group (which will be deleted)...
rem Value must be the value you like to use...
rem BGColor is the background color of the group. Use INVISIBLE for an invisible style...

gosub CreateGroup


:Evloop
wait event
goto @event()

:Close
exit

rem Include this in all your scripts...
rem -----------------------------------

:CreateGroup
  PARSE "%n;%v;%%bg",%%creategroup
  PARSE "%t;%l;%w;%h",@dlgpos(%n,TLWH)
  DIALOG REMOVE,%n
  DIALOG ADD,STYLE,%nSTYLE1,,6,,GRAY,FOREGROUND
  DIALOG ADD,STYLE,%nSTYLE2,,6,,WHITE,FOREGROUND
  if @both(@not(@null(%%bg)),@not(@equal(%%bg,INVISIBLE)))
    DIALOG ADD,STYLE,%nSTYLE3,,6,,%%bg,FOREGROUND
    DIALOG ADD,TEXT,TEXT10,@fadd(5,%t),%l,%w,%h,,%nSTYLE3
    end
  DIALOG ADD,TEXT,%nTEXT1,@fadd(5,%t),@fadd(0,%l),%w,1,,,%nSTYLE1
  DIALOG ADD,TEXT,%nTEXT2,@fadd(5,%t),@fadd(0,%l),1,%h,TEXT2,,%nSTYLE1
  DIALOG ADD,TEXT,%nTEXT3,@fadd(5,%t),@sum(%l,@pred(%w)),,%h,,,%nSTYLE1
  DIALOG ADD,TEXT,%nTEXT4,@sum(5,%t,%h),@fadd(0,%l),%w,1,,,%nSTYLE1
  DIALOG ADD,TEXT,%nTEXT5,@fadd(6,%t),@fadd(1,%l),@diff(%w,2),1,TEXT5,,%nSTYLE2
  DIALOG ADD,TEXT,%nTEXT6,@fadd(6,%t),@fadd(1,%l),1,@pred(%h),,,%nSTYLE2
  DIALOG ADD,TEXT,%nTEXT7,@sum(6,%t,%h),@fadd(1,%l),%w,1,,,%nSTYLE2
  DIALOG ADD,TEXT,%nTEXT8,@fadd(6,%t),@fadd(%w,%l), 1,%h,,,%nSTYLE2
  DIALOG ADD,TEXT,%nTITLE,@fadd(0,%t),@fadd(8,%l),,,%v
  exit
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jan 22, 2003 7:33 pm    Post subject: Reply with quote

... Or a less complicated way:

Code:
DIALOG CREATE,Group Element Test,-1,0,240,160
  DIALOG ADD,BITMAP,BITMAP1,0,0,240,160,@windir(s)\setup.bmp,,STRETCH
  DIALOG ADD,GROUP,GROUP1,30,20,180,2
  DIALOG ADD,GROUP,GROUP3,108,20,180,2
  DIALOG ADD,GROUP,GROUP2,32,20,2,76
  DIALOG ADD,GROUP,GROUP4,32,198,2,76
  DIALOG SHOW
  wait event
  exit


Of course Skit's example probably looks better. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Jan 23, 2003 7:29 am    Post subject: Transparent Groupelement Reply with quote

Hi,

thank you for your answers.
Is there a way with an api call or something else ?
Because I wanted to use the other group element functionality
(hiding and showing whole groups).

Bye,Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 6:29 pm    Post subject: Reply with quote

FreezingFire wrote:
There a 10 kinds of people who understand binary code: Those who do and those who don't.


Can you pass me a binary-conventor??? Very Happy


Last edited by Skit3000 on Thu Jan 23, 2003 6:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jan 23, 2003 6:35 pm    Post subject: Reply with quote

http://www.sitinthecorner.com/binary/binary.php - Good Binary Converter.

However, that's not really the point -- "1" is like "yes" or "on" and "0" is
for "no" or "off". Confused So see if you can guess. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team


Last edited by FreezingFire on Fri Jan 24, 2003 1:07 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 6:46 pm    Post subject: Reply with quote

FreezingFire, Editted by Skit wrote:
There are yesno kinds of people who understand binary code: Those who do and those who don't.


I still think there has to be a 2 on that place... Confused Laughing
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jan 23, 2003 7:11 pm    Post subject: Reply with quote

You proved his point Skit Wink
_________________
-Sheep
My pockets hurt...
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 -> Miscellaneous 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