Set width of a decorative box
I have a decorative box and inside that I am showing a text. Now the decorative box is stretched to the entire width of the Screen, but I want it to stretch only as much as the text its containing. I have set the "dimensionsForm" property to "children" but its not working.
Hi,
I think you have to work with percentages of your components and not pixels.
With this way your components will occupy a percentage of the page..
have a look here:
http://jobinesh.blogspot.com/2010/03/adf-faces-layout-tips.html
Regards,
Dimitris.
Similar Messages
-
How to set width for this modal dialog box?
Hi All,
How to set width to this modal dialog box:
<input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: '../Lists/Sports%20Activities%20Voting/NewForm.aspx', title: 'User Survey'}); return false;" type="button" value="Vote"/>
Thanks in advance!set as bellow:
<input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: '../Lists/Sports%20Activities%20Voting/NewForm.aspx', title: 'User Survey',width:700,height:350}); return false;" type="button" value="Vote"/>
yaşamak bir eylemdir -
Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
The same text pasted into a Custom Text generator clearly extends outside the frame:
Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
All the best,
ThomasThomas...same kind of crap here.
I used Custom Text - entered a sentence, hit return, entered another.
Set to 72 pt.
The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
There is no settings in the Text or Title inspector dialog to correct that!
Using Transform will not sort it! -
Setting background color in a Box
Below is the code for a simple dialog displayed from an applet. The dialog contains a text area and a button inside a box. I would like for these 3 items to have the same color. However I'm not able to set the color of the box. I hope you can suggest a solution.
Thanks for your help.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ComboBoxApplet extends JApplet {
public void init() {
new MessageDialog("Hello there....");
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
public class MessageDialog extends JDialog {
JButton okButton = new JButton("OK");
public MessageDialog(final String text) {
JTextArea label = new JTextArea(text);
label.setEditable(false);
label.setForeground(Color.black);
label.setBackground(SystemColor.control); // successful
Container pane = getContentPane();
pane.setLayout(new BorderLayout());
pane.add(label,BorderLayout.CENTER);
setSize(150,120);
Box okBox = Box.createHorizontalBox();
okBox.setJForeground(SystemColor.control); // unsuccessful attempt
okBox.setBackground(SystemColor.control); // unsuccessful attempt
okBox.add(Box.createGlue());
okBox.add(okButton);
okBox.add(Box.createGlue());
pane.add(okBox,BorderLayout.SOUTH);
okButton.setBackground(SystemColor.control); // successful
okButton.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent event) {
setVisible(false);
getRootPane().setDefaultButton(okButton);
setVisible(true);
<HTML>
<TITLE>ComboBox Applet Test</TITLE>
<BODY>
<APPLET CODE=ComboBoxApplet.class WIDTH=400 HEIGHT=200>
</APPLET>
</BODY>
</HTML>I have a really easy solution to this, I just tried it out and it worked perfectly. You cannot set the background to the box, but you can set it to the frame(this), and panels. so why dont you do the following:
1)just create a panel
2)add the "Box" that you have to the panel
3) set the background of the panel
it works good for me -
Well I'm tryin to change de appearance of decorative box with follow css code:
af|decorativeBox::center[theme="dark"]
{background-image: url("../images/fondo1.jpg");}
af|decorativeBox::top-start[theme="dark"]
{background-image: url("../images/fondo2.jpg");}
af|decorativeBox::top[theme="dark"]
{background-image: url("../images/fondo3.jpg");}
af|decorativeBox::top-end[theme="dark"]
{background-image: url("../images/fondo4.jpg");}
af|decorativeBox::start[theme="dark"]
{background-image: url("../images/fondo5.jpg"); background-repeat: repeat-y;}
af|decorativeBox::end[theme="dark"]
{background-image: url("../images/fondo6.jpg"); background-repeat: repeat-y;}
af|decorativeBox::bottom-start[theme="dark"]
{background-image: url("../images/fondo7.jpg");}
af|decorativeBox::bottom[theme="dark"]
{background-image: url("../images/fondo8.jpg");}
af|decorativeBox::bottom-end[theme="dark"]
{background-image: url("../images/fondo9.jpg");}
But the selectors bottom-start, bottom-end and bottom don't display the correct images in theme Dark
Thanks
EdmarThanks it was helpful!!!...
Now I changed my css properties to:
af|decorativeBox::center
background-color: Maroon;
af|decorativeBox::top-start
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::top
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::top-end
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::start
{background-image: url("../images/fondo.jpg"); background-repeat: repeat-y;}
af|decorativeBox::end
{background-image: url("../images/fondo.jpg"); background-repeat: repeat-y;}
af|decorativeBox::bottom-start
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::bottom
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::bottom-end
{background-image: url("../images/fondo.jpg");}
af|decorativeBox::top
{-tr-height: 20px
af|decorativeBox::bottom
{ -tr-height: 20px
af|decorativeBox::bottom-start {-tr-width: 20px;}
af|decorativeBox::top-start {-tr-width: 20px;}
af|decorativeBox::bottom-end {-tr-width: 20px;}
af|decorativeBox::top-end {-tr-width: 20px;}
af|decorativeBox::start {-tr-width: 20px;}
af|decorativeBox::end {-tr-width: 20px;}
af|decorativeBox
-tr-top-facet-layout: full;
The decorative's look change but in the center part there is a strip across the center of the component.
I can't change it
Thanks.
Edmar -
Can I hide the set time in the event boxes in Week View?
Can I hide the set time in the event boxes in the Week View?
David
No way around this that I can find. That toolbar pops up if you pause the show.
The nearest I could figure is to use the settings button for a long slide - 'Play each slide for 120 seconds' then tapping the arrows will move the slides along without showing the toolbar. And the 120 second slide is almost as good as a pause.
iPhoto menu -> Provide iPhoto Feedback
Regards
TD -
Set Width for a column, Merge cells in Excel
Hi all,
I am using jacob.dll to open and modify an Excel file. And I am stucking in below trouble:
Dispatch workbook = Dispatch.invoke(workbooks, "Open",
Dispatch.Method,
new Object[]"D:\\02042005.xls",
new Variant(false), new Variant(false)},
new int[1] ).toDispatch();
Dispatch sheet = Dispatch.get(workbook,"ActiveSheet").toDispatch();
System.out.print(sheet.get(sheet,"Name") + "\n");
Dispatch a1 = Dispatch.invoke(sheet, "Columns",
Dispatch.Get,new Object[] {"A:A"},
new int[1]).toDispatch();
Dispatch.put(a1,"Width","8");
Error message is that I can not set value Width for object RANGE! so strange... Is there any ways to set Width for a certain column?
Any help is appreciated.
Regards,
YukiNguyenHi all,
:) At last I can work done with Jacob, so great :) take me all yesterday to find more... just hope this post can help someone like me save one day to find how :)
//Get Range
Dispatch orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"A1:I1"},new int[1]).toDispatch();
//Get Column I & set Width
ocolumn = Dispatch.invoke(orange,"EntireColumn",Dispatch.Get,new Object[]{"I"},new int[1]).toDispatch();
Dispatch.put(ocolumn,"ColumnWidth","60");
//Merge cell
orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"C12:D12"},new int[1]).toDispatch();
orange.call(orange,"Merge");
Is it exciting, huh? :) I am trying to set HorizontalAlignment... beginner always stuck in somethings :)... but I have learnt so much
Regards,
YukiNguyen -
How to set width of cfgid in percentage?
I have to make the cfgrid compatible irrespective of screen size. But it is not taking width in perecntage(giving error : Attribute vallidation error, height/width can not be given in percentage.)
I put the cfgrid inside a div and set width of the div as 100%, but it has no effect on the cfgrid.
Can anyone please give me a solution??
I will be thankfull towards any helpfull suggestion.Then you have to find a way to get the browser to send information about screen size to ColdFusion. One way to do it is by means of AJAX. Another, in my opinion much simpler way, is to get Javascript to store the screen size as a cookie, and then to get ColdFusion to read the cookie. I was thinking of something like this
<script type="text/javascript">
var browserWidth = screen.width;
var browserHeight = screen.height;
var expiryDate=new Date();
/*set expiry date tomorrow*/
expiryDate.setDate(expiryDate.getDate()+1);
document.cookie= 'browserWidth='+browserWidth+',browserHeight='+
browserHeight+',expires='+expiryDate;
</script>
<cfset percentWidth = 90>
<cfif isDefined("cookie.browserWidth")>
<cfset browserWidth = cookie.browserWidth>
<cfelse>
<cfset browserWidth = 800>
</cfif>
<cfset gridWidth = int(percentWidth*browserWidth/100)>
<cfform>
<cfgrid format="html" name = "myGrid" width="#gridWidth#">
</cfgrid>
</cfform> -
Building Site CSS Safari Problem, no set width?
Strange problem in Safari, i have a image holder and a description for the image below both floating left, done as a class so you can have another one along side with a different image.
The image holder doesn't have a set width because the image that goes into it will be varying widths.
This for some reason does not work in Safari, see here
Its bizarre because it works fine in IE,FF etc
Can Safari only render using a set width? Or is there a hack around it?
Any ideas?Here's the thing. I see some items which could be causing
problems. However, we need to fix the basics before going too far
into this or you will end up with more problems than when you
started.
Run your pages through the validator (
http://validator.w3.org/ ) and
fix those errors first. Your problems here seem to be identical on
both pages. For instance, you have an extra head tag, you have
<style> tags in the middle of your document (these are only
allowed in the head), etc.
Go through those and once you have eliminated the errors from
the validation we can solve your problems with the
positioning. -
Setting up my own SAND BOX for HANDS ON / practicing BW
Dear friends,
I am learning SAP BW, and I need to practice some test cases to make myself comfortable.
I want to install SAP R/3 on a seperate external hard disk and configure to my system.
<b>Can anybody from <b>"BANGALORE"</b> tell me <b>who / where i can get this done?</b> How much is it going to cost (Approx) Some address & contact numbers would be really helpful.</b>
Thanks.<b></b>Even I am interested in setting up my own SAND BOX.
Can any body help us. -
How to set width to be same as screen size?
Dear all
I want to set the width of my view elements to be same as that of screen size, so that if a user with low resolution monitor runs it, or if a user with high resolution monitor runs it, both see the same.
I tried setting the width to 100%. But it is not working.
My root container layout is Grid layout.
Any suggestions please?
Thanks in adv.Hi,
For ROOTUIELEMENTCONTAINER set the stretchedHorizontally,stretchedVertically to true.
And for the UI element set width as 100%, this will make the UI elem to expand to the complete screen.
Best regards,
Suresh
Message was edited by:
Suresh Honnappanavar -
Fixing a set width for horizontal menu bar
I'm using the Spry horizontal menu bar at the top of my page and want to put it as a set width that doesn't zoom or shrink in size when someone uses this function on their screen. At the moment, when zooming, the menu wraps to the next line. How can I stop this? Does anyone know how to do this please?
Many thanks,You can set the width of the menuitems as a percentage, you can also set a minimum width for the menubar container (UL).
Gramps -
Looking to set up a public voicemail box
Hi guys, I'm looking to set up a public voicemail box that users can call into to check messages. I want to have a few users with admin privledges that can add/delete messages, and everyone else with read-only access. Is this possible?
still looking for some help with this, another question I had was how to disable a voice mail user, to stop any type of voice mails from coming to them.
-
Setting width/height too early??
I noticed if I set width and/or height before adding it to
displayList, the displayObject simply won't show up. The following
code is a cut&paste from livedoc (SimpleButton), except that I
add a line of "button.width=20".
If, however, I move the line to after addChild(), things work
normally.
Why?:confused: :confused: :confused:
[CODE]
package {
import flash.display.*;
import flash.events.*;
public class SimpleButtonDemo extends Sprite {
public function SimpleButtonDemo( ) {
// Create a simple button and configure its location
var button:SimpleButton = new SimpleButton( );
button.x = 20;
button.y = 20;
//// ################# Added by me. Button won't show up any
more.
button.width = 80;
// Create the different states of the button, using the
// helper method to create different colors circles
button.upState = createCircle( 0x00FF00, 15 );
button.overState = createCircle( 0xFFFFFF, 16 );
button.downState = createCircle( 0xCCCCCC, 15 );
button.hitTestState = button.upState;
// Add an event listener for the click event to be notified
// when the user clicks the mouse on the button
button.addEventListener( MouseEvent.CLICK, handleClick );
// Finally, add the button to the display list
addChild( button );
//// ############### This works, if added here!!!!
// button.width = 20;
// Helper function to create a circle shape with a given
color
// and radius
private function createCircle( color:uint, radius:Number
):Shape {
var circle:Shape = new Shape( );
circle.graphics.lineStyle( 1, 0x000000 );
circle.graphics.beginFill( color );
circle.graphics.drawCircle( 0, 0, radius );
circle.graphics.endFill( );
return circle;
// Event handler invoked whenever the user presses the
button
private function handleClick( event:MouseEvent ):void {
trace( "Mouse clicked on the button" );
}[/CODE]You're using the simple button class. Just because you
instantiate an object of this class doesn't mean you've added
anything to the button.
What I'm trying to tell you is that addChild has nothing to
do with it. Simple Button just happens to be dependent on what is
defined inside the button states themselves.
For instance, comment out your hitStates leaving your width
call after the addChild and you should notice the same behavior as
before. By defining the button states, you are actually adding
content to the container that will be drawn to the display when
addChild is called.
You can define your height and width anytime after you have
defined the states for the button. At this point, Flash will then
have content to manipulate. Until you have drawable content to push
to the display list, nothing will happen when width and height are
called. -
How to set uncheck in Bidder check box in T-Code "BBPMAININT"
Hi All,
Could any body help me by providing the information "How to set uncheck in Bidder check box in T-Code "BBPMAININT". I search all the BADI and EXIT but didn't get.
My problem is that, I want to uncheck "BIDDER" check box for Vendor whose account group is "ZORD" in transaction "BBPMAININT". I checked all the BADI and Exit but didn't get.
Regards
SanjayHi
Which SRM version are you using ? Please elabore your requirments in more details in the next reply.
<b>Meanwhile, please try the following SAP OSS Notes -></b>
Note 512218 - Ext. partner maintenance: checkbox problems
Note 455440 - Ext. partners without contact person: Checkbox problem
Note 585126 Correction of Section508 implementation
528367 Multiple company: Evaluated receipt settlement
527097 BBPMAININT: 'Undo All' not complete
361829 EBP (BBP2.0C): Business partner <-> vendor mapping
Note 357201 BBP 2.0B: Business partner <--> vendor mapping
Note 355506 Ext. no. assignment when creating business partners
Do let me know.
Regards
- Atul
Maybe you are looking for
-
Firefox 5: distortion when scrolling on all web pages; wavey appearance
There is distortion when scrolling on all webpages using Firefox 5. It doesn't matter how fast or slow the scrolling is, the screen becomes wavey until the scrolling stops. I have uninstalled and reinstalled Firefox and that hasn't helped. This does
-
My t420 has an integrated Intel HD Graphics card. Periodically, it will pixelate the screen and white out parts of programs like excel. Most recently, it shows an "up-carrot" or < )pointing up, it little sections of the screen. I tried changing resol
-
When placing an image in Muse time lag
When placing an image in Muse it takes 20 or more seconds for the folder to populate, is this a mac issue or an adobe issue?
-
Little Problem with Photoshop CS3
Hi, I have a little problem with Photoshop CS3, I'm not sure if this's because a Windows option that I messed up, but the thing is that I didn't touch any options, or some kind of preferences. I'm talking about the "little windows" (I don't know the
-
Where can I get the texture file puzzle.psd for Photoshop CS4?
Does anyone know where I can get the texture file puzzle.psd for Photoshop CS4? I searched the web and got lots of links but none of them results in me downloading the puzzle.psd file.