Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: A little Bmax help  (Read 1067 times)

0 Members and 1 Guest are viewing this topic.

Xiphirx

wat
A little Bmax help
« on: September 28, 2008, 09:27:21 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
How would I make a window transparent?

As in, making abstract shaped windows (a blob for example). or making Black a transparent color.

Tell me if I am confusing.

Logged
  • For The Swarm
Re: A little Bmax help
« Reply #1 on: September 28, 2008, 09:32:45 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
With difficulty. Functionality like that isn't included in blitzmax by design, as there would be difficulties keeping it cross-compatible. However there are a few functions you can import from the win32 api to do that, once I've finished eating, I'll dig them out for you.
Logged
Re: A little Bmax help
« Reply #2 on: September 28, 2008, 09:42:07 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Logged

Xiphirx

wat
Re: A little Bmax help
« Reply #3 on: September 28, 2008, 10:43:27 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Is there a way to do it without MaxGUI?

I tried defining the win32 function and using it, but nothing happened. No error comes up, but nothing happens.

Code: [Select]
SetLayeredWindowAttributes( hwnd, $00 , Byte(.5), LWA_COLORKEY)

...
Logged
  • For The Swarm
Re: A little Bmax help
« Reply #4 on: September 28, 2008, 10:46:46 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Are you trying to do it on the default graphics window? If so thats not going to work, the way the canvas on the window is drawn all you will see is a black square.
Logged

Xiphirx

wat
Re: A little Bmax help
« Reply #5 on: September 28, 2008, 10:48:52 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Are you trying to do it on the default graphics window? If so thats not going to work, the way the canvas on the window is drawn all you will see is a black square.

Yes, and yes all I see is a black square....
Logged
  • For The Swarm
Re: A little Bmax help
« Reply #6 on: September 28, 2008, 10:50:08 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Tough luck I'm afraid :P. You could always import all the win32 gui code and create the windows yourself but thats goner be a !@#$%, and I'm not going to define all the code needed for that :P.
Logged

Xiphirx

wat
Re: A little Bmax help
« Reply #7 on: September 28, 2008, 10:52:09 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
eh, there goes zeDock : (.
Logged
  • For The Swarm
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.043 seconds with 54 queries.