Change displayed text in textfield an space between elements
Hey people,
a have a Form based on a View. i want to change the spaces between some rows or elements (to group some elements) and don't know how.
For example:
Name Surname
Birthday
Phone Mobil
City
Between Birthday and Phone, and Phone and City now should be more space.
I made it now like that:
Birthday: Display --> rowspan --> 2
and put an Element just shown as Text empty without label below "Birthday". But i don't like that because i need so much empty elements. Is there another possibility to change the style?
I want to change the size from the displayed text in the textfields too, or make it bold maybe.
I hope, i could make it comprehensible to you, if not ... just ask
Greetings, Jana
hey ageller,
thank you very very much. that is exactly what i'm searched for ;-)
can you tell me, if this doesn't work in firefox or mayby why? in IE 7 all works fine, but Firefox 2.0.0.6 doesn't show any changes.
I cleared the cache but still no changes.
Got the same problem with the width of my columns. In IE, Content is shown in one row and Firefox there is linebreak.
Do you (or anybody else) know, how i can fix this??
Thank you so far ....
Jana
Similar Messages
-
Read from Text File.vi adds spaces between characters
I'm openning a text file in LabVIEW, and and need to parse some information from it. However, when I open the file, there are extra spaces between the letters. When I just open the same file with Notepad or Wordpad, the spaces are not there. Is there a way to eliminate this problem?
And, since after the \FF\FE, every other character is \00, you can even do a homebrew quick&dirty solution.
Are the files always like that, or are some "normal"?
LabVIEW Champion . Do more with less code and in less time .
Attachments:
readspecialfile.png 12 KB -
Change display text in discoverer from database view
Hello,
I just wondered if it possible to do the following:
Create a discoverer report using e.g. person type field. In the database view the value required for this would be "Full-time" however when the user sees the value in the discoverer report the value is displayed as Employee type 1?
Can you change the text of a value a user sees in discoverer form what it is pulled out of the view as?
Please advise
Thank you
SarahHi Sarah
Yes you can do this. It is done as a calculation like this:
CASE
WHEN Person_Type = 'Full-time' THEN 'Employee type 1'
WHEN Person_Type = 'Part-time' THEN 'Employee type 2'
ELSE Person_type
END
You would call this calculation Employee Type and display it it in the report instead of Person Type.
Best wishes
Michael -
Carriage Returns in HTML Code Creating Extra Spaces Between Elements
I've looked online all over and can't find the solution to my issue. I've found several pages explaining a similar event, but no solution.
When placing many divs next to each other, I would like to visually view the code as one div per line: (see image) To get this, I have to use hard returns in my code (this method makes editing a lot easier visually). But doing so adds extra spacing between the divs which turns a 3 column set of thumbnails to 2 colums. I can fix this if I adjust the physical margins between the divs, but this can't be the only fix.
The other fix is if I place the code back to back to back (see image): This makes the div's behave and appear as they should, but now the code is a visual mess because it's all cluttered.
What I want is to be able to use as many carriage returns in my code and for browsers to disregard these types of line breaks in the code. So essentially, how can I get away from these extra spaces when using hard returns in code?I think that both your pages have a missing </div> at the end somewhere.
Opps... that happened when I was stripping down the page to create a working example of my issue. I've fixed the missing div and re-uploaded both pages. The problem is still there.
Change display: inline; to float: left; and add margin: 0 0 4px 4px; (as shown below)
I had already tried using float, but something else in the code was forcing the columns to 2 instead of 3.
Have you used "Apply Source Formatting" ?
I use that religiously. I'm quite anal about visually clean code.
Well, I just fixed the problem while replying... funny... I removed the margins from the actual img element (.imageThumb img) and placed it on the div which surrounds the img (.imageThumb). I also reapplied the float. Thanks all for the help - it helped me rethink. But I could have sworn I had once placed the margins on .imageThumb before and it didn't work.
.imageThumb {
width: 100px;
height: 75px;
display: inline;
float: left;
margin: 0px 10px 10px 0px;
cursor: pointer;
.imageThumb img {
/*margin: 0px 10px 10px 0px;*/ -
Consistent vertical space between elements in page layout--Pages 09
Hello,
Is there a way to maintain a consistent amount of vertical distance between elements in the Pages 09 layout view?
Thanks,
~ASelect a series of objects:
+Menu > Arrange > Distribute Objects+
Or use:
+Inspector > Objects > Metrics (6th tab)+ to position them accurately.
When you move objects Pages offers you various alignment guides to position them relative to other objects edges' or centres.
Peter -
Can I measure the space between elements like in Photoshop?
In Photoshop, I can hold the Option key to show the distance between elements. Is there a way to do this in Illustrator?
Look for the Measure Tool under the Eyedropper...
-
Changing Some Text in TextField
Hi everyone,
Hope everyone is doing good..
Curious if you can change only some text in a TextField rather than all of it...
Like simple example:
The Ocean has alot of water...
And make Ocean blue?
Thanks for any help -- StanDo you mean the text is there in one way and then changes via some actionscript, or you edit the text in a static textfield to have that one word a different color? For the latter, just do it.
To do it via actionscript you would need to use htmlText property of of a dynamic textfield to make the ocean a different color. If you wanted it to change via some actionscript from one color to another (just that word), you would have to rewrite the sentence, just add the html tags needed to color the text as desired. -
My layout wont listen to size I set and creates huge spaces between element
I am having a small issue:
Here is an image with the issue:
http://i877.photobucket.com/albums/ab335/darksniperx2/asg2_prob.jpg
Is there anyway to remove all of the extra spaces and that the program would follow with the size I specify?
code:
public void initialiseComponents(final Container pane){
//initialise panels
mainPanel.setLayout(new GridLayout(2,1));
topSection.setLayout(new GridLayout(1,3));
mainGrid.setLayout(new GridLayout(21, 6));
//initialise components text
nameLbl.setText("Enter you name:");
timeSchLbl.setText("Time scheduler");
chkBoxNotificationLbl.setText("Check on the check boxes");
timeLabel.setText("Time");
modayLabel.setText("Monday");
tuesdayLabel.setText("Tuesday");
wednesdayLabel.setText("Wednesday");
thursdayLabel.setText("Thursday");
fridayLabel.setText("Friday");
//add compenents to topSecion
topSection.add(nameLbl);
topSection.add(timeSchLbl);
topSection.add(chkBoxNotificationLbl);
//add components to mainGrid
mainGrid.add(timeLabel);
mainGrid.add(modayLabel);
mainGrid.add(tuesdayLabel);
mainGrid.add(wednesdayLabel);
mainGrid.add(thursdayLabel);
mainGrid.add(fridayLabel);
setCheckboxes();
//add layouts
mainPanel.add(topSection);
mainPanel.add(mainGrid);
pane.add(mainPanel);
private static void createAndShowGUI() {
//Create and set up the window.
asg2 frame = new asg2();
frame.setSize(1000,900);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Set up the content pane.
frame.initialiseComponents(frame.getContentPane());
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}Hold it right there, I did not say that GridLayout was no good. It is perfect for your other two panels, but not for mainPanel.
... which one do you think would be better or serve this situation?First, check out the link Mr Burke gave you from the previous post -- you're going to need to know all those Layouts presented that tutorial anyway. I try to use the default Layout on a Container if possible. I personally like the GridBagLayout, but it is much more difficult to use and understand than the other Layouts in the tutorial.
OP, don't think that any of these solutions come easy or fast -- there is a lot of studying and practicing to do. Try all the Layouts and see what happens, until you have no doubts about which one to use for your app. -
How can I change the space between a checkbox and text all at one time? I have a lot of checkboxes in my form.
Okay, I haven't found a way to add an extra space using Find/replace, but you might be able to add some text wrap to the check boxes that will push the text away from them.
Open Find/Replace and click the Object tab.
Click the Specify attributes to find button to the right of the Find Object Format: field.
Under Basic Attributes, choose Stroke and then the Black swatch (assuming the black swatch is applied to the strokes of your check boxes). If there are no other stand-alone objects in your form with a Black stroke, this should be all you need. (If there are Black strokes on your table cells, they will be ignored.)
Click OK
Click the Specify attributes to change button to the right of the Change Object Format: field.
Under Basic Attributes, choose Text Wrap & Other > Text Wrap > Type: > Wrap around bounding box (2nd button from left)
Under Offset, set a Right offset at the distance you'd like to add (I don't know what units you use, but the 3-5 points might work for your purposes...might take some trial-and-error to get it where you want)
Click OK
Click Change All -
How to change space between folder icon and text on personal toolbar?
I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away.
I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text.
Any help would be greatly appreciated, thanks.Did you check the value of the margin-left of the text?
You can set negative margin values if necessary.
<pre><nowiki>#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre>
Add .bookmark-item[container] if you only need this for folder items
<pre><nowiki>#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre> -
Firefox has too much space between text
Something changed in my Firefox display. It is now showing a large amount of space between text. Also, the fields for data entry have increased their size. Text size is okay. Thank you for your help.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
You can set the <b>layout.css.devPixelsPerPx</b> pref on the <b>about:config</b> page to 1.0
You can adjust layout.css.devPixelsPerPx starting from 1.0 in 0.1 or 0.05 steps (1.1 or 0.9) to make icons show correctly.
You can open the <b>about:config</b> page via the location/address bar.
You can accept the warning and click "I'll be careful" to continue.
*http://kb.mozillazine.org/about:config
Use an extension to adjust the text size in the user interface and the page zoom in the browser window.
You can look at this extension to adjust the font size for the user interface.
*Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/
You can look at the Default FullZoom Level or NoScript extension if web pages need to be adjusted after changing layout.css.devPixelsPerPx.
*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
*NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/ -
Space around text in textField.
Hi,
See attatched code.
I made a simpel textFiled with some text and a border.
Does anyone knows how to get rid of the extra space between
the text and the border of the textField? I'm goning crazy with
this.
I made the width of the textFiled the width of the text and
the height of the textField the height of the text. But because of
the extra space the text will not show as I wanted to be.
Is there a solution for this? To remove the extra space
surrounding the text?
Thanks.unfortunately no :(
I tried that already. There is also no top margin and bottom
margin property that I could use :(
I have a text line, and I must position this line to the x/y
coordinates of the righttop of the textField. But with this space
it will not exactly position on the given x/y.
There must be a solution to get rid of this space? Or maybe I
use the wrong object to do this?
Anyone? -
Reg: Adding spaces between texts in ALV list header
Hi All,
I was implementing a client requirement for ALV. The list header should contain something of this format.
Pgm Id: ZZZ01
After this list header it is ALV display.
I did this using the concatenate statement.
ex: Concatenate 'PgmID' sy-repid into listheader seperated by space.
But this is not showing spaces between text in ALV display. See I want a tabspace between the texts in headr. Any idea on how to mak it?
RakeshDepending on Fontsize the space might be so narrow that you believe its not there.
check in the debugger if there is really a space in the string, the clause "separated by space" will insert one for sure.
May be you'reshowing the ALV before you are modifying the listheader?
Another approach is using strings, blanks at the end of a string are not deleted
concatenate 'ABC ' 'XYZ' into s.
and
concatenate `ABC ` `XYZ` into s.
will give different results, be aware of the difference in the quots in both cases. Using the second example you can insert as many blanks as you want. -
Printing to PDF from MS Office: lost hyperlinks if display text changed
Greetings.
I'm using Acrobat Pro vers. 8.1.7 and MS Office 2007.
I'm not sure if this is an Acrobat or an MS Office issue or somewhere in between.
I need to print an Excel document to a PDF with hyperlinks.
Creating hyperlinks in Excel is no problem.
If I print to a PDF (using Adobe PDF Converter printer driver), the hyperlink appears and works in the PDF. No problem.
But I need to change the display text of the link - instead of a URL I need to display a "user friendly" name.
Problem.
If I edit the link in Excel and change the display text, the link works in Excel, no problem.
But when I print to a PDF the link is lost. I get pretty blue underlined text, but the link information is not embedded in the PDF.
Problem!
I've experimented and done some research, but nothing so far.
Any ideas?
Help!
Thank you,
GregThe links you are seeing in the PDF are likely not hard links, but what Acrobat thinks are links. That is what happens when you print to the Adobe PDF printer. If you want to retain the links in the original form, you need to use PDF Maker (or may be listed as create PDF) in Excel. The end result should be a PDF with the links appearing in the same way as in Excel.
-
Duplicating movieclips w/textfields on them & changing the text
Okay, there is a movie clip in the library. Has three layers. Each of the layers is also in the library. Layer 1 has a button symbol, layer 2 a text symbol with instance name 'item_label', layer 3 is color. instance name is 'flbutton'. To me, it looks like this was created into a symbol itself and given intance name of 'menu_item'.
An array is created with button label names. A loop is created based on the number of labels in the array. An instance of 'menu_item' is created each loop and placed on the stage/screen and the text on the button is changed to the item in the array.
My question....how do you do that in AS3?
var menu_label:Array = new Array("Introduction", "Templates", "Services", "Clients",
"Testimonials", "Support", "About Us", "Contact");
// *** menu label array length must be equal to number of
// *** total frames inside "menu button bg" Movie Clip in the library.
var total:Number = menu_label.length;
var tween_duration:Number = .85;// in seconds
var radius:Number = 185;
var angle:Number;
var i:Number = 0;
function create_menu():Void
angle = (i - 2) * Math.PI * 2 / total;
position_x = Math.cos(angle) * radius;
position_y = Math.sin(angle) * radius;
var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);//** menu_item_group is instance name already on the
//** stage and is instance of symbol in library that has
//**instance name of menu_item
fm.stop();
fm.bg.gotoAndStop(i + 1);
fm.over = true;
fm.item_label = menu_label[i]; //** here is where the text of each newly created MovieClip's text is changed
fm.item_no = i;
more code.........
loop
Can someone tell me how to do this in AS3? I have learned how to duplicate a movieclip with DisplayObjects, but I have no way of knowing how to get to the text field in order to change it.
Regards,
Kevin
ps. new to Flash. Decent amount of VB programming experience.You are correct about the instance names etc... my apologies... I did not save my work and lost what I was doing. My Dev enviroment is a personal laptop with Flash. The company has yet to purchase Flash. My laptop did an auto Windows update. I lost my testing .fla.
You were right about the instance name. It was missing from my previous example. That has been correct. I now get no errors, but setting the autoSize property did not work.
I'm creating two MovieClips. One is the MovieClip of the actual TextField and the other is of a MovieClip with the TextField on it.
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
When I create the MovieClip of the TextField directly:
var mcTxt:MovieClip=new clsText(); //pardon me, but I just had to use some VB naming conventions to help myself out.
addChild(mcTxt);
mcTxt.item_Label.autoSize=TextFieldAutoSize.LEFT;
mcTxt.item_Label.text="Hello Willeeerrrrr";
When I add the field without changing the text, the text field defaults to "Hello World". When I attempt a change as in the code above, the text field looks as follows: Hello Willeee. If I add a fourth 'e', .text="Hello Willeeeerrrr", it will add it to the text field the next time I test. The final 'rrrrr's' get truncated. Wierd.
Now, when I do the above on the MovieClip with the child text field, the text just disappears.
var mc:MovieClip=new clsMenuItem();//MovieClip with the embedded/child textfield
addChild(mc);
mc.mcMenuItem.item_Label.autoSize=TextFieldAutoSize.LEFT;
mc.mcMenuItem.item_Label.text="Hello Willred";
The above code causes the text to display blank.
I'm close and hope it's just a property setting...ideas?
Maybe you are looking for
-
Hp 6500 officejet 6500 e709n series won't print
This printer printed a few documents, but, after one week, it would not print, I just get an error message on the screen and my computer has a popup that says "document failed to print". Officejet 6500 e709n series.
-
When I open iTunes as the source, it says it needs to be open to populate, which it is. I have no knowledge of computers...like, at all....so I need some (simple) help? If possible? Thanks.
-
Hi I'm new to Dreamweaver, This is the first time I've attempted to create a website. I've learnt how to set up templates etc, but I think I'm missing something... when creating a new web page from template, I've been trying to insert a picture as ba
-
Problem with audio after upgrade
Hi all, I am experiencing some audio issues after upgrading my MBP8,2 15" (early 2011 with i7 2GHz processor and 16 GB RAM) to OS X Yosemite. In particular, sometimes the audio simply doesn't work with internal speakers - the volume indicator goes up
-
Verizon reporting negative information on credit report
Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum, and look in the middle, right at the top where you will