[MonoDevelop] Can't get basic code to work

George Lober georgelober at glowsoftware.ca
Wed Jul 25 22:58:32 EDT 2007


Sergio Hernandez wrote:
> By the way, probably you want to try this so you clearly understand the order 
> the events/signal occurs:
>
> 	protected virtual void OnButton1Clicked(object sender, System.EventArgs e){
> 		label1.Text = "Clicked";
> 		entry1.Text = "Clicked";}
>
> 	protected virtual void OnButton1Activated(object sender, System.EventArgs e){
> 		label1.Text = "Activated";
> 		entry1.Text = "Activated";}
>
> 	protected virtual void OnButton1Entered(object sender, System.EventArgs e){
> 		label1.Text = "Entered";
> 		entry1.Text = "Entered";}
>
> 	protected virtual void OnButton1Pressed(object sender, System.EventArgs e){
> 		label1.Text = "Pressed";
> 		entry1.Text = "Pressed";}
>
> 	protected virtual void OnButton1Released(object sender, System.EventArgs e){
> 		label1.Text = "Released";
> 		entry1.Text = "Released";}
>
> 	protected virtual void OnButton1Left(object sender, System.EventArgs e){
> 		label1.Text = "Left";
> 		entry1.Text = "Left";}
>
> And don't forget to initialice the all the signals on Stetic.
>   

Good suggestion.  As luck would have it, the two that I chose 
(ButtonPressEvent and Activated) don't seem to do much.

One signal/event which I'm trying to find is the equivalent of the 
delphi form onCreate event (when a window is created). Would this be the 
"Realized" signal ? I would need this to put one-time run start-up code 
into.


Thank you,
George



More information about the Monodevelop-list mailing list