Sublime Text 3 - Change line numbers column width - width

I'm using Sublime Text 3 Build 3083 on a Mac.
The column that holds all the line numbers is taking way to much space of the screen:
Setting "margin" to a negative value fixes the width only on the right side:
How can I reduce the width for both left and right? Is there an alternative way?

{
"fold_buttons": false,
"margin": 0
}
Result:

Related

How can I make a TextView object inherit constraints from a TextView object that turned INVISIBLE?

Text 4 is aligned to Text 3, which is aligned to Text 2, which is aligned to Text 1. Text 1 is autonomously aligned.
PROBLEM: When the app sets Text 3 to "INVISIBLE", Text 4 stays at the same layout position. The only thing that changes is that Text 3 is no longer visible.
How can I make Text 4 inherit the constraints of Text 3, which are:
android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="#+id/textView2"
app:layout_constraintTop_toBottomOf="#+id/textView2"
The desired result would therefore be that Text 4 moves to the position of Text 3.
Have a look at goneMarginStart. It reads: "When a position constraint target's visibility is View.GONE, you can also indicate a different margin value to be used..."
So, setting the gone-start-margin of textview4 to 0 and aligning the top of textview4 with top of textview3 (instead of bottom) should work.
For textview4:
android:layout_marginStart="8dp"
app:layout_goneMarginStart="0dp"
app:layout_constraintStart_toEndOf="#+id/textView3"
app:layout_constraintTop_toTopOf="#+id/textView3"

Convert number to tkinter color

Is there a simple way to convert a number into a tkinter color (#ffeedd).
I'm already setup to take the number and multiply it by 8 to give me a bit more color range leeway, and maybe even multiply it by 16 depending on just how much leeway I have to work with, not sure on how much leeway I will have yet... but I'm guessing I'll only be able to multiply by 8. How do I take that number and convert it over so I can use it with canvas.create_line((x,y), (x,y), fill = 'color'). I tried hex(number) but it just gives me back that color 0x0 doesn't exists... kinda figured that would happen but thought it would be worth a try.
a = 326
b = a * 8
canvas.create_line((x,y), (x,y), fill = b)
Ensure you have 3 or 6 hex digits. For instance:
frame.configure(background="#{0:06X}".format(0x808080))
The actual permitted set of color specfications is given in the GetColor
manual page.

SSRS: Excel-Rendering always created an empty Column

I have a strange problem with the SSRS-Excel Renderer:
As soon as I create a Table, it can be empty, with more than one Column, at the most right column, an empty Excel-Column shows up:
In the example, I just putted a plain Table into the RDLC, added the hardcoded values 1 to 4, and you can see, there is the 'C`Column pretty small, but without any values anywhere in it.
As per my understanding this is possible only if Report width is greater than tablix width,
Just Make sure you have same width for both Report & Tablix, Report width is in pt but tablix Size.width in inch.. so use any conversion and set same width for both.
Roughly 1 inch= 72 pt

Setting column width in RTF

I have what I hope is a simple question !
I am generating a simple RTF table that is subsequently opened in MS Word. The table is generating fine but the column widths are a little small and causing some word wrapping (not what I want).
The RTF code I generate is for a two line, three column table and is of the form:
\trowd \trautofit1
\intbl
\cellx1
\cellx2
\cellx3
{a\cell b\cell c\cell }{\trowd \trautofit1
\intbl
\cellx1
\cellx2
\cellx3
\row}
\trowd \trautofit1
\intbl
\cellx1
\cellx2
\cellx3
{d\cell e\cell f\cell }{\trowd \trautofit1
\intbl
\cellx1
\cellx2
\cellx3
\row}
What do I need to add to set a column width ? I have tried altering the column width in word and then examining the output but it is a little obscure to say the least !
The control words you are looking for are \clwWidthN and \clftsWidthN
Microsoft RTF Specification v1.9.1:
- \clwWidthN
Preferred cell width. Overrides \trautofitN.
- \clftsWidthN
Units for \clwWidthN:
- 0 : Null. Ignore \clwWidthN in favor of \cellxN (Word 97 style of determining cell and row width).
- 1 : Auto, no preferred cell width, ignores \clwWidthN if present; \clwWidthN will generally not be written, giving precedence to row defaults.
- 2 : Percentage (in 50ths of a percent).
- 3 : Twips.
So, in your case, you could just use \clftsWidth1 (automatically set width) or set the preferred percentages yourself e.g. \clwWidth2\clwWidth2500 (2500 = 50%)
Auto width
\trowd \trautofit1
\intbl
\clftsWidth1\cellx1
\clftsWidth1\cellx2
\clftsWidth1\cellx3
{a\cell b\cell c\cell }
40% - 30% - 30%
\trowd \trautofit1
\intbl
\clftsWidth2\clwWidth2000\cellx1
\clftsWidth2\clwWidth1500\cellx2
\clftsWidth2\clwWidth1500\cellx3
{a\cell b\cell c\cell }
The problem is in that you have set very small width for column:
\cellx1
\cellx2
\cellx3
To set width for column in RTF there is a keyword '\cellxN', where N - is column width in twips.
15 twips is 1px.
So if you want to create a simple RTF table with 1 row and 3 columns, 100px each, use this syntax:
\trowd\cellx1500\cellx3000\cellx4500
\intbl A\cell B\cell C\cell\row
You will get a simple table by 300px, 3 columns - 100px each, with invisible borders.
Cheers,
Max
You need to either use cellx0, so that autofit tag applies, or explicity set the number to the number of twips from the left border. In your example, you use 1 2 and 3 which is explicity setting the column widths to be very skinny. For example, something like:
\cellx5125
\Cellx6000
\Cellx8000
Note that these numbers are offsets from the left margin.
If you are going to do any RTF, I highly recomend the RTF Pocket Guide from O'Rielly
Check this link
http://joseluisbz.wordpress.com/2014/04/26/working-rtf-html-css-and-script-files-with-my-own-packages-java-and-php/
you can to make your own file.
TblData = new RTFTable(4,4); //4 Columns, 4 Rows
TblData.setWideCols(1000); //Width of 2000 to put all columns
TblData.setWideCol(0,3000); //Width of 3000 to Column 0

Crystal Reports: Text field flow justified around image/margin indentation

I'm creating a report that outputs a letter. The first page contains is a large left margin containing static company information. The letter output can be multiple pages, however I only want the text on the first page indented to the right away from the left margin. How can I accomplish this with one text field (the letter body is all one data field)?
Example: http://i.stack.imgur.com/E6SGr.jpg
Right-click on your text field and select 'Size & Position'. Here you can set the X and Y positions of the field, and the X value can be set conditionally. All you have to do is something like:
if pagenumber=1 then 0 else 1440
Watch out, though, the units used in the formula are twips, not the units listed as your default in the Size & Position window. FYI, 1440 twips to an inch or 20 twips to a point.

Resources