Page 1 of 1

FaceButton.Bitmap.LoadFromResource not working?

Posted: Tue Apr 30, 2013 11:06 am
by C?sar Baptista
Hi everybody,

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

Thanks in Advance.

FaceButton.Bitmap.LoadFromResource not working?

Posted: Wed May 01, 2013 7:49 pm
by cvirus
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]

FaceButton.Bitmap.LoadFromResource not working?

Posted: Wed May 01, 2013 9:58 pm
by C?sar Baptista
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.

FaceButton.Bitmap.LoadFromResource not working?

Posted: Thu May 02, 2013 8:08 am
by cvirus
Try with:

[code]

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

FaceButton.Bitmap.LoadFromResource not working?

Posted: Thu May 02, 2013 1:28 pm
by C?sar Baptista
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.


FaceButton.Bitmap.LoadFromResource not working?

Posted: Thu May 02, 2013 1:32 pm
by cvirus
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