FaceButton.Bitmap.LoadFromResource not working?

In this category you can exchange your programming questions and solutions.
Post Reply
C?sar Baptista
Posts: 6
Joined: Tue Apr 30, 2013 10:35 am

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1062Post C?sar Baptista
Tue Apr 30, 2013 11:06 am

Hi everybody,

Can someone give me an example of how to add a bitmap resource to a FaceButton object?

Thanks in Advance.

cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1063Post cvirus
Wed May 01, 2013 7:49 pm

like this?

[code]Object BtnClick as Button
? ? left=10
? ? top=20
? ? Caption="Lock"
? ? bitmap.loadfromfile("lock.bmp")
? ? onclick=fechar
? end object[/code]

The facebutton works the same way. Espero que ajude :)

[code]Object Fbtn as FaceButton
          left=10
          top=20
          Caption="Lock"
          bitmap.loadfromfile("lock.bmp")
          onclick=fechar
        end Object [/code]

C?sar Baptista
Posts: 6
Joined: Tue Apr 30, 2013 10:35 am

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1064Post C?sar Baptista
Wed May 01, 2013 9:58 pm

Thanks cvirus for your answer but it`s more something like this i need and it doesn?t work for me:

[code]
Resource LockBitmap As "lock.bmp"
...
Object Fbtn As FaceButton
? ?? Left=10
? ?? Top=20
? ?? Caption="Lock"
? ?? Bitmap.LoadFromResource(LockBitmap)
? ?? OnClick=Fechar
End Object
[/code]

With LoadFromFile works but i have to distribute EXE +
bitmaps and i don?t want that, just want the EXE.

Thanks Anyway.

cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1065Post cvirus
Thu May 02, 2013 8:08 am

Try with:

[code]

Object FBtn as Facebutton
BMPresource(resource)
End Object
[/code]

C?sar Baptista
Posts: 6
Joined: Tue Apr 30, 2013 10:35 am

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1066Post C?sar Baptista
Thu May 02, 2013 1:28 pm

cvirus,

It worked. Thanks.? ;)
But the help file doesn?t say anything.? ?:(

The help file that i have is from Feb-2013 update.
There is another more completed help file?

Thanks again.


cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

FaceButton.Bitmap.LoadFromResource not working?

Post: # 1067Post cvirus
Thu May 02, 2013 1:32 pm

Glad to help. :)

Nope that?s the most up to date help file.

That is a method for the btn to load a bmp from a resource.

Any time just ask eventually your questions will be answered, but have some patience.

For the Api call you must wait untill Marco the admin will answer.

:D

Post Reply