Thursday, May 17th 2012, 6:23pm UTC+2

You are not logged in.

  • Login
  • Register

riaanp

Beginner

Posts: 21

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

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

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

2

Monday, December 28th 2009, 11:22pm

Could you post an example of your code?

riaanp

Beginner

Posts: 21

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

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

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

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

Posts: 21

Location: Krugersdorp, South Africa

Occupation: Linux Opensource Consultant

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