Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Help background resizing
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Help background resizing
#15091
Help background resizing 3 Years, 7 Months ago  
Hi everybody,

I'm new on this forum and I'm French so please excuse me for my awful english!

I worked a lot to modify a skin called "Lucid" but now, I don't manage to find a solution to my problem. In fact, my background image doesn't resize when I add some tasks in my todo list (It looks like that) :


Could someone help me?

Here is my code. I think I made many errors so don't hesitate to correct me !

Code:

<window id="Todo List White" w="300" threshold="48" default="0">
  <image id="Todo List.background1"
  element="bitmap.todolist.background.white" origin1="TOP-LEFT" x1="0"
  y1="0" origin2="BOTTOM-RIGHT" x2="0" y2="0" color="249, 237, 204"
  minsizefromimage="1" scaling="stretch"
  margins="15, 60, 169, 113" />

  <image id="Todo List.background2" element="bitmap.todolist.text"
  origin="top-left" x="14" y="8" />

  <button id="Todo List.button.add" element="bitmap.icon.add"
  origin="top-right" x="-32" y="8"
  action="Global_ShowTodoDialog()" />

  <scrollgroup id="Event List.scrollgroup" origin="TOP-LEFT"
  x1="15" y1="30" origin2="BOTTOM-RIGHT" x2="-20" y2="0"
  thumbelement="bitmap.scroll.thumb" barelement="bitmap.scroll.bar"
  barscaling="tile" thumbscaling="tile"
  thumbmargins="0,0,0,0" barmargins="0,0,0,0"
  showscrollbaraways="0" shrinktofit="1">

    <todolist id="Todo List.todolist" origin1="TOP-LEFT" x1="0"
    y1="0" origin2="BOTTOM-RIGHT" x2="0" y2="0">
      <header>
        <appearance element="font.bold" color="255, 255, 255"
        align="TOP-LEFT" />
      </header>
      <item>
        <appearance padding="17,2,0,0" element="font.normal"
        color="255, 255 255" align="TOP-LEFT" />
        <image element="bitmap.icon.todo" origin="TOP-LEFT" x="0"
        y="0" />
      </item>
      <completeditem>
        <appearance padding="17,2,0,0"
        element="font.normal.strikethrough" color="255, 255, 255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_complete" origin="TOP-LEFT" x="0"
        y="0" />
      </completeditem>
      <overdueitem>
        <appearance priority="200" padding="17,2,0,0"
        element="font.normal" color="255,255,255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_high" origin="TOP-LEFT"
        x="0" y="0" />
      </overdueitem>
      <lowpriorityitem>
        <appearance priority="200" padding="17,2,0,0"
        element="font.normal" color="255,255,255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_high" origin="TOP-LEFT"
        x="0" y="0" />
      </lowpriorityitem>
      <mediumpriorityitem>
        <appearance priority="200" padding="17,2,0,0"
        element="font.normal" color="255,255,255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_high" origin="TOP-LEFT"
        x="0" y="0" />
      </mediumpriorityitem>
      <highpriorityitem>
        <appearance priority="200" padding="17,2,0,0"
        element="font.normal" color="255,255,255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_high" origin="TOP-LEFT"
        x="0" y="0" />
      </highpriorityitem>
      <cancelleditem>
        <appearance priority="200" padding="17,2,0,0"
        element="font.normal.strikethrough" color="255,255,255"
        align="TOP-LEFT" />
        <image element="bitmap.icon.todo_canceled"
        origin="TOP-LEFT" x="0" y="0" />
      </cancelleditem>
      <separator id="Todo List.separator" padding="0, 4, 0, 0" />
    </todolist>
  </scrollgroup>
</window>



Thank you all and have a good day!
degats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15092
Re: Help background resizing 3 Years, 7 Months ago  
Although i do not to see the picture, but according to your code, the error is:
because you are using <scrollgroup ...> ... </ scrollgroup>, so the height is fixed.
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#15093
Re:Help background resizing 3 Years, 7 Months ago  
Thank you for your answer. I understand !

Do you know how I could fix this problem? I mean how can I transform the "<scrollgroup ..." without losing all my work ?
degats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15094
Re:Help background resizing 3 Years, 7 Months ago  
I just saw something interesting :

In the "Shadow" xml code for "todolist", there is also a <scrollgroup/> ... and the window is resizing normaly when I add a task... I don't understand.

Code:

<?xml version="1.0" encoding="UTF-8" ?>
<skin version="1.0">
  <window id="Todo List" w="%Todolist_width%" default="1">
    <button id="Todo List.button.newtodo" origin1="TOP-LEFT" x1="0" y1="0" origin2="TOP-RIGHT" x2="0" y2="20" dblcklaction="Global_ShowTodoDialog(#WINDOW#)" />
    <image id="Todo List.background.top" element="bitmap.background.top.todo" origin1="TOP-LEFT" x1="0" y1="0" origin2="BOTTOM-RIGHT" x2="0" scaling="TILE" margins="95,0,8,0" />
    <image id="Todo List.background.tile" element="bitmap.background.tile.full" origin1="BOTTOM-LEFT" x1="0" y1="0r" origin2="BOTTOM-RIGHT" x2="0" y2="-12" scaling="TILE" margins="8,0,8,0" />
    <scrollgroup id="Todo List.scrollgroup" origin1="TOP-LEFT" x1="10" y1="20" origin2="TOP-RIGHT" x2="-12" y2="%Todolist_height%" thumbelement="bitmap.scroll.thumb" barelement="bitmap.scroll.bar" barscaling="TILE" thumbscaling="TILE" thumbmargins="0,5,0,5" barmargins="0,5,0,5" showscrollbaraways="0" shrinktofit="1">
      <todolist id="Todo List.todolist" origin1="TOP-LEFT" x1="0" y1="0" origin2="BOTTOM-RIGHT" x2="0" y2="0">
        <header>
          <appearance padding="0,0,0,0" element="font.bold" color="255,255,255,255" effect="NORMAL" align="TOP-LEFT" />
        </header>
        <item>
          <appearance padding="10,0,0,3" element="font.normal" color="255,255,255,255" effect="NORMAL" align="TOP-LEFT" />
          <button element="bitmap.todo.item" origin="TOP-LEFT" x="0" y="0" action="Global_ToggleTaskStatus('#GUID#')" tooltip="Mark as completed" />
        </item>
        <overdueitem>
          <appearance priority="200" padding="10,0,0,3" element="font.bold" color="255,0,0,255" effect="SHADOW" align="TOP-LEFT" />
          <button element="bitmap.todo.item" origin="TOP-LEFT" x="0" y="0" action="Global_ToggleTaskStatus('#GUID#')" tooltip="Mark as completed" />
        </overdueitem>
        <completeditem>
          <appearance priority="200" padding="10,0,0,3" element="font.normal" color="180,180,180,255" effect="NORMAL" align="TOP-LEFT" />
          <button element="bitmap.todo.item" origin="TOP-LEFT" x="0" y="0" action="Global_ToggleTaskStatus('#GUID#')" tooltip="Mark as needs action" />
        </completeditem>
        <cancelleditem>
          <appearance priority="200" padding="10,0,0,3" element="font.normal" color="180,180,180,255" effect="NORMAL" align="TOP-LEFT" />
          <button element="bitmap.todo.item" origin="TOP-LEFT" x="0" y="0" action="Global_ToggleTaskStatus('#GUID#')" tooltip="Mark as completed" />
        </cancelleditem>
        <progressbar element="bitmap.progressbar.large" origin1="TOP-LEFT" x1="10" y1="0" origin2="BOTTOM-RIGHT" x2="0" y2="0" scaling="TILE" margins="2,0,2,0" />
        <separator padding="0,10,0,0" />
      </todolist>
    </scrollgroup>
    <image id="Todo List.bottom" element="bitmap.background.bottom" origin1="BOTTOM-LEFT" x1="0" y1="0r" origin2="BOTTOM-RIGHT" x2="0" y2="12r" scaling="TILE" margins="10,0,10,0" />
  </window>
</skin>

degats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/04/23 16:25 By degats.
The administrator has disabled public write access.
 
#15095
Re:Help background resizing 3 Years, 7 Months ago  
I'm not sure, but try "STRETCH" and "TILE" (en majuscule) instead of "stretch" and "tile" (en minuscule).
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#15096
Re:Help background resizing 3 Years, 7 Months ago  
In fact, your code have not much of problem,
The only mistake, as I said earlier, is in <scrollgroup ...>
a) Change origin2="bottom-right" into origin2="TOP-RIGHT"
b) and change y2="0" into y2="MAX-HEIGHT", like: y2="200"
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
Go to topPage: 1
get the latest posts directly to your desktop