anything related to UI in general, splash screens, UI widgets, input and output etc.

setTableItemTextAlign

setTableItemTextAlign

Postby Shando » 05 Dec 2015, 09:25

Hi All,

Just wondering what the params are for "setTableItemTextAlign"?

I assume that they are something like:

Code: Select all
qt.setTableItemTextAlign ( [editor], [table], [row], [col], [???] );


but I can't work out what to put as the last param? (I've tried a few things, like "1" & "0", but Skyline crashes :().

Thanks in advance

Shando
Alienware 17 (i7-4700MQ 2.4GHz 16GB GTX770M Win 10 64)

Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 492
Joined: 06 Mar 2013, 22:35
Location: Kings Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: setTableItemTextAlign

Postby SolarPortal » 05 Dec 2015, 16:01

Hi m8,
Sorry for not responding sooner, been out this morning with the family attempting to get a bit christmassy lol :P

Anyway the code is used like this:
Code: Select all
qt.setTableItemTextAlign(editorName, objectName, row, column, "center");
qt.setTableItemTextAlign(editorName, objectName, row, column, "left");
qt.setTableItemTextAlign(editorName, objectName, row, column, "right");


Hope this helps :D
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 3770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3202
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: setTableItemTextAlign

Postby Shando » 06 Dec 2015, 01:32

Hi SP,

No worries, I was out most of yesterday and ended up with 1 present :oops:

Wrt the code, I knew it would be something simple ( after all, that's the Skyline way 8-) )

Thanks

Shando
Alienware 17 (i7-4700MQ 2.4GHz 16GB GTX770M Win 10 64)

Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 492
Joined: 06 Mar 2013, 22:35
Location: Kings Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: setTableItemTextAlign

Postby SolarPortal » 06 Dec 2015, 12:25

lol :D Glad you got it working.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 3770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3202
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to UI

Who is online

Users browsing this forum: No registered users and 1 guest