fgGradientButtons (Buttons with Gradient-Color)

corwin42

Expert
Licensed User
Longtime User
Deshalb empfehle ich dir diese vorgehensweise:
Therefore, I recommend this approach:
B4X:
...
   scale = ScreenScaleX
   btnExit.left= 170 * scale 
   btnExit.top= 210 * scale 
   btnExit.Width= 60 * scale 
   btnExit.Height= 50 * scale 
...

Ok, this works. Thanks very much.
 

TWELVE

Active Member
Licensed User
Hi Filippo,

thanks for that outstanding work, it is a really big improvement against the standard gui elements, which are quite ugly...

Cableguy already raised that question earlier, but it was never answered:

How can i disable the "withpressedEffect"..? I found that a DockStyle-DockFill button is a good replacement for the non-existent bevelboxes i know from other languages.But i would like to disable this pressedeffect, according to the helpfile this should be achieved by "button.WithPressedEffect = false", which is apparently not the case...?



regards,

TWELVE
 
D

Deleted member 103

Guest
Hallo TWELVE,

entschuldigung das ich erst jetzt antworte aber ich war in Urlaub.

Hier ein Beispiel mit dem was ich mit der Eigenschaft "withpressedEffect" gemeint habe.


sorry that I answer only now but I was on vacation.
Here is an example of what I meant with the property "withpressedEffect.

Ciao,
Filippo
 

Attachments

  • fgButtonsExample_2.sbp
    894 bytes · Views: 8
  • Button with-without pressed effect.jpg
    Button with-without pressed effect.jpg
    13.8 KB · Views: 17

pdabasic

Active Member
Licensed User
Hello Fillipo!

I use your library so many project, first thanks for shearing.
In this project I found a bug:

I use same button in two differebt state.
I have two wievs and when I step from first to other and rearange the controls what control change the with and height properties their didn't show competly.

Attach some picture, please see them!
 

Attachments

  • first_state.png
    first_state.png
    39.3 KB · Views: 13
  • second_state.png
    second_state.png
    39.8 KB · Views: 13
  • first_to_second_with_bug.png
    first_to_second_with_bug.png
    50.4 KB · Views: 9
D

Deleted member 103

Guest
Hello pdabasic,

only on the basis of the pictures I can not see where the error is.
It would be beneficial if you were a part of your post code.

PS. My name is Filippo and not Fillipo . :cool:


Ciao,
Filippo
 

pdabasic

Active Member
Licensed User
Hy!

I'm so sorry for the misspelling your name!!!

Hello pdabasic,

only on the basis of the pictures I can not see where the error is.
It would be beneficial if you were a part of your post code.

PS. My name is Filippo and not Fillipo . :cool:


Ciao,
Filippo

The error is when I add control atruntime, show it on main form ("first_state") then hide it and set width and hight on the background and set visible again "second_state" only the original size is visible of the rearranged control and the other part is empty or capture the screen as you can see on the "first_to_second_state" image. It produces vica-versa
 
Last edited:
D

Deleted member 103

Guest
Hi pdabasic,

I'm sorry, I can also reproduce the error. Unfortunately, I know not whether I can fix it and when.

Can not you just generate the new button?
 

pdabasic

Active Member
Licensed User
Hi pdabasic,

I'm sorry, I can also reproduce the error. Unfortunately, I know not whether I can fix it and when.

Can not you just generate the new button?

Hello Filippo!

You tried it on device or tried to compile it?
I run just deug, but if this problem looks in the compiled app, i must to search an other way.
I use so many control, many states :sign0148:
 
D

Deleted member 103

Guest
Hi pdabasic,

I can offer only as a last resort. :eek:
Just look my example.

Ciao,
Filippo
 

Attachments

  • fgGradientButtons.png
    fgGradientButtons.png
    20.9 KB · Views: 12
  • fgButtonsExample.sbp
    4.1 KB · Views: 6

pdabasic

Active Member
Licensed User
Hy Filippo!

If you take the rest and edit your library please implement an read/write property to pressedEffect because now I can set it with hardware library sendmessagetocontrol mousedown, mouseup function.

:sign0188:
 

karlchick

Member
Licensed User
wheels

Hello Fillipo!

I use your library so many project, first thanks for shearing.
In this project I found a bug:

I use same button in two differebt state.
I have two wievs and when I step from first to other and rearange the controls what control change the with and height properties their didn't show competly.

Attach some picture, please see them!

Hi pdabasic,

The screenshots look good. I'm curious to know if you used my iWheel library for the scrollable wheels in your screenshots. If not, would you mind telling me what you used?

Karl.
 

pdabasic

Active Member
Licensed User
Hi pdabasic,

The screenshots look good. I'm curious to know if you used my iWheel library for the scrollable wheels in your screenshots. If not, would you mind telling me what you used?

Karl.

Hello Karl!

I use your iWheel library and it works fantastic. Thank you
 
Top