Just another quick question - when I use text gadgets it seems that there is no
option to align text - so that it would be centered in terms of vertical alignment -
am I correct ? Text would be displayed at the top of gadget... Same thing happens
for string gadgets. Any possible workaround ?
Vertical font alignment - not available in text gadgets ?
Re: Vertical font alignment - not available in text gadgets
Yes, you are correct.agb2008 wrote:...there is no option to align text - so that it would be centered in terms of vertical alignment - am I correct ? ... Any possible workaround ?
As for workarounds, there are many offered in this forum. Here's a fairly old one, recently infused with some new suggestions:
>> StringGadget Vertical
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel
- RSBasic
- Moderator
- Posts: 1218
- Joined: Thu Dec 31, 2009 11:05 pm
- Location: Gernsbach (Germany)
- Contact:
Re: Vertical font alignment - not available in text gadgets
Vertical align (center) for TextGadget:
Code: Select all
EnableExplicit
If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(1, 10, 10, 480, 400, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.", #SS_CENTERIMAGE)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
End
EndSelect
ForEver
EndIf
Re: Vertical font alignment - not available in text gadgets
It should be noted that the SS_CENTERIMAGE flag is a Windows-only style setting, which only works with the TextGadget(), and not the StringGadget().RSBasic wrote:Code: Select all
TextGadget(1, 10, 10, 480, 400, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.", #SS_CENTERIMAGE)
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel
Re: Vertical font alignment - not available in text gadgets
TI-994A, RSBasic:
Thank you for your suggestions ! A bit strange that this option is not available in PB...
Thank you for your suggestions ! A bit strange that this option is not available in PB...