Jump to content

Right align text


jezzzzy
 Share

Recommended Posts

I have a couple items in a GUIListView that I need right aligned (Column header and contents of File Size for a list of files).

I tried using:

StringFormat("%s",$variable)

but it didn't work. I assumed the "s" in stringformat would right align the variable because it says in the reference that it is "Right align." by default unless you "-" switch it.

I'm stuck.

Link to comment
Share on other sites

column justification can be done with the beta version, not sure of a way with the current release version.

If you decide to use the beta version, once installed look up the function _GUICtrlListViewJustifyColumn

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Developers

I have a couple items in a GUIListView that I need right aligned (Column header and contents of File Size for a list of files).

I tried using:

StringFormat("%s",$variable)

but it didn't work. I assumed the "s" in stringformat would right align the variable because it says in the reference that it is "Right align." by default unless you "-" switch it.

I'm stuck.

Did you try _GUICtrlListViewJustifyColumn($h_listview, $i_col[, $i_justification=0]) ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

column justification can be done with the beta version, not sure of a way with the current release version.

If you decide to use the beta version, once installed look up the function _GUICtrlListViewJustifyColumn

Helpful. Thanks.

Did you try _GUICtrlListViewJustifyColumn($h_listview, $i_col[, $i_justification=0]) ?

Would you suggest the .78 or the .80 beta?

Did you try _GUICtrlListViewJustifyColumn($h_listview, $i_col[, $i_justification=0]) ?

Is this available in the public release? Can't find it in the reference file.
Link to comment
Share on other sites

  • Developers

Helpful. Thanks.

Would you suggest the .78 or the .80 beta?

Is this available in the public release? Can't find it in the reference file.

It is only available in the BETA.., both .78 and .80 should work ...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...