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

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Jan 22, 2003 5:52 pm Post subject: Transparent Groupelement |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Jan 22, 2003 7:11 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 22, 2003 7:33 pm Post subject: |
|
|
... 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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Jan 23, 2003 7:29 am Post subject: Transparent Groupelement |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 6:29 pm Post subject: |
|
|
| 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??? 
Last edited by Skit3000 on Thu Jan 23, 2003 6:36 pm; edited 1 time in total |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jan 23, 2003 6:35 pm Post subject: |
|
|
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". So see if you can guess.  _________________ 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 6:46 pm Post subject: |
|
|
| 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...  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jan 23, 2003 7:11 pm Post subject: |
|
|
You proved his point Skit  _________________ -Sheep
My pockets hurt... |
|
| 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
|
|