Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
Questionmore datails about flash files properties Pin
monamour13-Jul-07 15:30
monamour13-Jul-07 15:30 
Questionlistview item backcolor - XP problem [modified] Pin
Glen Harvy13-Jul-07 15:07
Glen Harvy13-Jul-07 15:07 
AnswerRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 2:50
martin_hughes14-Jul-07 2:50 
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 3:56
Glen Harvy14-Jul-07 3:56 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 4:35
martin_hughes14-Jul-07 4:35 
GeneralRe: listview item backcolor - XP problem Pin
Glen Harvy14-Jul-07 5:17
Glen Harvy14-Jul-07 5:17 
GeneralRe: listview item backcolor - XP problem Pin
martin_hughes14-Jul-07 9:51
martin_hughes14-Jul-07 9:51 
QuestionProblems with GUI class design Pin
User 665813-Jul-07 14:06
User 665813-Jul-07 14:06 
Hi everybody,

I'm currently designing a GUI hierarchy comparable to the Winforms one in XNA, so I have something like this:

class Control
class Form : Control
class Button : Control


and methods like this (that's how .NET does it, I copied it for my own GUI):
protected virtual void OnMouseDown(MouseEventArgs e)
{
   mouseDown = true;
}

protected virtual void OnMouseUp(MouseEventArgs e)
{
   mouseDown = false;
}


Now I have a controller which traverses the z-order and notifies the control in question that it just got a MouseDown or MouseUp event.
It looks like that:

List<Control> controls = new List<Control>();
void MouseInput_MouseUp(MouseEventArgs e)
{
   for (int i = controls.Count - 1; i >= 0; i--)
      controls[i].OnMouseUp(e);
}


But I can't call OnMouseUp because it is protected, so how do I tell the control?

regards

modified 12-Sep-18 21:01pm.

AnswerRe: Problems with GUI class design Pin
Luc Pattyn13-Jul-07 14:38
sitebuilderLuc Pattyn13-Jul-07 14:38 
GeneralRe: Problems with GUI class design Pin
User 665814-Jul-07 0:21
User 665814-Jul-07 0:21 
GeneralRe: Problems with GUI class design Pin
Luc Pattyn14-Jul-07 1:36
sitebuilderLuc Pattyn14-Jul-07 1:36 
GeneralRe: Problems with GUI class design Pin
User 665814-Jul-07 3:20
User 665814-Jul-07 3:20 
QuestionVideo Pin
Leslie Sanford13-Jul-07 11:15
Leslie Sanford13-Jul-07 11:15 
Questioncompression Pin
mkl_0713-Jul-07 10:24
mkl_0713-Jul-07 10:24 
AnswerRe: compression Pin
Paul Conrad13-Jul-07 10:31
professionalPaul Conrad13-Jul-07 10:31 
Question[How] Screen reading for automation tasks? Pin
sbscb13-Jul-07 9:59
sbscb13-Jul-07 9:59 
AnswerRe: [How] Screen reading for automation tasks? Pin
Shy Agam13-Jul-07 11:08
Shy Agam13-Jul-07 11:08 
QuestionConcating strings... Pin
Shy Agam13-Jul-07 9:13
Shy Agam13-Jul-07 9:13 
AnswerRe: Concating strings... Pin
PIEBALDconsult13-Jul-07 9:32
mvePIEBALDconsult13-Jul-07 9:32 
AnswerRe: Concating strings... Pin
Guffa13-Jul-07 10:25
Guffa13-Jul-07 10:25 
AnswerRe: Concating strings... Pin
Luc Pattyn13-Jul-07 10:35
sitebuilderLuc Pattyn13-Jul-07 10:35 
QuestionA query regarding deployment!!! Pin
haseebbutt00713-Jul-07 8:02
haseebbutt00713-Jul-07 8:02 
AnswerRe: A query regarding deployment!!! Pin
Dave Kreskowiak13-Jul-07 8:11
mveDave Kreskowiak13-Jul-07 8:11 
GeneralRe: A query regarding deployment!!! Pin
haseebbutt00713-Jul-07 8:42
haseebbutt00713-Jul-07 8:42 
GeneralRe: A query regarding deployment!!! Pin
Dave Kreskowiak13-Jul-07 8:57
mveDave Kreskowiak13-Jul-07 8:57 

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.