HSLFTextBoxes don't seem to have the ability to set an Autofit property, even though they actually inherit the correct nested class definitions for Autofit, and the XSLFTextBox does have that ability. Is this just an API gap that hasn't been plugged yet, or is there a different way to achieve shrink text on overflow?
This question is based on the following jars:
poi-3.14-20160307.jar
poi-scratchpad-3.14-20160307.jar
Related
I have 2 Objects that I have combined with the union/fusion control
The result is as expected, but now I would like to remove the remaining lines of the separate objects (at least in my view).
I understand the underlying principle of the stacking object tree and its good to have them still all available as single entities, but I would like to hide what would not be seen in reality also in my view.
Any takers?
Thanks
For anyone who's interested I found the solution. The view property dialog allows you to change the document window setting to "shaded" which hides the lines.
Here is my scenario...
Using Orchard CMS 1.7.1 I have created a custom Content Type named 'VistaImage' using the Orchard UI. This Content Type defines one field based on a Media Library Picker Field, this field is also named 'VistaImage'.
A Projection of groups of Vista Images are placed in the 'Featured' Zone as a Widget reference and works well.
Using the Shape Tracer on the resulting page(s), the shape hierarchy looks as follows:
Zone [Featured]
Widget
List
Content Alt: Content-VistaImage
Fields_MediaLibraryPicker Alt: Fields.MediaLibraryPicker-VistaImage
Media
Parts_Image_Summary
What I want to do is to provide alternative shapes from the Content shape downwards. This is easy enough for Content itself and for Fields_MediaLibraryPicker (as the Shape Tracer automatically provides applicable alternatives (as indicated above)).
My problem comes in providing alternatives for the Media and Parts_Image_Summary parts.
Looking at the documentation for Alternates on the Orchard web site, I thought that if I created a new shape in my Theme at at /Views/Parts/Image.Summary-VistaImage.cshtml this would get referenced, but it does not (though if I remove the '-VistaImage' the shape does get used, but this would, I believe change this shape for every Content Type, which is not what I want to do).
Any advice/direction on how I should approach this requirement would be apprciated.
Thanks.
From personal experience, when you get that low level in the shapes, alternatives don't work very well, if at all. The only way I best deal with those scenarios is to choose the next applicable shape above it, and do an if statement to determine if its the content you want, in which case to remove the default shape display and implement your own hard-coded layout.
eg if the shape simplay says #display(Model.whatever) and you know that displays is garbage for you, look into the model.
For example, I had trouble creating a 4 leveled menu for bootstrap as it only typically deals with 2 levels, so i manipulated the lowest level shape. I.e:
if{Model.Items.Any()}{
//code to generate another submenu for that menuItem
}
This may not even be the most correct way to address this, just the solution I found has worked.
So in your case I'd use VS debug and breakpoint where the mediafield picker is rendered, and find out if the model holds any information letting you know it's your VistaImage content.
I'm trying to create a vertical Menu and after looking in the default template file I see that the standard is a horizontal one but there is also a region for a vertical menu (MenuVertical). What I can't figure out is how the heck I change the region used from Menu to MenuVertical. I've searched for hours in the documentation and looking through class references, but I can't figure it out.
I'm new to this framework and I guess this is VERY easy to do, but what isn't easy when you know how to do it eh? :)
EDIT: Just to be clear, this is a question about the Agile Toolkit Framework
Yes it's very easy. When you create an object, you specify template and a region as 4th argument:
$this->add('Menu',null,null,array('menu','VerticalMenu'));
If omitted object takes the value from the defaultTemplate method:
function defaultTemplate(){
return array('menu','VerticalMenu');
}
I've created a wxHaskell grid control, and it displays fine, the user can enter data etc.
It's also fairly obvious how to programatically write data into it (gridSetCellValue).
But how do I read the data from it? There's gridGetTable which might or might not be relevant, but that returns a GridTableBase and while I can see that it's indirectly a pointer type, I can't find anything in the API to actually get at the data in it.
To get the data of a specific cell you can just use gridGetCellValue, which is the obvious counter part to gridSetCellValue.
well i tried their web site also,they are only providing details regarding there use i mean about controls.
what is the exact difference between both of the above mentioned?
This Telerik's forum post answers, I think: http://www.telerik.com/community/forums/silverlight/maskedtextbox/is-it-possible-to-use-a-radmaskedtextinput-as-a-multiline-text-area.aspx#1863327
The RadMaskedInput controls don't support a "no-mask" scenarios at
the moment...
This is why ... it would be best to take
advantage of the RadMaskedTextBox control. It has a property MaskType,
which you can set to None. Also in order to make it multi-line, you
need to apply a custom style to its ExtendedTextBox element and set
its AcceptsReturn property to True.