Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I ask the experts for help, I am looking for a way, to rotate the spin buttons of the rad studio software, I am building a program to move a motor from the serial port and I need that the sending of the hex code is continuous so I am using a spinbutton, the problem is that the image is only vertically up down, I would need something left right or associate the bottore with an image .. thanks a lot for the help

What I have tried:

I've searching in libray embarcadero,and google without solutions...
Posted
Updated 14-Nov-22 12:17pm
v2
Comments
Rick York 14-Nov-22 12:53pm    
Your question is unclear. If this is software you have control over and it's for windows then spin buttons have a property that defines their orientation. If you do not have control over this software then there is probably not very much that can be done.

1 solution

The Rad Studio uses the VCL library as far as I know. In MFC, by default, the spin control is displayed with an arrow pointing up and an arrow pointing down. If you want the arrows to be horizontal, the value of the Alignment property can be changed from Vertical (default) to Horizontal. This is done by adding UDS_HORZ as style to the control when creating it. Probably there is something like this for VCL too. Here is an example for MFC:
C++
CSpinButtonCtrl *SpinCtrl = new CSpinButtonCtrl;
SpinCtrl->Create(WS_CHILD | WS_VISIBLE | UDS_HORZ, CRect(60, 10, 80, 35), this, SPIN_ID1);


It would also help to solve the problem if you would share the code snippet here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900