| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sat Oct 30, 2004 8:10 pm Post subject: 3D Button Style on ICON |
|
|
BITBTN transparency...where is it
BITMAP with ICO used with CLICK and HAND style not good inaff
I like to create button style effect like in internet explorer...
Very nice example is in ACDSee 7.0 |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Oct 31, 2004 10:48 am Post subject: |
|
|
If I remember correctly, the colour of one of the pixels in the corner of the bitmap is used for the transparent mask. It's either the bottom left or the top left. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Oct 31, 2004 4:35 pm Post subject: |
|
|
| jules wrote: | | If I remember correctly, the colour of one of the pixels in the corner of the bitmap is used for the transparent mask. It's either the bottom left or the top left. |
Jules you are correct. It is the top left corner.
Filip, if you are making your own bitmaps for BITBTNs it, in my experience
is best to use white for the background color, but you can use whichever
color your paint program suggests to use for transparency as well.
Happy coding... _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Oct 31, 2004 4:54 pm Post subject: |
|
|
I believe most people use magenta(I think that's what the color is called), it has an RGB value of 255,0,255. Pretty much should use whatever color is not in the part of the bitmap you want to show. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Nov 01, 2004 9:37 am Post subject: |
|
|
Personally I use 128, 128, 0. Once you see what colour that is, you will understand why. It is the colour of a stagnant pond. I can't imagine ever wanting to use it in an image.  _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Mon Nov 01, 2004 11:24 am Post subject: |
|
|
I see my mistake BITBTN dont use XP design
VDS 4 have dont use 100% XP design
is this fixed in VDS5
I like to use VDS5 but GUI is not stable
Will be VDS6 any better like better in Visual developing ACTIVE DIALOG DISIGNER all the time with properties and options and a window with code or this is only a dream...
Im wainting for this to happend many years |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Nov 01, 2004 2:30 pm Post subject: |
|
|
| filip wrote: | VDS 4 have dont use 100% XP design
is this fixed in VDS5 |
VDS 5 supports XP themes.
| filip wrote: | | I like to use VDS5 but GUI is not stable |
I'm sorry, I think that is a ridiculous statement. I have spent countless days developing with VDS 5. I'm not suggesting it never crashes, but it's a lot better than many applications including some big names (ever tried using Corel products?) The stability of the IDE just isn't an issue, and I use it a lot.
| filip wrote: | | Will be VDS6 any better like better in Visual developing ACTIVE DIALOG DISIGNER all the time with properties and options and a window with code or this is only a dream... |
Not for me. If VDS had an IDE just like Delphi it would lose one of the few remaining advantages it has. I like to work on the whole source file. In any case, since the VDS language doesn't isolate event processing code and other routines into separate blocks, it wouldn't be practical. The Dialog Designer is meant simply to speed up the process of generating the code to display dialogs. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Tue Nov 02, 2004 2:11 pm Post subject: |
|
|
Hi Guys,
Personally, I think VDS is awesome just the way it is. We are very fortunate to have such a neat programming package.
Cheers,
- Boo |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Nov 02, 2004 3:21 pm Post subject: |
|
|
| Quote: | | I like to use VDS5 but GUI is not stable |
I think when he says this he means the VDS gui does not offer the exact features he's looking for?
The bitbtn I think is using the FLAT style, possibly if this could be an option to remove or a style added like '3DSTYLE' then the bitbtn would have the 3d button style around it and not be a flat type button. I'm not sure if this is possible though. I think delphi has a speedbutton; I can't recall off hand but I'm pretty sure its also a button but allows a glyph as well and uses the old school 3d style.
Really though if you want 3d buttons you can easily simulate this with a bitmap and having it use the CLICK style. Yes it's a workaround but honestly you have to use what you have currently.
Also I really find the VDS gui to be very good, yes it's basic but you don't really need anything too fancy to create beautiful gui's. Yes once you use designers like delphis, vb's or c++ you find its a 'little' easier to design gui's and easy to assign procedures/events but it really is not an issue to type the code out in the script window either. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Nov 02, 2004 6:59 pm Post subject: |
|
|
The BITBTN has a flat style because that is the normal style for bitmap buttons. 3D buttons were an older style, but when the BITBTN was introduced (in VDS 3 I think) the flat style was taking over, so that's what VDS used. One of the things with VDS is to simplify programming by reducing the unnecessary choices, so I didn't bother about support for the old fashioned 3D button style..
The Delphi BITBTN is a pretty lightweight component so I expect it may be replaced with something with a few more features in VDS 6. But I don't want to use components like Jordan Russell's Toolbar97 buttons, which I remember trying out for VDS 3 and they added about 80K to the runtime size all on their own! _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|