[Gambas-user] Re: Gambas-user digest, Vol 1 #74 - 2 msgs

Fabien BODARD Abidoo.too at ...11...
Wed Dec 11 21:29:37 CET 2002




>Messsage du 11/12/2002 01:48
>De :  <gambas-user at lists.sourceforge.net>
>A :  <gambas-user at lists.sourceforge.net>
>Copie à :
>Objet : Gambas-user digest, Vol 1 #74 - 2 msgs
>
> Send Gambas-user mailing list submissions to
> 	gambas-user at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.sourceforge.net/lists/listinfo/gambas-user
> or, via email, send a message with subject or body 'help' to
> 	gambas-user-request at lists.sourceforge.net
>
> You can reach the person managing the list at
> 	gambas-user-admin at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gambas-user digest..."
>
>
> Today's Topics:
>
>    1. Re: can i help you ? (Jochen Georges)
>    2. draw question (Jochen Georges)
>
> --__--__--
>
> Message: 1
> From: Jochen Georges <jochen.georges at ...22...>
> Reply-To: jochen.georges at ...22...
> To: BODARD Fabien <abidoo.too at ...11...>
> Date: Mon, 9 Dec 2002 23:05:01 +0100
> Cc: gambas-user at lists.sourceforge.net
> Subject: [Gambas-user] Re: can i help you ?
>
> On Monday 09 December 2002 22:32, BODARD Fabien wrote:
> > humm hello jochen
> >
> > can you explain better your problem?
> >
> > i can help you but... tell me more
> >
> > or send me your start code i will made a comment code for you.
> >
> > poor Shakespeare i've really a bad english!!
> >
> > regards fabien
>
> hi fabien,
> i solved the problem, my code looks like that:
> PUBLIC SUB Button2_Click()
>   SELECT Message.Question("hallo, alles klar?", "ja", "nein", "weis\
>  nicht")
>     CASE 1
>       Label2.Text="ja"
>     CASE 2
>       Label2.Text = "nein"
>     CASE 3
>       Label2.Text = "weis nicht"
>   END SELECT
> END
>
> but i've got a new question, i tried to do it with a nested
> if-tree, it worked, but the button "nein" and "weis nicht" had to
> be clicked twice. why that?
>
> thanks for any help
>
> beste gruesse
> jochen
>
>
>
> --__--__--
>
> Message: 2
> From: Jochen Georges <jochen.georges at ...22...>
> Reply-To: jochen.georges at ...22...
> To: gambas-user at lists.sourceforge.net
> Date: Tue, 10 Dec 2002 23:18:10 +0100
> Subject: [Gambas-user] draw question
>
> hi,
> you see I'm industrious, but stupid :(
>
> I#ve got a form with a button and a drawing area, when the button
> is clicked, a rectangle should be drawed.
>
> that's my code:
> STATIC PUBLIC SUB Main()
>   DIM runform AS Form
>   runform = NEW Fmain
>   runform.show
> END
>
> PUBLIC SUB Button1_Click()
>   da.Clear()
>   Draw.Begin(da)
>   Draw.Rect(5, 5, 8, 9)
>   Draw.End
>
> END
>
>
> when i click the button the debugger says
> "Fmain.Button1_Click.13:Bad device"
>
> what's wrong?
> i had a look at the example ImageView, but i need more help at the
> moment.
>
> thanks a lot
> beste gruesse
> jochen
>
>
>
> --__--__--
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> End of Gambas-user Digest
>
hello jochen



check if the name of your control is really button1!!!

your code look good

regard fabien







More information about the User mailing list