BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Scale down the Spinner Widget  (Read 10246 times)

Jonathan

  • Newbie
  • *
  • Posts: 10
    • View Profile
Scale down the Spinner Widget
« on: July 13, 2023, 08:32:24 AM »

Hi,

is there a way to make the spinner widget smaller than the widget allows?
Code: [Select]
CMD_SPINNER(204, 283, 0, 0) in this command 0 is the smallest value for the scale, but I want it to be even smaller. Is there a way to do this or do I have to build my own spinner?

Best
Jonathan
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: Scale down the Spinner Widget
« Reply #1 on: July 14, 2023, 03:12:28 PM »

Hello,

I am not aware if it is possible to scale below that value, but I can contact our software team to confirm.

What style of spinner are you looking for?

Best regards

BRT Community
Logged

Jonathan

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Scale down the Spinner Widget
« Reply #2 on: July 31, 2023, 06:59:42 AM »

Hey,

that would be great!
I use style 0 and 3 spinners.

Best
Jonathan
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: Scale down the Spinner Widget
« Reply #3 on: August 04, 2023, 01:43:18 PM »

Hello,

I will contact our software team for confirmation and provide you with an update soon.

What type of application are you creating with the spinner widget?

Best regards

BRT Community
Logged

Cyrilou

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Scale down the Spinner Widget
« Reply #4 on: November 27, 2023, 05:11:49 PM »

Hi,

Any update on this?

Size of spinner depends from the size of the display. Is there a workaround to modify height and/or width temporarly to reduce its size?
« Last Edit: November 28, 2023, 08:45:57 AM by Cyrilou »
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: Scale down the Spinner Widget
« Reply #5 on: November 28, 2023, 04:24:00 PM »

Hello,

Yes unfortunately, you would need to create your own spinner widget if you wish to scale it.

Below we have the raw code output for a given CMD_SPINNER (CMD_SPINNER(533, 251, 0, 0)) command:
Code: [Select]
CLEAR(1, 1, 1)
VERTEX_FORMAT(2)
POINT_SIZE(240)
BEGIN(POINTS)
COLOR_A(64)
VERTEX2F(1604, 1143)
VERTEX2F(1731, 1091)
VERTEX2F(1783, 964)
VERTEX2F(1731, 836)
VERTEX2F(1604, 784)
VERTEX2F(1476, 836)
VERTEX2F(1424, 964)
VERTEX2F(1476, 1091)
MACRO(0)
MACRO(1)

You can adjust the point sizes via the POINT_SIZE command and alter the vertex commands to reposition the sippner dots.

The MACRO(0) register is updated with the COLOR_A command scaling from 255 - 128 - 64 - 0 and the MACRO(1) register is updated with the vertex point of the dot you wish to highlight in the spinner animation.

Best Regards,
BRT Community
Logged