Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay28-Dec-03 12:13
Colin Angus Mackay28-Dec-03 12:13 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Nick Parker28-Dec-03 16:55
protectorNick Parker28-Dec-03 16:55 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Bryan White29-Dec-03 22:30
Bryan White29-Dec-03 22:30 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay31-Dec-03 5:37
Colin Angus Mackay31-Dec-03 5:37 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay31-Dec-03 5:39
Colin Angus Mackay31-Dec-03 5:39 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
SherKar1-Jan-04 13:32
SherKar1-Jan-04 13:32 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? - some code to help you Pin
Bryan White1-Jan-04 21:48
Bryan White1-Jan-04 21:48 
Generalvoice Pin
heba_zien27-Dec-03 10:06
heba_zien27-Dec-03 10:06 
GeneralRe: voice Pin
Wizard_0127-Dec-03 10:36
Wizard_0127-Dec-03 10:36 
GeneralRe: voice Pin
Nick Parker27-Dec-03 10:38
protectorNick Parker27-Dec-03 10:38 
GeneralProblem adding web reference to Visual c++ application Pin
Anonymous27-Dec-03 9:56
Anonymous27-Dec-03 9:56 
GeneralConditional Xml Document Reading Pin
LokiSD27-Dec-03 6:04
LokiSD27-Dec-03 6:04 
GeneralRe: Conditional Xml Document Reading Pin
Nick Parker27-Dec-03 8:14
protectorNick Parker27-Dec-03 8:14 
Generalread jpeg into memory Pin
Leon Radley27-Dec-03 5:30
Leon Radley27-Dec-03 5:30 
GeneralRe: read jpeg into memory Pin
Nick Parker27-Dec-03 8:33
protectorNick Parker27-Dec-03 8:33 
GeneralRe: read jpeg into memory Pin
Wizard_0127-Dec-03 8:40
Wizard_0127-Dec-03 8:40 
GeneralRe: read jpeg into memory Pin
Nick Parker27-Dec-03 8:54
protectorNick Parker27-Dec-03 8:54 
GeneralRe: read jpeg into memory Pin
Leon Radley29-Dec-03 1:49
Leon Radley29-Dec-03 1:49 
GeneralADS Pin
realaravind27-Dec-03 2:59
realaravind27-Dec-03 2:59 
GeneralRe: ADS Pin
Wizard_0127-Dec-03 3:12
Wizard_0127-Dec-03 3:12 
QuestionHow to create menuItems dynamic on Popup event? Pin
Chris Richner27-Dec-03 2:02
Chris Richner27-Dec-03 2:02 
AnswerRe: How to create menuItems dynamic on Popup event? Pin
Wizard_0127-Dec-03 3:05
Wizard_0127-Dec-03 3:05 
GeneralRe: How to create menuItems dynamic on Popup event? Pin
Chris Richner27-Dec-03 3:29
Chris Richner27-Dec-03 3:29 
GeneralRe: How to create menuItems dynamic on Popup event? Pin
Heath Stewart27-Dec-03 5:29
protectorHeath Stewart27-Dec-03 5:29 
If not (I don't think it does, either), then learn a lesson from COM and have your objects that need to customize the context menu implement an interface of your design. Override the context menu nature (like preventing it from popping up automatically), check for the interface of the object that's being activated, and - for example - pass the ContextMenu to an interface method in order for the implementation to customize it. Then show the popup. There's many ways you can accomplish this, but basically take the approach that the active object will modify it's own ContextMenu based on its state or the state of objects to which it's related.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: How to create menuItems dynamic on Popup event? - what I did with a couple of classes Pin
Bryan White1-Jan-04 22:20
Bryan White1-Jan-04 22:20 

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.