|
-
October 17th, 2007, 08:42 PM
#1
Senior Member
Create shaped forms with C++
Hello,
I searched the forums and google, but didn't find anything. Ok here is my problem: I have seen that some programs use for their screens different bitmaps. I suppose that the button clicks can be handled by the mouse coords, but how they do it with editbox, memos, grids and all of these stuffs?
-
October 17th, 2007, 09:11 PM
#2
Hi
I have no idea what you are talking about, so I assume you refer to
windows forms objects, like buttons, datagridviews, ..., which seem
to be customised by the developer?
That can be easily done by creating your own controls. Instead of
implementing all the handlers yourself, you have the possibility to
inherit from the windows forms objects thus having available all
that management functionality.
Cheers
If the only tool you have is a hammer, you tend to see every problem as a nail.
(Abraham Maslow, Psychologist, 1908-70)
-
October 17th, 2007, 09:19 PM
#3
Senior Member
No, no, no.
I talking about something else. It is a bitmap that is the form shape with buttons, grids and all other used controls and when I open the program it looks like the picture. Hicap DVR software uses this technology. It has different pictures for different screens.
-
October 17th, 2007, 09:25 PM
#4
Hi
Although not all programs are using the same framework it is likely
that also Hicap DVR software implements its own form-control,
which is also a windows forms control, by inheriting from the base
form control.
Example:
Start Windows Media Player - What you see is that the "screen" (or
form, if I understand you correctly) has a different shape than the
usual forms. This can be done by inheriting from windows.forms.form
and customising (overriding, shadowing) certain properties.
Hope this helps. We are talking Windows, are we? 
Cheers
Last edited by sec_ware; October 17th, 2007 at 09:28 PM.
If the only tool you have is a hammer, you tend to see every problem as a nail.
(Abraham Maslow, Psychologist, 1908-70)
-
October 17th, 2007, 09:33 PM
#5
Senior Member
Yes, something similar. But what they do exactly is that they draw their screen with all controls and use this picture as the screen for their program. May be I can't explain exactly my problem, but I am trying
-
October 22nd, 2007, 08:14 PM
#6
They use alpha transparency. I could probably find some documentation backing this up, if you're really that interested.
Similar Threads
-
By gore in forum Operating Systems
Replies: 3
Last Post: March 7th, 2004, 08:02 AM
-
By gore in forum Newbie Security Questions
Replies: 11
Last Post: December 29th, 2003, 08:01 AM
-
By gizmofreak in forum AntiOnline's General Chit Chat
Replies: 2
Last Post: December 7th, 2003, 06:43 PM
-
Replies: 1
Last Post: July 15th, 2002, 03:46 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|