Setting color of padding for GtkAlignment - gtk

I have a GtkTextView inside a GtkAlignment, which I'm using to add top/bottom padding to the text view:
GtkAlignment
top-padding: 5
bottom-padding: 5
child: GtkTextView
Right now it looks like this:
So, it works, but the padding is gray and I want it to be white (ideally I want it to be “the color of the text view” in case the user has a custom theme, but white would do as well). Is there any way to do it?

Related

Changing both Word Page Border Art Color

Is it possible to change both Word Page Border Art Color? I'm using one with blue and black, and I could only manage to change the black thin outer line.
With Interop, Microsoft released the Borders Interface.
There you'll find 2 members: InsideColor and OutsideColor, to return or set a value that indicates the 24-bit color of the inside/outside borders.

VBA Word o set textbox text/paragraph vertical alignment to "center"

I have created a textbox in Word and can set various properties for it, such as position, text, text style, text horizontal alignment (left/right/center), color, and so on.
But I cannot find any settings to set the vertical alignment of text in the box to Top/Middle/Bottom. There's a button for vertical alignment on the ribbon to set that property, but I can't find it through the object inspector, through Intellisense, or through searching the net. I tried recording a macro, but the only line that showed up in the macro was the VBA line to select the textbox. Nothing else. :-(
The ribbon button is beside the "set text direction" option, but I couldn't find VBA for that setting either. I also tried the Textframe2 property, but saw nothing in there for vertical alignment.
Here's the code that sets the horizontal alignment of text. Also, I included the enum that I think I need to use. But I can't find the property to accept a value from the enum.
tbox.TextFrame.TextRange.ParagraphFormat.Alignment = wdAlignParagraphRight
WdVerticalAlignment enumeration (Word):
Name Value Description
wdAlignVerticalBottom 3 Bottom vertical alignment.
wdAlignVerticalCenter 1 Center vertical alignment.
wdAlignVerticalJustify 2 Justified vertical alignment.
wdAlignVerticalTop 0 Top vertical alignment.
Does anyone know the syntax for the property that I need to set to vertically align text inside a textbox shape? Thank you
The property is TextFrame.VerticalAnchor that uses the enumeration MsoVerticalAnchor
For example:
ActiveDocument.Shapes(1).TextFrame.VerticalAnchor = msoAnchorMiddle
(The enumeration mentioned in the question is for page layout.)

Change the Text Field for Required Field in Oracle Forms 6i

I want to display the required text field in star symbol
if user didnt enter any values it should change the Border color to red
if user enter values it should Change the Border color to green
Unfortunately you can't simply change border color of an item. You can change background nad text color.
You can simulate border color by adding new item which is 2 pixels longer and higher than your item. Place this item under your item and change its background color. It is not as difficult as it looks.
You can change color in WHEN-VALIDATE-ITEM on your item using builtin procedure SET_ITEM_INSTANCE_PROPERTY

GWT textBox with different coloured alpha numerics

I want to allow the entry of different coloured alpha numeric into a text box. The person clicks on one of four buttons (blue, grey, green or red) to select the colour and that colour applies to all alpha numeric entered into the text box until a new colour is selected (e.g., KPB - the K is blue and the PB is red; -6 is green).
Thanks,
Glyn
Hi #AndreiVolgin,
This is how I implemented your suggestion. I am working on getting the display a bit "nicer".
Thanks,
Glyn
You cannot style text inside a TextBox - even "::first-letter" selector does not work on it.
You can try to create your own widget which will include a transparent TextBox widget on top of a Label widget, where on each KeyUpEvent in the TextBox you update the Label widget with the corresponding text in different colors.

Border formatting of SSRS row group

This is my report.
Above row contains a parent row group and a child row group.
I have done border formatting of the report . I simply right click each Text box and gives border accordingly. But, I am not able to set border for entire Group. In group properties there is no option for Border. I do not want any border between the rows of a group. How I can do that?
Go inside the textboxes you want to remove the borders and remove the top and bottom border.
When the group expands, you will see the bottom border of the first textbox outside the group in the top and the top border of the first textbox outside the group below it. (but in between cells from the same group, there will be no borders)
If you only want to set the border to the Row header you shouldn't use the border property of the Row detail.
The reason you wont see the changes on the bottom row header is because it overlaps with the top border of the row details.
A good way to work around it is as follows :
you can set the color and border width of all three sides(Top, Left, Right) of the row header and see the change in the preview. However, even after you change the color of the bottom border value you wont see the change until you start scrolling down. IN most cases the visibility is not good even oenter image description heren the printed version of the report.
solution : change the border width of the bottom border width property to be greater than the default or the detail top border width property.
caution : if you change the top border property of the detail columns it will repeat through out the details.
eg.
Row header border property :
Border color Black
Border width 1pt, , , , 2pt
Row detail border Property :
Border color LightGrey
Border width 1pt