Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
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!
Could you post an example of your code?
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!
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
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!