These are the Support Forums for FSUIPC and related products.

These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.

Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.

Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE

wnd using lua
 
Notifications
Clear all

[Solved] wnd using lua

Posts: 7
Registered
Topic starter
(@arlee)
Joined: 2 months ago

Hello. Can the text in a wnd be aligned (i.e.: left, right, centered) as well as vertical alignment, and if so, how?


4 Replies
Posts: 251
Admin
(@fsuipc)
Joined: 9 months ago

Pleas see the functions provided: there are no special controls/options for alignment. It is up to you to do this in the strings you provide, i.e. for right alignment use a fixed space font (WND_COURIER) and pad left with spaces.
No such thing as vertical alignment - you need to write the text at the position/line needed.

Note that there was also a bug ion the font selection in the wnd library that may affect FSUIPC4. This was fixed in FSUIPC7/6 but FSUIPC4 is closed for further development.


Reply
Posts: 7
Registered
Topic starter
(@arlee)
Joined: 2 months ago

Hello. Thank you for your reply. I've been "padding" with spaces. I was just wondering if there was a better way to align. I don't know what you mean by "a bug in the font selection in the wnd library that may affect FSUIPC4." Perhaps I have been fortunate so far as I have not run into any bugs - that I have noticed. I've attached a picture of how I've been able to use WideClient and a touchscreen monitor.


Reply
Posts: 7
Registered
Topic starter
(@arlee)
Joined: 2 months ago
Reply
Posts: 225
Moderator
(@fsuipc-support)
Joined: 6 months ago

Posted by: @arlee

I was just wondering if there was a better way to align.

No, thats the only way.

Posted by: @arlee

I don't know what you mean by "a bug in the font selection in the wnd library that may affect FSUIPC4."

There was an issue in selecting the font / font attributes in the Wnd library that was found in FSUIPC7 that prevented the selected font from being used. I am not sure if this affects FSUIPC4 or not.

Posted by: @arlee

I've attached a picture of how I've been able to use WideClient and a touchscreen monitor.

Looks good!

John


Reply