You are not logged in.

riaanp

Beginner

  • "riaanp" is male
  • "riaanp" started this thread

Posts: 21

Date of registration: Nov 14th 2009

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

Hobbies: Programming

  • Send private message

1

Monday, December 28th 2009, 11:19pm

Jabaco CommandButton

Has anyone else noticed that picture and rollover picture does not seem to work that well? Or do i have it wrong in how you use the button control e.g picture is the normal look and rolloverpicture is when you click or hover mouse?
I am ROOT if you see me laughing you better have a backup! :cursing:

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Monday, December 28th 2009, 11:22pm

Could you post an example of your code?

riaanp

Beginner

  • "riaanp" is male
  • "riaanp" started this thread

Posts: 21

Date of registration: Nov 14th 2009

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

Hobbies: Programming

  • Send private message

3

Monday, December 28th 2009, 11:28pm

I clicked on the button and then used the IDE property to set it. Should I rather do it manually?
I am ROOT if you see me laughing you better have a backup! :cursing:

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

4

Monday, December 28th 2009, 11:33pm

The following code works nicely for me:

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Public Sub Picture1_MouseEntered()
   Picture1.Picture= HutblauGif
   Picture1.Refresh
End Sub

Public Sub Picture1_MouseExited()
   Picture1.Picture= HutgelbGif
   Picture1.Refresh   
End Sub

Public Sub Form_Load()
   Picture1.Picture= HutgruenGif
   Picture1.Refresh      
End Sub


Make sure to add graphics files as "resources" to the project.
You can then assign the image to the "Picture" property of your control.

Greetings!

A1880

riaanp

Beginner

  • "riaanp" is male
  • "riaanp" started this thread

Posts: 21

Date of registration: Nov 14th 2009

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

Hobbies: Programming

  • Send private message

5

Monday, December 28th 2009, 11:41pm

Adding the buttons as resources did the trick! Once again much thx!
I am ROOT if you see me laughing you better have a backup! :cursing:

Rate this thread
WoltLab Burning Board