Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionKeeping select visible when losing focus? Pin
Paul Riley21-Feb-03 10:20
Paul Riley21-Feb-03 10:20 
AnswerRe: Keeping select visible when losing focus? Pin
Furty21-Feb-03 13:46
Furty21-Feb-03 13:46 
QuestionFree grid controls? Pin
Domenic Denicola21-Feb-03 8:57
Domenic Denicola21-Feb-03 8:57 
AnswerRe: Free grid controls? Pin
Nnamdi Onyeyiri21-Feb-03 9:23
Nnamdi Onyeyiri21-Feb-03 9:23 
GeneralOwner Draw Splitter changing background when moving Pin
STW21-Feb-03 5:29
STW21-Feb-03 5:29 
GeneralRe: Owner Draw Splitter changing background when moving Pin
Stephane Rodriguez.21-Feb-03 20:18
Stephane Rodriguez.21-Feb-03 20:18 
GeneralRe: Owner Draw Splitter changing background when moving Pin
STW23-Feb-03 6:51
STW23-Feb-03 6:51 
GeneralRe: Owner Draw Splitter changing background when moving Pin
Stephane Rodriguez.23-Feb-03 7:26
Stephane Rodriguez.23-Feb-03 7:26 
STW wrote:
So I can't derive from SplitterClass and than overwrite the DrawSplitHelper?

You can derive the class since it's not internal nor sealed but, since almost all methods are private, by inheriting the class you won't get them. (that's a basic inheritance rule).



STW wrote:
What do you mean with "write your own splitter window"?

I mean "write your own splitter window".
The splitter class is a System.Windows.Forms.control derived class, so basically you have to do exactly that, and implement all the stuff. Fortunately, the .NET splitter class is much simpler than the MFC Splitter Window (which acts as a container and provides a lot of implementation for scrollbars, etc.). Using your own implementation, almost the only thing you have to do is to provide OnMouseDown, OnMouseMove and OnMouseUp handlers, and call the native WIN32 SetCapture()/ReleaseCapture() whenever needed.


That said, although I haven't tried it, I would simply try to override Splitter.WndProc(ref Message m) and implement my own WM_PAINT handler. Just in case...Unsure | :~

Good luck!
Generalsimple explaination Pin
sacoskun21-Feb-03 4:16
sacoskun21-Feb-03 4:16 
GeneralRe: simple explaination Pin
Atul Kale21-Feb-03 5:15
Atul Kale21-Feb-03 5:15 
GeneralRe: simple explaination Pin
sacoskun21-Feb-03 8:05
sacoskun21-Feb-03 8:05 
GeneralRe: simple explaination Pin
Atul Kale23-Feb-03 5:41
Atul Kale23-Feb-03 5:41 
GeneralRe: simple explaination Pin
sacoskun24-Feb-03 10:27
sacoskun24-Feb-03 10:27 
GeneralString to Binary Pin
Mazdak21-Feb-03 0:57
Mazdak21-Feb-03 0:57 
GeneralRe: String to Binary Pin
Anonymous21-Feb-03 2:03
Anonymous21-Feb-03 2:03 
GeneralRe: String to Binary Pin
leppie21-Feb-03 6:01
leppie21-Feb-03 6:01 
GeneralRe: String to Binary Pin
Mazdak21-Feb-03 9:27
Mazdak21-Feb-03 9:27 
GeneralWorking with Exchange Server from ASP.NET Pin
otto_20-Feb-03 23:38
otto_20-Feb-03 23:38 
GeneralPrevent child form from being moved Pin
StefanBuchman20-Feb-03 20:25
StefanBuchman20-Feb-03 20:25 
GeneralRe: Prevent child form from being moved Pin
draco_iii21-Feb-03 3:46
draco_iii21-Feb-03 3:46 
Questionhow can i move a rectangular from one position to another Pin
chiou20-Feb-03 19:50
chiou20-Feb-03 19:50 
AnswerRe: how can i move a rectangular from one position to another Pin
draco_iii21-Feb-03 3:58
draco_iii21-Feb-03 3:58 
GeneralRe: how can i move a rectangular from one position to another Pin
chiou23-Feb-03 14:09
chiou23-Feb-03 14:09 
GeneralWarning Pin
monrobot1320-Feb-03 17:55
monrobot1320-Feb-03 17:55 
GeneralRe: Warning Pin
monrobot1320-Feb-03 18:02
monrobot1320-Feb-03 18:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.