Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 25th, 2005, 4:08 PM   #1
Wraith Daquell
Programmer
 
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0 Wraith Daquell is on a distinguished road
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
Wraith Daquell is offline   Reply With Quote
Old May 25th, 2005, 6:37 PM   #2
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 239
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
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.
melbolt is offline   Reply With Quote
Old May 25th, 2005, 7:38 PM   #3
Wraith Daquell
Programmer
 
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0 Wraith Daquell is on a distinguished road
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
Wraith Daquell is offline   Reply With Quote
Old May 25th, 2005, 7:44 PM   #4
Wraith Daquell
Programmer
 
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0 Wraith Daquell is on a distinguished road
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
Wraith Daquell is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC