picturebutton in Foxpro 8 and 9

Hi there,

I have a maybe dumb question.
I would like to use a graphic as a button with text on it that i can change.
This is easy with the button object but on that i am not able to place the text over the graphic,
showing only the graphic with the text on it.
Text cut just be placed obove, under left and right off the graphic.
I tried to use a graphic object with a text label over it,  looks good but the label blocks the mouseclick to the button.
It would be very nice if someone cut tell me what i am doing wrong....


Answer this question

picturebutton in Foxpro 8 and 9

  • RGunasekaran

    Or place an image and label control and on top of them a transparent commandbutton.
  • fenris

    Why not let the label.click() event call the button.click() event
       example: thisform.YourButtonName.click()
     
    Or, you could bindevent() to the label click() event 
       example: bindevent(thisform.label1,"Click",this,"Click")


    Note: If your controls are in a container then you would replace ThisForm with This.Parent etc.

  • Bren Besser

    sounds good i will try it right away, thanks a lot

  • picturebutton in Foxpro 8 and 9