Hi all,
These are minor questions and I have some workarounds about these
issues. But I think there must be better solutions.
[1] The first one is about the scrollbar. Is it possible to stay
scrolltarget always at the bottom of its own. Now I can do this by
calling the page() method in any handler like below

<canvas bgcolor="#EAEAEA" width="800" height="510">
        <simplelayout spacing="5"/>
        <view name="myView" width="200" height="100" clip="true" 
bgcolor="0xBBBBBB">
                <text name="messageArea" focusable="true"
                        clickable="true"/>                      
                <vscrollbar name="myScrollBar" />
        </view>
        <edittext name="myEdittext" text="selamlar"/>
        <button>AddText
                <handler name="onclick">
                        
parent.myView.messageArea.addText(parent.myEdittext.text+'\n');
                        parent.myView.myScrollBar.page(1);
                </handler>
        </button>
</canvas>

Expected view should be like that : http://twitpic.com/1haemc

[2] The second one is about the description of any clickable view. I
can do this like below. But I am curious about if is there any
attribute of the view to make the desc. visible when onmouseover event
is called.

<canvas>
        <view name="myView2" x="50" y="50" bgcolor="red" width="50" height="20"
                  onmouseover="desc.setAttribute('visible',true)"
onmouseout="desc.setAttribute('visible',false)" />
        <text name="desc" text="This is description" visible="false"
x="${myView2.x}" y="${myView2.y+20}"/>
</canvas>

I have seen  an attribute "aadescription" but not sure whether this is
the thing that I look.

Any better idea?
Best regards.

-- 
Cem SONMEZ

Reply via email to