We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDControls.SetButtonStyle error
#1
Hallo LitDev,Martin


schau mal das Programm ZSWC978.000 an. Die Button müssten eigentlich identisch aussehen. Ist aber nicht so. LDControls.SetButtonStyle verändert die Weite des Button. Das sollte nicht so sein oder steckt hier ein Sinn dahinter, den ich noch nicht erkannt habe.

Viele Grüße
Reply
#2
Hi,

So it is the order of the commands LDControls.SetButtonStyle and Controls.SetSize.   SetButtonStyle recreates the button with the set styling and it resets the width to fit the text as the brushes fonts may have different sizes.   SetSize forces the size to be set regardless of the content.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)