Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shadow for Panels #410813
11/09/12 13:06
11/09/12 13:06
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
The Title says it!
How do I apply from shadow at the borders of a panel??

Thanks & Regards


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: Shadow for Panels [Re: Yashas] #410814
11/09/12 13:46
11/09/12 13:46
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline
Member
krial057  Offline
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
Just add the shadow to the background image of the panel
(in gimp there is f.i. a function called drop shadows)

Last edited by krial057; 11/09/12 13:47.
Re: Shadow for Panels [Re: krial057] #410820
11/09/12 14:02
11/09/12 14:02
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
If you dont want to edit the picture, use my method:
Create a black picture at runtime with gs which has got the same size as the pic without shadow. Now Simply move it orig.x - 5, orig.y -5 and thats it. Probably chnage the alpha value to 50 for a better result laugh

Re: Shadow for Panels [Re: Ch40zzC0d3r] #410823
11/09/12 14:43
11/09/12 14:43
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
If your window's size is static and If you've got some image-editing-knowledge you should go with krial057's suggestion.

But if your window's size is adjustable (or changes at runtime) I suggest you to use Ch40zzC0d3r's method:
Simply create a new panel and set a black 8x8 picture (can be generated at runtime) as panel-bmap.

The idea behind this is that textures with a resolution of 2^n (minimum 8x8) will be tiled if the panel's size_x or -_y is bigger than the texture.

Last edited by Kartoffel; 11/09/12 15:27.

POTATO-MAN saves the day! - Random
Re: Shadow for Panels [Re: Kartoffel] #410853
11/10/12 01:17
11/10/12 01:17
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1