![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0
![]() |
Z-Buffering in a Windows Form?
Hey all.
I was wondering if there was a current implementation of Z-Buffering in a form's controls such as BringForward or SendBackward to bring the control forward one position (I know of BringToFront and SendToBack). I think I could build one myself, but I didn't want to reinvent the wheel if necessary. Thanks.
__________________
The meek will inherit the earth. -WDaquell |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
I'm no expert at doing stuff like this, but I am an expert with google, maybe this thread can help, this guy seems to have the same question? Other than what this thread has to offer, from what i can see there doesn't seem to be anything of the sort.
http://www.experts-exchange.com/Prog..._21230203.html just out of curiosity, whatcha working on? what you trying to do? Last edited by melbolt; May 25th, 2005 at 6:43 PM. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0
![]() |
melbolt, Bravo!
You're answer, in conjunction with a mega-brainstorm otherwise not occurring without you answer, provided me with the solution! I'm designing an interface similar to MS Publisher's, encapsulated into one class. This class (or maybe a component, too, if I get bored or something...) can then be added to any application to let the end-user at runtime design publications and such. However, for my purposes, I'm building a transcript-designer for schools. The concept is that the teacher can enter in raw information by means of a wizard, the program will format it into a transcript, and the teacher can edit the transcript manually or by applying styles and such. Thanks again for the answer! I was really stumped until this moment! (now, I think ecstatic bordering insanity describes my mood)
__________________
The meek will inherit the earth. -WDaquell |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0
![]() |
I forgot to post the solution for future reference or general referendum *slaps forehead*.
To get the Z-Index of a particular control, call its parent's Controls.GetChildIndex() : Overloads Public Function GetChildIndex( _ ByVal child As Control, _ ByVal throwException As Boolean _ ) As Integer To set the Z-Index of a control, call its parent's Controls.SetChildIndex() : Public Sub SetChildIndex( _ ByVal child As Control, _ ByVal newIndex As Integer _ ) It said that quite clearly in the MSDN. I just wasn't smart enough to look for it. melbolt, on the other hand, was .Thanks again.
__________________
The meek will inherit the earth. -WDaquell |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|