Skip to main content
gamedev.net
🔒 Locked

Application Interface

Started by DelphiFreak Jun 3, 2002 at 10:22 AM 4 replies 750+ views
Original Post
DelphiFreak
DelphiFreak
I was working in Borland C++ Builder and I have this interface that came from the Photoshop Web Foundry CD. So I customized the interface just like I want it so I could use it in my application. So I go and load up my trusty BCB and I put the interface on there as a bitmap. And now when I click anywhere on the buttons it just acts like just a regular picture. Is it because I am supposed to use this interface for the internet or is there a way that I could make this interface act like a interface for the application? Thanks
Fruny
Fruny
quote:
Original post by DelphiFreak
... I put the interface on there as a bitmap. And now when I click anywhere on the buttons it just acts like just a regular picture.


Perfectly normal and expected.

quote:

Is there a way that I could make this interface act like a interface for the application?



You will have to derive your own controls from the VCL controls, overloading their drawing methods, or find a control in the library that can be displayed as a picture... or conversely, an image control that can be given callbacks.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
DelphiFreak
DelphiFreak
O.k. so what you''re saying that since I imported it as a bitmap it''s going to act like a bitmap. And if I want to make it act like a interface, I''m going to have to put buttons and controls over the bitmap to make it work the way I want. But tell me something. Why went you make a interface in a program like Photoshop, Paintshop Pro, etc... and then import it to the web, the buttons and controls on the interface work just like a application? So what I''m going to have to do is get me a interface that is meant for application building right?
Fruny
Fruny
On webpages, the interface 'works' because they fundamentally define clickable regions, with java-script switching the bitmaps appropriately ( OnMouse‌Over ... ).

So yeah, basically, you need an interface geared towards application development. As I said, you can modify existing GUI components so that, say, they use the bitmaps you provide when drawn. But that will take some doing, and knowledge of your library (BCB comes with a GUI library called 'Visual Component Library' or VCL (just like Delphi, BTW)) and how to extend it.

Read the help files

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]


[edited by - Fruny on June 3, 2002 8:32:06 PM]

[edited by - Fruny on June 3, 2002 8:32:59 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
DelphiFreak
DelphiFreak
Thanks for your help. Hey let me ask u something else. Do you know of anybody that owns the SederGraphics Interface CD Volume 1? The website address is www.sedergraphics.com Because the CD has a 100 interfaces that is geared toward application development and if they have the CD I could ask them could I please have 1 or 2 that would make my application stand out know what I mean. Thanks!
Fruny
Fruny
Nope, I don''t. Never heard of it

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.