Margin/Tiling
Sitting here in a Computers in Design class. Our "professor" has his sample prints for us to match ours to. His is like it's scaled up a bit larger than what all of ours are. So since all his students drawings were matching he went through to make his the same. He says it could be the program difference from CS2 to CS4 but i think he had a problem with his border/margin/tiling. Im still new so i don't know what to call it. Its the 2 dotted lines that follow my page. One dotted line lays on the page edge while the other sits an inch and a quarter inside of that. His 2 dotted lines were both outside the Page edge. Would this have any contribution to why his seemed scaled larger.
He keeps saying its "major software issues" but i think he' smoking something. Maybe im wrong though since im new to AI.
Juke Spoko,
Is he able to create rectangular smoke rings? And blow them past the Artboard boundaries?
Software issues may be something in the head of someone.
Here is something from the Helpfiles in good old 10:
Imageable area
The imageable area is bounded by the innermost dotted lines and represents the portion of the page on which the selected printer can print. Many printers cannot print to the edge of the paper.
Nonimageable area
The nonimageable area is between the two sets of dotted lines representing any nonprintable margin of the page.
Edge of the page
The page edge is indicated by the outermost set of dotted lines.
Artboard
The artboard is bounded by solid lines and represents the entire region that can contain printable artwork. By default, the artboard is the same size as the page, but it can be enlarged or reduced. The U.S. default artboard is 8.5" x 11", but it can be set as large as 227" x 227". You can choose to show or hide the artboard.
Note: The imageable area and page size are not limitations when printing to imagesetters that handle large media. Imagesetters can typically print to the edge of the page. The page size used by an imagesetter may be larger than the page size specified in Illustrator, enabling you to print bleeds, for example, that run past the edge of the page.
Similar Messages
-
Printing on Letter size paper, Margin issues!
I am working from a Dell Optiplex 755 with Windows XP, Illustrator CS2 and an HP 4345 printer.
The problem is summarized in the below paragraphed points:
We print on an 8.5x11 sheet of paper, with artwork sized for 8.5 x 11 exactly. The artwork contains 4 quarter page images to be cut into flyers, which each have 1/4" margins all the way around them. There is a back side as well, created with the same specifications. We wish to print these flyers duplex from high quality PDF files that we created in Illustrator.
When the print comes out, the right hand margin of the sheet is larger than the top, bottom, and left margins.
The top, bottom, left margins= 0.166"; this doesn't effect the top, bottom, and left sides of the artwork, as the .25" margin we setup on the artwork is greater than the .166" margin of the print area.
However, the right hand margin= 0.306"; this means that the right side of the artwork gets cut off by .056" (.306-.25")
In order to fit all of the artwork on the page, we can either shift the Page Tiling Print Area over slightly, or we can select the print option "Shrink to Fit". However this is a problem because we are printing the two sides as a duplex (printed both sides), and the tiled artwork on the front won't line up what is printed on the back because of the larger right margin. Therefore if the sides don't line up when we go to cut, the information is going to be cut off on the opposite side to the one we are cutting.
The printer setting for 8.5x11" paper "Letter" is what we believe to be creating the offset margin. (We checked the specifications for a Letter print, and the standard margins were identical to the ones we see exhibited in the print outs, 0.166" vs. 0.306")
We understand that there might be a way to set up your own custom print setting through Adobe Acrobat/ Photoshop/ Illustrator for a specfic type of print job, allowing you to control the print margins, but we are not familiar with the process.
Can you think of any other possible causes and/or solutions for the problems that are described?Thanks for the feedback Karen! I'm not sure that the setup process is pricesly the same in illustrator but I've got some screenshots of how the artwork is setup to give you an idea.
This is the artwork shown with the Rulers included to show the size of the artboard and where the guides are set for the margins I want:
http://i5.photobucket.com/albums/y198/tcperry/Alanis-Tiled-Artwork-with-g.jpg
This is the artwork shown with the Print Area shown by selecting View>Show Page Tiling:
http://i5.photobucket.com/albums/y198/tcperry/Alanies-showing-print-area.jpg
So I think that the artwork is correctly setup, however the problem lies in the printing area that seems to be predetermined by the printer setting 'Letter' for 8.5x11" paper (see the dotted line on the second screen shot).
I see what you're talking about when you say 'centered on page' and yes we have Auto-Rotate and Center selected in the Page Handling options when printing from PDF. However it will still just chop off the artwork that comes within .306" of the right side of the page. Is there anyway around this .306" margin that seems to be set by the printer? -
I am working from a Dell Optiplex 755 with Windows XP, Illustrator CS2, Acrobat 8 Pro and an HP 4345 printer.
The problem is summarized in the below paragraphed points:
We print on an 8.5x11 sheet of paper, with artwork sized for 8.5 x 11 exactly. The artwork contains 4 quarter page images to be cut into flyers, which each have 1/4" margins all the way around them. There is a back side as well, created with the same specifications. We wish to print these flyers duplex from high quality PDF files that we created in Illustrator.
When the print comes out, the right hand margin of the sheet is larger than the top, bottom, and left margins.
The top, bottom, left margins= 0.166"; this doesn't effect the top, bottom, and left sides of the artwork, as the .25" margin we setup on the artwork is greater than the .166" margin of the print area.
However, the right hand margin= 0.306"; this means that the right side of the artwork gets cut off by .056" (.306-.25")
In order to fit all of the artwork on the page, we can either shift the Page Tiling Print Area over slightly, or we can select the print option "Shrink to Fit". However this is a problem because we are printing the two sides as a duplex (printed both sides), and the tiled artwork on the front won't line up what is printed on the back because of the larger right margin. Therefore if the sides don't line up when we go to cut, the information is going to be cut off on the opposite side to the one we are cutting.
The printer setting for 8.5x11" paper "Letter" is what we believe to be creating the offset margin. (We checked the specifications for a Letter print, and the standard margins were identical to the ones we see exhibited in the print outs, 0.166" vs. 0.306")
We understand that there might be a way to set up your own custom print setting through Adobe Acrobat/ Photoshop/ Illustrator for a specfic type of print job, allowing you to control the print margins, but we are not familiar with the process.
Can you think of any other possible causes and/or solutions for the problems that are described?As is detailed above, I am working with Illustrator CS2. The graphic is setup on an 8.5x11" artboard with guides set to have a 1/4" margin on all sides.
To create the PDF file, I just do a Save As>Adobe PDF through Illustrator. So to answer your question, no, I do not have Adobe PDF selected as the printer. I have the HP 4345 printer selected and set to 'Letter' for printing on 8.5x11" page. -
Script for Window tiling in openbox
I wanted to use a tiling window manager but didn't want to leave openbox. So I started using PyTyle and PyTyle2 but they both took up more RAM than I could afford to let them use in my lowly desktop. So I wrote a script to do my tiling for me using wmctrl and xwininfo. And here are the results:
GRID mode:
BOTTOM MASTER mode:
TOP MASTER mode:
LEFT MASTER mode (also the default) :
RIGHT MASTER mode:
MAX mode:
HORIZONTAL SPLIT mode:
VERTICAL SPLIT mode :
The entire thing is just one bash script that I named wmtiler.sh
The script itself is rather poorly written as I don't have much experience in bash.
#!/bin/bash
# use wmctrl and xwininfo to tile windows
#currently supports the "LEFT_MASTER" mode (default),
# "RIGHT_MASTER" mode (-r) ,
# "TOP_MASTER" mode (-t),
#"BOTTOM_MASTER" mode (-b) ,
#"GRID" mode (-g),
#"MAX" mode (-m) ,
# "VERTICAL_SPLIT" mode (-v) and
#"HORIZONTAL_SPLIT" mode (-h)
#NOTE: wmctrl sets the properties of the window itself i.e. the window manager's borders
#and title bars are not taken into account while setting the coordinates. So for best results
#set the window manager to display all windows undecorated
#or manually set the title bar height here
#List of things to do:
# 1. Get the values of the TOP_MARGIN, BOTTOM_MARGIN, LEFT_MARGIN and RIGHT_MARGIN from the window manager
# 2. Get the MASTER_WIDTH for the default LEFT_MASTER, RIGHT_MASTER layouts as a parameter , set a default if not provided
# 3. Get the MASTER_HEIGHT for the default TOP_MASTER, BOTTOM_MASTER layouts as a parameter , set a default if not provided
# 4. Get the NUMBER_OF_ROWS for the grid mode as a parameter, set a default if not provided
# 5. Get the TITLE_BAR_HEIGHT from the window manager
# 6. Restructure the code to use functions
# 7. Provide mechanisms to increase/decrease the MASTER area
# 8. Provide mechanisms to increase/decrease the number of windows in the MASTER area
#List of bugs
# 1. If called from a key combination, there may not be a :ACTIVE: window and in which case the results are not as desired.
# 2. The title bar plays havoc with the height of windows
#need to find a way to get these from the window manager
TOP_MARGIN=18
BOTTOM_MARGIN=18
LEFT_MARGIN=0
RIGHT_MARGIN=0
TITLE_BAR_HEIGHT=17 #works best if all the windows are border less and this is set to zero
#we are now using xwininfo to get these
#HEIGHT=1080
#WIDTH=1920
#either set these in a file or calculate them from the screen properties
MASTER_WIDTH=1344
MASTER_HEIGHT=600
#set the number of rows we want for the grid mode
NUMBER_OF_ROWS=2
#looks nice :)
USELESS_GAPS=1
#see what the user wants to do
case $1 in
"-g")
MODE="GRID"
"-m")
MODE="MAX"
"-v")
MODE="VERTICAL_SPLIT"
"-h")
MODE="HORIZONTAL_SPLIT"
"-t")
MODE="TOP_MASTER"
"-b")
MODE="BOTTOM_MASTER"
"-r")
MODE="RIGHT_MASTER"
MODE="LEFT_MASTER"
esac
#get the desktop parameters
HEIGHT=`xwininfo -root | grep 'Height:' | awk '{print $2}'`
WIDTH=`xwininfo -root | grep 'Width:' | awk '{print $2}'`
#get the window parameters
#get the current desktop
CURR_DESK=` wmctrl -d | grep '* DG:'| awk '{print $1}'`
#get the total number of windows.
#NOTE: we are not directly using grep to get the windows from the current desktop as it may serve up some false positives
TOTAL_WINDOWS=`wmctrl -lx | wc -l`
#counter
i=1
#Assume that there are no windows in the current desktop
WINDOWS_IN_DESK=0
while [ $i -le $TOTAL_WINDOWS ] ; do
CURR_LINE=`wmctrl -lx | head -n $i | tail -n 1`
WIN_DESK=`echo $CURR_LINE | awk '{print $2}'`
if [ $WIN_DESK -eq $CURR_DESK ] ; then
#save the various window properties as supplied by wmctrl . Un comment rest if necessary. Include more if necessary
WIN_XID[$WINDOWS_IN_DESK]=`echo $CURR_LINE | awk '{print $1}'`
# WIN_XOFF[$WINDOWS_IN_DESK]=`echo $CURR_LINE | awk '{print $2}'`
# WIN_YOFF[$WINDOWS_IN_DESK]=`echo $CURR_LINE | awk '{print $3}'`
# WIN_WIDTH[$WINDOWS_IN_DESK]=`echo $CURR_LINE | awk '{print $4}'`
# WIN_HEIGHT[$WINDOWS_IN_DESK]=`echo $CURR_LINE | awk '{print $5}'`
#see if the window is "IsViewable" or "IsUnMapped" i.e minimized
MAP_STATE=`xwininfo -id ${WIN_XID[$WINDOWS_IN_DESK]} | grep "Map State:" | awk '{print $3}'`
#we don't want the minimized windows to be considered while allocating the space
if [ "$MAP_STATE" == "IsViewable" ]; then
WINDOWS_IN_DESK=$((WINDOWS_IN_DESK+1))
fi
fi
i=$((i+1))
done
#get the xid of the active window.
ACTIVE_WIN=`xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}'`
#set the selected layout
#NOTE: these would look better if they were individual functions :)
case $MODE in
"LEFT_MASTER")
#define the properties of the master area
X=$LEFT_MARGIN
Y=$TOP_MARGIN
#set the width to the default MASTER_WIDTH
W=$MASTER_WIDTH
H=$(( HEIGHT -TOP_MARGIN - BOTTOM_MARGIN -TITLE_BAR_HEIGHT -USELESS_GAPS))
#set the active window to the "master "area
wmctrl -r :ACTIVE: -e "0,$X,$Y,$W,$H"
#now that the master window has been set all further windows would have to start from here
X=$((MASTER_WIDTH+USELESS_GAPS))
#get whatever width is left
W=$((WIDTH - MASTER_WIDTH -USELESS_GAPS))
#the height would be equally shared by the rest of the windows
H=$((H/(WINDOWS_IN_DESK - 1) - TITLE_BAR_HEIGHT -USELESS_GAPS ))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
#avoid setting the attributes of the active window again
if [[ "${WIN_XID[$i]}" -ne "$ACTIVE_WIN" ]] ; then
#set the attributes
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#set the Y co-ordinate for the next window.
Y=$((Y+H+TITLE_BAR_HEIGHT+USELESS_GAPS))
fi
#preselect the next window
i=$((i+1))
done
"RIGHT_MASTER")
#define the properties of the master area
X=$LEFT_MARGIN
Y=$TOP_MARGIN
#get whatever width is left
W=$((WIDTH - MASTER_WIDTH -USELESS_GAPS))
#the height would be equally shared by the non master windows
H=$(((HEIGHT -TOP_MARGIN -BOTTOM_MARGIN )/(WINDOWS_IN_DESK-1) -TITLE_BAR_HEIGHT -USELESS_GAPS))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
#avoid setting the attributes of the active window
if [[ "${WIN_XID[$i]}" -ne "$ACTIVE_WIN" ]] ; then
#set the attributes
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#set the Y co-ordinate for the next window.
Y=$((Y+H+TITLE_BAR_HEIGHT+USELESS_GAPS))
fi
#preselect the next window
i=$((i+1))
done
#set the co-ordinates for the MASTER_WINDOW
X=$((W+USELESS_GAPS))
Y=$TOP_MARGIN
W=$MASTER_WIDTH
H=$(( HEIGHT -TOP_MARGIN - BOTTOM_MARGIN -TITLE_BAR_HEIGHT -USELESS_GAPS))
#set the active window to the "master "area
wmctrl -r :ACTIVE: -e "0,$X,$Y,$W,$H"
"TOP_MASTER")
#define the properties of the master area
X=$LEFT_MARGIN
Y=$TOP_MARGIN
#set the width taking into acount the margins
W=$((WIDTH-LEFT_MARGIN-RIGHT_MARGIN))
H=$MASTER_HEIGHT
#set the active window to the "master "area
wmctrl -r :ACTIVE: -e "0,$X,$Y,$W,$H"
#set the y co-ordinate
Y=$((Y+H+USELESS_GAPS+TITLE_BAR_HEIGHT))
#Distribute the width amon the remaining windows
W=$((W/(WINDOWS_IN_DESK-1)))
#set the new height
H=$((HEIGHT-MASTER_HEIGHT-TOP_MARGIN-BOTTOM_MARGIN-TITLE_BAR_HEIGHT-USELESS_GAPS))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
#avoid setting the attributes of the active window again
if [[ "${WIN_XID[$i]}" -ne "$ACTIVE_WIN" ]] ; then
#set the attributes
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#set the X co-ordinate for the next window.
X=$((X+W+USELESS_GAPS))
fi
#preselect the next window
i=$((i+1))
done
"BOTTOM_MASTER")
#define the properties of the master area
X=$LEFT_MARGIN
Y=$TOP_MARGIN
#Distribute the width among the non master windows
W=$(((WIDTH-LEFT_MARGIN-RIGHT_MARGIN)/(WINDOWS_IN_DESK-1)))
#set the new height
H=$((HEIGHT-MASTER_HEIGHT-TOP_MARGIN-BOTTOM_MARGIN-TITLE_BAR_HEIGHT-USELESS_GAPS))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
#avoid setting the attributes of the active window again
if [[ "${WIN_XID[$i]}" -ne "$ACTIVE_WIN" ]] ; then
#set the attributes
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#set the X co-ordinate for the next window.
X=$((X+W+USELESS_GAPS))
fi
#preselect the next window
i=$((i+1))
done
#set the co-ordinates
X=$LEFT_MARGIN
Y=$((Y+H+USELESS_GAPS+TITLE_BAR_HEIGHT))
W=$((WIDTH-LEFT_MARGIN-RIGHT_MARGIN))
H=$MASTER_HEIGHT
#set the active window to the "master "area
wmctrl -r :ACTIVE: -e "0,$X,$Y,$W,$H"
"GRID")
#find the number of windows in the top row and in each subsequent row except for the bottom row.
NORMAL_ROW_WINDOWS=$((WINDOWS_IN_DESK/NUMBER_OF_ROWS))
#the bottom row ould have as many windows as the top row and any left over
BOTTOM_ROW_WINDOWS=$((NORMAL_ROW_WINDOWS + WINDOWS_IN_DESK%NUMBER_OF_ROWS))
WINDOWS_NOT_IN_BOTTOM_ROW=$((WINDOWS_IN_DESK-BOTTOM_ROW_WINDOWS))
#set the co-ordinates for the top row
X=$LEFT_MARGIN
Y=$TOP_MARGIN
#the height of each window would remain the same regardless of which row it is in
H=$(((HEIGHT-TOP_MARGIN-BOTTOM_MARGIN)/NUMBER_OF_ROWS - TITLE_BAR_HEIGHT))
#Find the width of each window in the top row, this would be the same for each row except for the bottom row which may contain more windows
NORMAL_ROW_WIDTH=$((((WIDTH-LEFT_MARGIN-RIGHT_MARGIN)/NORMAL_ROW_WINDOWS)-USELESS_GAPS*NORMAL_ROW_WINDOWS))
BOTTOM_ROW_WIDTH=$((((WIDTH-LEFT_MARGIN-RIGHT_MARGIN)/BOTTOM_ROW_WINDOWS)-USELESS_GAPS*NORMAL_ROW_WINDOWS))
#start counting from zero
i=0
#we havent processed any windows yet
CURRENT_ROW_WINDOWS=0
#we will be processing the 1st row
CURRENT_ROW=1
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
if [[ "$CURRENT_ROW" -lt "$NUMBER_OF_ROWS" ]]; then
if [[ "$CURRENT_ROW_WINDOWS" -eq "NORMAL_ROW_WINDOWS " ]]; then
CURRENT_ROW=$((CURRENT_ROW+1))
if [[ "$CURRENT_ROW" -eq "$NUMBER_OF_ROWS" ]] ; then
X=$LEFT_MARGIN
Y=$((Y+H+TITLE_BAR_HEIGHT+USELESS_GAPS))
W=$BOTTOM_ROW_WIDTH
else
CURRENT_ROW_WINDOWS=0
fi
fi
if [[ "$CURRENT_ROW_WINDOWS" -eq "0" ]] ; then
X=$LEFT_MARGIN
W=$NORMAL_ROW_WIDTH
if [[ "$CURRENT_ROW" -ne "1" ]]; then
Y=$((Y+H+TITLE_BAR_HEIGHT+USELESS_GAPS))
fi
fi
fi
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
X=$((X+W+USELESS_GAPS))
CURRENT_ROW_WINDOWS=$((CURRENT_ROW_WINDOWS+1))
i=$((i+1))
done
"MAX")
X=$LEFT_MARGIN
Y=$TOP_MARGIN
H=$((HEIGHT-TOP_MARGIN-BOTTOM_MARGIN))
W=$((WIDTH-LEFT_MARGIN-RIGHT_MARGIN))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
#avoid setting the attributes of the active window
if [[ "${WIN_XID[$i]}" -ne "$ACTIVE_WIN" ]] ; then
#set the attributes
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
fi
#preselect the next window
i=$((i+1))
done
#now that all the windows have been set set the master on top
wmctrl -r :ACTIVE: -e "0,$X,$Y,$W,$H"
"VERTICAL_SPLIT")
X=$LEFT_MARGIN
Y=$TOP_MARGIN
H=$((HEIGHT-TOP_MARGIN-BOTTOM_MARGIN))
W=$(((WIDTH-LEFT_MARGIN-RIGHT_MARGIN)/WINDOWS_IN_DESK - USELESS_GAPS))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#preselect the next window
X=$((X+W+USELESS_GAPS))
i=$((i+1))
done
"HORIZONTAL_SPLIT")
X=$LEFT_MARGIN
Y=$TOP_MARGIN
H=$(((HEIGHT-TOP_MARGIN-BOTTOM_MARGIN)/WINDOWS_IN_DESK -TITLE_BAR_HEIGHT -USELESS_GAPS))
W=$((WIDTH-LEFT_MARGIN-RIGHT_MARGIN))
i=0
while [ "$i" -le "$WINDOWS_IN_DESK" ] ; do
wmctrl -i -r ${WIN_XID[$i]} -e "0,$X,$Y,$W,$H"
#preselect the next window
Y=$((Y+H+TITLE_BAR_HEIGHT+USELESS_GAPS))
i=$((i+1))
done
esac
#say bye
exit 0
I call the script using the openbox key bindings for example:
<keybind key="W-g">
<action name="Execute">
<command>/home/default/bin/wmtiler.sh -g</command>
</action>
</keybind>
The advantage this holds, in my case, is that it provides me with on demand automatic tiling with a momentary spike in CPU usage but no sustained RAM usage.
This should work on all window managers in which wmctrl works.
Of course there are plenty of things still to do and many bugs to fix, some of which are documented in the script itself
Nothing would make me happier if somebody else found this useful.Hmmm.... iconified windows should be totally ignored. Could you post the output of xwininfo for the iconified window? for example;
Get tet a list of windows open by issuing the wmctrl -lxG command
[default@arch_desktop ~]$ wmctrl -lxG
0x01400001 -1 4 0 1911 26 Conky.Conky arch_desktop conky
0x01a00024 0 1346 52 576 254 surf.surf arch_desktop 24Online Client
0x0200066a 1 1345 54 569 483 terminal.Terminal arch_desktop Terminal - default@arch_desktop:~
0x02001231 1 1345 538 569 483 terminal.Terminal arch_desktop Terminal - default@arch_desktop:~
0x02200004 -1 0 971 1920 109 avant-window-navigator.Avant-window-navigator arch_desktop avant-window-navigator
0x01200039 1 0 18 1344 1026 chromium.Chromium arch_desktop Post a reply / Arch Linux Forums - Chromium
0x0200279f 0 2 52 933 431 terminal.Terminal arch_desktop Terminal - default@arch_desktop:~
and taking the window x id of the minimized surf window and issuing the xwininfo command:
[default@arch_desktop ~]$ xwininfo -id 0x01a00024
xwininfo: Window id: 0x1a00024 "24Online Client"
Absolute upper-left X: 1345
Absolute upper-left Y: 34
Relative upper-left X: 1
Relative upper-left Y: 18
Width: 576
Height: 254
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsUnMapped
Override Redirect State: no
Corners: +1345+34 --1+34 --1-792 +1345-792
-geometry 576x254--2+16
As you can see, for me , the "Map State:" is "IsUnMapped" for the iconified windows and this set of commands is exactly what I am doing to ignore iconified windows. What I need to know is that is there some other type of map state that I need to ignore.
As for the feature requests I already had it in my mind to do the first three points that you mentioned. Since the script is intentionally designed not to run as a background process, there has to be some sort of a backing store like maybe a simple text file in which to save the state and read it from there on the next command invocation. The advantage would be it would take a momentary spike in CPU utilization and no sustained RAM utilization like I mentioned before. Disadvantage being the user would have to issue a command to actually get the tiling done.
Regarding your fourth point, did you mean setting the window to 50% width automatically on moving it to the screen edge like it is done in KWIn and Win7? If you want it to be done automatically then that would involve tracking the movement of the mouse and windows on the screen continuously. This is something I'd rather do in some other, tinier faster, script and call this script from that on specific events.
However, if you are willing to press a key while focused on a window and have it resized to max height and 50% of screen width either on the right side or on the left side, depending on the key combination, while leaving the other windows unaffected, then that can be arranged very simply. -
Margin issues in FF, but IE and Dreamweaver agree - everyone's favourite
Hi everyone,
I've searched on the web and read about problems in the
margin settings between browsers. But their problems are often more
complicated than mine. I'll explain what I'm trying to do, present
code snippets, and explain the results. I appreciate any feedback
or help in this!
I'm building a navigation bar at the top of my web page. I've
used divs to divide the page into what I think are logical
divisions:
- a
header div that will contain header elements such as the
navigation bar
- a
content div that will contain the content for the page
- a
nav div which is inside
header and will have an unordered list of links
The
header div has a gradient background tiled horizontally, and
is 160 pixels in height. The
content div also has a gradient background that fades into
the page's background color, tiles horizontally, and is 50 pixels
in height. The
nav buttons are only going to be 80 pixels high, and I want
them aligned along the bottom of the header. So, with a
header of 160 pixels, and
nav that is 80 pixels, my solution was to give the
nav a top margin of 80 pixels. This would position the
nav at the bottom of the
header div.
The code now follows - HTML first:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Masthead attempt 2</title>
<link href="stylesheets/masthead.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<div id="header">
<div id="nav">Content for id "nav" Goes Here
</div>
</div><!-- header -->
<div id="content">
Content for the id "content" goes here
</div><!-- content -->
</body>
</html>
And the CSS code for it:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #444444;
color: #BBBBBB;
margin: 0px;
padding: 0px;
#header {
background: url(../images/bg/masthead_gray.png) repeat-x;
height: 160px;
width: 100%;
margin: 0px;
padding: 0px;
#content {
margin: 0px;
background: url(../images/bg/page_bluetowhite.png) repeat-x;
height: 50px;
width: 100%;
#header #nav {
height: 80px;
margin-top: 80px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
In Dreamweaver, this code appears to lay out the page as I
want it. Clicking on the
nav div shows a margin of 80 pixels at the top, and an 80
pixel high box for the content. When I preview the page in IE7, the
page displays correctly. But when I preview my page in Firefox, the
header and
content divs have been pushed down 80 pixels, showing the
page background color, and the text "Content for id "nav" Goes
Here" appears to be lined to the top of the
header div. Adding a background-color: #FFFFFF line to the
styles for the
nav confirms this.
I don't understand why this is happening; since the
nav is inside the
header, its margin should not affect its parent! Any insight
is greatly appreciated.Too much text :/ I hate generated source - something always goes wrong and you never know what the hell
What about embedding it yourself?
Create empty HTML file, download swfobject.js: http://code.google.com/p/swfobject/downloads/list
And use this block of code. Of course, change name of swf file, width and height. Unpack swfobject.js right next to the html file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject dynamic embed - step 3</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("myContent.swf", "myContent", "800", "600", "9.0.0");
</script>
</head>
<body>
<div id="myContent">
<p>Alternative content</p>
</div>
</body>
</html> -
How to adjust page tiling areas?
I trying to make a stationary letterhead template. I'd like to make more room at the bottom of the page available for printing.
How do I adjust the margins or size of the page tiling areas?
Thanksfollowup: if you have a bleed at the bottom three sides, select "Tabloid" as the page / document size. But, be prepared to trim it down ( proofing ).
-
Page Tiling is Way Off -- fixable?
I'm running Illustrator CS3 (13.0.2) under an evaluation copy of Win 7 Ultimate 64 bit (build 7100) and the page tiling for my Photosmart printer is way off and mighty peculiar to boot. A "new" file may show the correct margins, but once I've gone into "print," and back to the file, the tiling shows 1/4" all around, as for the Laserjet (which is the default printer). Or the tiling lines may appear well outside of the page outline -- and double, with one set about 3/8" larger all around. A file I keep as a template for a plain 8 1/2x11" portrait layout opens with the tiling lines in the right place, but also changes as above once I've gone into "print" and come back to the file. The print preview shows 1/4" margins all around, and prints to that size, meaning anything laid out (lain out?) to the page tiling is off the 1/2" margin of the Photosmart. A similar "template" file for landscape does the same. (Landscape page tiling has always been wonky -- that is unchanged or maybe worse, with tiling lines for both layouts, doubled, etc.)
This is some kind of a system problem, not an Illustrator or perhaps even an Adobe software problem (it's the same in Photoshop though I don't often print from PS so it's not bothersome there), but I thought someone here might have had the same problem or one like it.
I 'm using the latest printer driver -- insofar as there is a "latest:" for Vista 65bit--, but HP didn't much want to install it to Win7 -- it did install when I chose the "install with recommended settings" button.
Any input will be appreciated. (Except don't tell me to get CS4, I tried for a month to get the copy I bought to install and spent days' worth of phone hours to accomplish nothing, finally got some of my money back and decided to wait for CS5 or until I find non-Adobe programs to do some or all of the jobs... whichever comes first...)
TIA
Molly<Have you considered creating a user-defined default document profile for the printer in teh printers control panel?
That doesn't seem to be an option with this printer, at least not anywhere I can find.
<Sounds like the print engine is querying those values and the system simply returns >>>what it thinks<<< are correct settings based on your printer default.
But the printer default (letter, document, meaning with the normal printer margin of .25" top and sides, about .4" on the bottom) should return the correct margins, shouldn't it? (.25" all around is the default for the Laserjet, but it makes no difference whether the default printer is the Photosmart or the Laserjet)
<Also check, which printer language it's using. It often makes a huge difference of PS vs. PCL. vs. WinPrint (GDI+).
<Far as I remember it's PCL like all the other HP printers we've had --can't find that in the properties tabs either and put the manuals somewhere where I knew I could always find them... (bet I can download them)
Illustrator has never liked that printer much -- CS2 crashed if I changed the settings (which was nearly always necessary) from its printer setup function. And CS3 still gets absolutely crazy with page tiling if I change the page setting from portrait to landscape. I don't remember if PS has the same troubles.
<If all else fails, an alternative may be to save as PDF and print from Acrobat. It has a much better handle on such things. AI is really quite limited in that regard...
What I did, and should have thought of first thing! was put a guide on the lower page tiling line of the template file (for printing custom-sized labels and sets of photos, has centers and cut lines marked) as soon as I had the template file on the screen. The tiling lines are correct to the printable area of the Photosmart until the print function is evoked. Then when I'm designing and spacing labels etc., I'll know where the lower boundary is.
Saving as a PDF isn't very practical for this stuff as my husband is of the nibbled to death by ducks, or millimetres, school of design and will have me making mm adjustments for hours on a label which to be stuck on a hard hat (and thus wrinkled and distorted, as a rule). Every time he needs a new set or a reprinting of an existing badge. (Hmmm... if I PDFed the file and told him it was unchangeable...)
M -
Tiling image within infinitely vertically expandable rounded box
I would like to place a 1px high image within a round box which will expand inifnitely in a dynamic ecommerce site. I know how to create a div for the header (ie rounded box, roundedbox h1) and place the top part, then the rest in the main div with the bottom of the rounded box positioned at "bottom." However, there are physical limitations to this method; it seems it would be ideal to place a tiled image to complete everything within the top and bottom portions; the problem is that it appears at the top no matter how it's placed. Is there any way to specify a margin for the background image only?
Incidentally, I hate the look of this new forum. Why everyone wants to jump on the Facebook wagon is beyond me...Hi Murray; for example, I crop the top 60px of the rounded box and make it the background for the #body_content h1 div, then use the bottom rounded remains of the box and make it the background image for the #body_content div. The problem is that without sufficient content, the cropped body bg image shows at the top of the div; whereas if there is too much, a blank space will occur between the two. I'd like to think there is a way to insert a third div with a 1 px high tiled image but someho give it a 60px margin at both top and bottom to prevent overlapping...
#body_content {
margin-left: 20px;
background-image: url(../../../Images/maincontent_bg_footer.gif);
background-repeat: no-repeat;
background-position: left bottom;
width: 820px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 20px;
padding: 0px;
#body_content h1 {
background-image: url(../../../Images/maincontent_bg_heading.gif);
background-repeat: no-repeat;
height: 60px;
margin: 0px;
padding: 0px; -
PyTyle 2: On-demand automatic/manual tiling for EWMH compliant WM's
Hello all!
I'd like to announce the availability of my second version of PyTyle, which is a complete re-write.
PyTyle 2 can be installed along side PyTyle 1. But only one can be running at the same time.
PyTyle is a tiling manager that works with EWMH compliant window managers (like Openbox and KWin) to provide functions for tiling windows. Both Xmonad and Musca have influenced the feature set. Some of the key features include, but are not limited to:
* On-demand tiling on a per workspace per monitor basis. Tile workspace 2 while workspace 0 is left in a floating model. Or, if you have multiple monitors, tile one screen but not the other.
* Automatic layouts, including the classic "Vertical" and some new additions as well. Based on Xmonad.
* Manual tiling -- this is new! Create your own layout on the fly. Based on Musca. I consider this aspect of PyTyle the least stable, though.
* Uses the new XCB library (or, more aptly, xpyb)
* Much better support for undecorated windows--including drawing borders (like Xmonad).
* Drag and drop windows to other positions in any tiling layout.
* Auto-detection of any panels (i.e., windows that set struts) even on multi-monitor displays.
* Move windows to and from a floating state when the workspace its on is in tiling mode.
* A robust configuration file that allows one to change all keybindings, a multitude of options, and layout specific settings. (i.e., border color/size, ignore certain windows, margins, padding). Options can be set based on workspace, monitor, and tiler (and any combination).
See my Google project page for more info: http://code.google.com/p/pytyle/
Dependencies
The X Python Binding (xpyb)
Installation
PyTyle 2 can be found in the aur: http://aur.archlinux.org/packages.php?ID=42541
Execution
After installation, simply run
pytyle2
on the command line.
Then press Alt + a.
Configuration
After you have started PyTyle for the first time, a new configuration directory should appear in your XDG_CONFIG_HOME directory (usually ~/.config/) called pytyle2. Inside this directory is config.ini. All of the configuration options are stored there. I haven't really documented the options yet, so your guess will have to do at the moment.
Help
You can either post here or use the mailing list: http://groups.google.com/group/pytyle
Notes
PyTyle 2 is still highly beta. I've developed it on Openbox, and tried to maintain parity with KWin at the same time. I haven't tested it with any other window manager yet. You should be golden if you're running Openbox or KWin. However, I recommend that any and all composite settings be turned off before using PyTyle... You don't have to, but it can be a bit ugly if you don't. See for yourself :-)
Also, I'm closing out my first semester in grad school at the moment, so my replies in the next week or so might be a bit sparse. After that though, I'll pick back up with development/bug fixing.
Last edited by BurntSushi (2010-12-03 05:22:27)Just installed pytyle2. launched it and got this output in cli
martins@localhost ~]$
martins@localhost ~]$pytyle2
Could not grab key: alt-shift-right
Could not grab key: alt-shift-down
Could not grab key: alt-shift-up
Could not grab key: alt-shift-left
sometimes i had more keys. When i tried doing alt+a to start it i got this
Traceback (most recent call last):
File "/usr/bin/pytyle2", line 49, in <module>
d = Dispatcher(event_data)
File "/usr/lib/python2.7/site-packages/pt/dispatcher.py", line 20, in __init__
getattr(self, self._event_data['event'])()
File "/usr/lib/python2.7/site-packages/pt/dispatcher.py", line 55, in KeyPressEvent
Tile.dispatch(state.get_active_monitor(), cmd)
File "/usr/lib/python2.7/site-packages/pt/state.py", line 37, in get_active_monitor
return get_monitor(wsid, mid)
File "/usr/lib/python2.7/site-packages/pt/state.py", line 53, in get_monitor
return Workspace.WORKSPACES[wsid].get_monitor(mid)
File "/usr/lib/python2.7/site-packages/pt/workspace.py", line 37, in get_monitor
return self.monitors[mid]
KeyError: -1
as suggested somewhere up in the thread output from xprop
[martins@localhost ~]$xprop -root
_NET_WM_USER_TIME(CARDINAL) = 2886859
_NET_ACTIVE_WINDOW(WINDOW): window id # 0x2200022
ESETROOT_PMAP_ID(PIXMAP): pixmap id # 0x2000001
_XROOTPMAP_ID(PIXMAP): pixmap id # 0x2000001
_NET_CLIENT_LIST(WINDOW): window id # 0x1800002, 0x1400006, 0xe000af, 0x2200022
_NET_SHOWING_DESKTOP(CARDINAL) = 0
_NET_CURRENT_DESKTOP(CARDINAL) = 0
_NET_DESKTOP_NAMES(UTF8_STRING) = 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x31, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x32, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x33, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x34, 0x0
_NET_WORKAREA(CARDINAL) = 1, 20, 1678, 1010, 1, 20, 1678, 1010, 1, 20, 1678, 1010, 1, 20, 1678, 1010
_NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0
_NET_NUMBER_OF_DESKTOPS(CARDINAL) = 4
_NET_DESKTOP_GEOMETRY(CARDINAL) = 1680, 1050
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1800002, 0x1400006, 0xe000af, 0x2200022
_OB_THEME(UTF8_STRING) = 0x43, 0x68, 0x69, 0x6c, 0x61
_OB_VERSION(UTF8_STRING) = 0x33, 0x2e, 0x34, 0x2e, 0x31, 0x31, 0x2e, 0x32
_NET_SUPPORTED(ATOM) = _NET_SUPPORTING_WM_CHECK, _NET_WM_FULL_PLACEMENT, _NET_CURRENT_DESKTOP, _NET_NUMBER_OF_DESKTOPS, _NET_DESKTOP_GEOMETRY, _NET_DESKTOP_VIEWPORT, _NET_ACTIVE_WINDOW, _NET_WORKAREA, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_DESKTOP_NAMES, _NET_CLOSE_WINDOW, _NET_DESKTOP_LAYOUT, _NET_SHOWING_DESKTOP, _NET_WM_NAME, _NET_WM_VISIBLE_NAME, _NET_WM_ICON_NAME, _NET_WM_VISIBLE_ICON_NAME, _NET_WM_DESKTOP, _NET_WM_STRUT, _NET_WM_STRUT_PARTIAL, _NET_WM_ICON, _NET_WM_ICON_GEOMETRY, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_DESKTOP, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_ALLOWED_ACTIONS, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_STATE, _NET_WM_STATE_MODAL, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_SHADED, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_ABOVE, _NET_WM_STATE_BELOW, _NET_WM_STATE_DEMANDS_ATTENTION, _NET_MOVERESIZE_WINDOW, _NET_WM_MOVERESIZE, _NET_WM_USER_TIME, _NET_FRAME_EXTENTS, _NET_REQUEST_FRAME_EXTENTS, _NET_RESTACK_WINDOW, _NET_STARTUP_ID, _NET_WM_SYNC_REQUEST, _NET_WM_SYNC_REQUEST_COUNTER, _NET_WM_PID, _NET_WM_PING, _KDE_WM_CHANGE_STATE, _KDE_NET_WM_FRAME_STRUT, _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _OB_WM_ACTION_UNDECORATE, _OB_WM_STATE_UNDECORATED, _OPENBOX_PID, _OB_THEME, _OB_CONFIG_FILE, _OB_CONTROL, _OB_VERSION, _OB_APP_ROLE, _OB_APP_NAME, _OB_APP_CLASS, _OB_APP_TYPE
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x1a00073
_OPENBOX_PID(CARDINAL) = 14943
_XKB_RULES_NAMES(STRING) = "evdev", "pc104", "lv", "apostrophe", "terminate:ctrl_alt_bksp"
XFree86_VT(INTEGER) = 8
output from wmctrl
[martins@localhost ~]$wmctrl -lG
0x01800002 -1 -5 1028 1691 26 localhost Conky (localhost)
0x01400006 -1 0 0 1680 20 N/A tint2
0x00e000af 0 3 68 1676 985 localhost PyTyle 2: On-demand automatic/manual tiling for EWMH compliant WM's (Page 1) / Community Contributions / Arch Linux Forums - Namoroka
0x02200022 -1 1 20 1678 388 localhost Guake!
version: pytyle2-hg 2.0.0-1 -
Hi im trying to achieve a seamless tiled background that animates. www.efficient-heat.net
I have created an animation in flash and have saved this out as a gif . I have then attached this gif to the body backgrouund :
body {
background:#E1E1E1 url(../images/windmills.gif) repeat scroll center top;
font-family:"Lucida Grande",Verdana,Arial,Helvetica,serif;
font-size:0.8em;
line-height:1.5em;
margin:0;
text-align:justify;
However im not happy witth the results, seams show and the animation is choppy.
How can I achieve the same tiled animated background but with higher quality ?
Can I tile a swf file ?
ThanksHi Ive found that if I remove the gradients from the animation I can achieve cleaner results.
The tiling of the animated gif has given acceptable results.
Thanks for the help. -
Wmii, or other tiling wm, with a system tray
I really like the way wmii does tiling (minimal but functional window decorations, and the columnar layout), but I have recently sorely felt the lack of a system tray. I installed trayer and it works fine, I like it in the abstract, but it has some obvious problems with wmii. For one thing, it doesn't stick around when switching tags, and for another, it doesn't play well with wmii's own status bar or with tiled windows.
So, is there anyone else who has tried this, and what was your solution? Is there another tray that behaves, or another tiling window manager that plays nice? I have heard that it's possible to add a margin where tiled windows will not be placed, but only in passing and no details specific to wmii.
My ideal desktop would be more or less exactly like wmii's default setup, with a few extra keybindings, etc. and a system tray in the bar. While I'm willing to accept the fact that nothing like this yet exists, I'm sure it could be closely emulated (perhaps with a separate panel). In the meantime I'm using awesome, but I don't like any of the default window layouts or the lack of decorations on the windows (the list in the bar doesn't cut it).
I'd like to hear any suggestions the Arch community has to offer, whether for configs or window managers (or both).you should have done a google search read this
Last edited by plurt (2009-07-20 20:42:38) -
Fluxbox -- margins and setting wallpapers
1) I have a 1 line conky at the top of my screen. I would like to be able to view it all the time, just like in Openbox. How can I set a margin of 12 px in fluxbox?
2) Every time I select a wallpaper to change, the new wallpaper shows up for about a second and then reverts back to the old one. But If I select the same wallpaper again, it sets it. This used to work previously. Here's my relevant section from fluxbox menu
[submenu] (Wallpapers) {}
[wallpapers] (/usr/share/fluxbox/backgrounds)
[wallpapers] (~/Wallpapers)
[end]
3) When I right click to get the menu, and then not select anything from it, the menu stays on even if I click on other active windows. The only way it will go away is to click on the desktop for which I have to minimize a few windows. This is annoying since I want the active window to grab focus and not have a menu block my view. Is there anyway to get rid of the menu when you click other active windows?
4) What would be the keybinding entry to show the desktop - i.e. minimize all windows at once.? I know in openbox its as simple as assigning a shortcut to <command>ToggleShowDesktop</command>
Last edited by Inxsible (2009-02-09 04:46:30)moljac024 wrote:
Is conky running in it's own window ? You know, the own_window variable in the config, if that is set to false that could be the problem with your wallpaper, how often do you have conky update itself ?
Don't know about the menu, but I remember it as being a buggy part of fluxbox back when I used it, I think I even had that same issue...
Anyway, seems like you would be happy if you just switched to openbox
Conky has its own window.Conky updates every second. yeah the menu thing is annoying.
and I do use openbox on tty1 ...fluxbox on tty2 ....just that I like fluxbox too at times (when I am bored with OB)...even planning to install another wm like wmii or dwm (probably on tty3) -- because I have never tried a tiling wm before. -
Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Todd,
Let me try to explain you this time. I have a text field in a TiledViewBean.
When I display the page, the text field
html tag is created with the name="PageDetail.rDetail[0].tbFieldName" say
five times/rows with same name.
The html tags look like this.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
When the form is submitted, I want to get the text field values using the
method getTbFieldName().getValues() which
returns an array object[]. This is in case where my TiledViewBean is not
bound and it is working fine.
Now in case when my TiledView is bound to a model, it creates the html tags
as follows.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[1].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[2].tbFieldName" value=""
maxlength=9 size=13>
Now when I say getTbFieldName().getValues() it returns only the first
element values in the object[] and the rest of the
values are null.
May be we need to create a utility method do get these values from
requestContext.
raju.
----- Original Message -----
From: Todd Fast <toddwork@c...>
Sent: Saturday, July 07, 2001 3:52 AM
Subject: Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Raju.--
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing likeI'm afraid I don't understand your point--can you please clarify? Do you
mean "value" instead of "name"?
What are you trying to do? What behavior are you expecting but notseeing?
>
Without further clarification, I can say that the setValues() methodsNEVER
populates data on multiple rows of a (dataset) model, nor does it affect
multiple fields on the same row. Perhaps what you are seeing is theeffect
of default values. Model that derive from DefaulModel have the ability to
carry forward the values set on the first row to other rows in lieu ofdata
in those other rows. This behavior is for pure convenience and can be
turned off, and it is turned off for the SQL-based models.
Todd
[email protected]Hi,
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing like
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[0].tbFieldValue
in which case, the getValues() method works fine.
But in case where the tiled view is bound to a model, it populates
with different field names such as,
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[1].tbFieldValue
in this case, the getValues() doesn't work. Any soultion to this?
We are using Moko 1.1.1.
thanks in advance,
raju.
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
Does anyone know of is there a single method to get all values of a
display
field in a tiled view without having to iterate through all the
values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returns
a
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
Todd -
Re: [iPlanet-JATO] Retrieving all Values from a Tiled View
Does anyone know of is there a single method to get all values of adisplay
field in a tiled view without having to iterate through all the values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returnsa
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
ToddHi,
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing like
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[0].tbFieldValue
in which case, the getValues() method works fine.
But in case where the tiled view is bound to a model, it populates
with different field names such as,
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[1].tbFieldValue
in this case, the getValues() doesn't work. Any soultion to this?
We are using Moko 1.1.1.
thanks in advance,
raju.
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
Does anyone know of is there a single method to get all values of a
display
field in a tiled view without having to iterate through all the
values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returns
a
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
Todd -
Is there a way to make all page margins the same?
I've exported a book file from indesign. Since the pages were in a book-type spread, the odd and even pages have different margins. The odd page has the bigger margin on the left, while the even has the bigger margin on the right. Is there any way to make these identical after the fact. I can't go back and redo the indesign file.
Thanks, there are 382 pages. Can't do them one by one. And I purposely made the margins different in indesign, to give people more space in the middle. The margins are as follows:
But when I try to reverse the inside outside on one page of the spread, just reverse them, so the dimensions are the SAME, all the text and photos move.
Maybe you are looking for
-
Hi, I am passing range of invoice numbers using select options from driver program.I have to get form(one per page) for each invoice number.ie form for first invoice number should be displayed in first page.form for 2nd invoice number should be displ
-
I am having a problen syncing my 80gb Ipod to my library. Its been syncing for over 24 hours. I have reset the Ipod and reinstalled Itunes. I am running windows 7 ,6gb of ram.Nothing seem to help. It take 2 miniutes to copy one song(very slow)
-
Why is it that the new Macbook Pro processor upgrade option only offers up to 2.8 Ghz boosting to 3.3 Ghz with Intel Dual Core i7, when back in Sep 12 I bought a 2.9 Ghz boosting to 3.6 Ghz Intel Dual Core i7 Macbook, is the new one tuned somehow to
-
Logged in but not logged in?
Hi there I have a problem with iChat with Leopard. I cannot seem to log on properly? I show up as 'available' but all my online buddies are greyed out. My girlfriend can see me as online on her mac but even text chat doesn't get to me. If i select he
-
I have install 10.8 but can t upgrade 10.8.2
Hello Since long time i ve insatall Os X moutain lion 10.8 Developper periveu and can t update it to 10.8.1 or 10.8.2 Even i ve download the file manualy but i can t install. Can any one help me to know what s the think that i ve missed to get the up