Coding Question - Purevision Text Gadget

Just starting out? Need help? Post your questions and find answers here.
calypso
User
User
Posts: 17
Joined: Sun Mar 26, 2023 7:23 am
Location: Vancouver BC Canada

Coding Question - Purevision Text Gadget

Post by calypso »

It's me again, my son told me yesterday I wasn't 72 as I had stated in my first post. He said I was 73. My bad math.
I'm new to PB and using Purevision to create a GUI.
My question is about the Purevision Text gadget. I was wondering if someone here might be able to answer or if I should go to Purevision Forum..

When I create a text gadget and apply some text to the caption The text appears at the top of the text box and I cannot find anyway to center it vertically.
Does anyone know if it is possible to set the text vertical position to "center", or "top" or "bottom" ?
I was forced to use a Purevision Button Gadget in which the text is automatically centered vertically but would prefer to use a text gadget.

Thank you in advance for any advice.

Stephen
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Coding Question - Purevision Text Gadget

Post by Paul »

The positioning of the text is what is available with PureBasic.
If you are on Windows you can select the API flag which will allow you to center the text vertically...
Image
Image Image
calypso
User
User
Posts: 17
Joined: Sun Mar 26, 2023 7:23 am
Location: Vancouver BC Canada

Re: Coding Question - Purevision Text Gadget

Post by calypso »

Sigh, I'm coding for Linux.
I gave up and used a button gadget.
thank you for pointing out that option for Windows.
~sv
Post Reply