Page 1 of 1

Coding Question - Purevision Text Gadget

Posted: Tue Apr 04, 2023 9:29 am
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

Re: Coding Question - Purevision Text Gadget

Posted: Tue Apr 04, 2023 2:24 pm
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

Re: Coding Question - Purevision Text Gadget

Posted: Sat Apr 08, 2023 12:46 pm
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