<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dear Luciano Vieira,<br>
<br>
The first problem you describe is a genuine bug wrt updating check
controls and radio controls. It does not occur with any of the other
controls. Fortunately, there is a workaround: if you wrap the
control in a so-called layout control, then positioning and
refreshing works fine (I must confess that I find that rather odd).
Don't forget to include zero margins in the layout-control
attributes. So, change the radio control and check control to::<br>
<br>
<tt> :+: LayoutControl (RadioControl
[("botão1",Nothing,id),<br>
("botão2",Nothing,id),<br>
("botão3",Nothing,id)] <br>
(Rows 1) 3 []) [ControlPos
(LeftBottom,zero),ControlHMargin 0 0,ControlVMargin 0 0]<br>
<br>
:+: LayoutControl (CheckControl
[("botão1",Nothing,NoMark,id),<br>
("botão2",Nothing,Mark,id),<br>
("botão3",Nothing,NoMark,id)] <br>
(Columns 3) []) [ControlPos
(RightBottom,zero),ControlHMargin 0 0,ControlVMargin 0 0] <br>
</tt><br>
I've tested this with SDI and MDI windows, and it works on my
machine.<br>
<br>
The second problem you describe is actually not a bug, but correct,
yet admittedly unexpected, behavior. You write: <br>
"When we minimize the window and maximize it again, the interface
looses the background"<br>
This suggests that you think that once you have drawn an image on
the window canvas, it should remain there. However, this is not true
in Object I/O. In Object I/O, the look function is responsible **all
the time** for rendering the entire, correct content of the window
(or control). The behaviour that you describe follows from that: <br>
<ol>
<li>you create a window with a look function that displays a red
bitmap image. If you resize this window, it will constantly
display this image</li>
<li>if you press the button 'Write a Text!' then its callback
function lookText is evaluated. Its effect is that it first
draws the second bitmap and changes the look function of the
window. The effect of the latter operation is that after that
moment, all refresh requests will be handled by the function
writeLookText</li>
<li>now suppose you resize the window or cause any other reason to
refresh part of the window, the function writeLookText redraws
the content: it **only** draws the text "Refresh refresh " in
black using font Arial in bold style and point size 20. In
particular, it does not redraw the background. So that should be
done first.</li>
</ol>
You can get the desired behavior by:<br>
<ol>
<li>removing the first line of the lookText function (so the line
that draws the bitmap in the window)</li>
<li>add the following line immediately before setting the pen
colour to black in writeLookText:</li>
</ol>
<tt> # picture = drawAt {x=0,y=0} bitmapFundo2 picture</tt><br>
<br>
I suppose that you wish to use non-monochrome bitmaps in a later
stage. If not, it is much more efficient to either set the pen
colour (setPenColour) with the appropriate colour and fill a
rectangle of the proper size or set the pen background colour
(setPenBack) and unfill a rectangle of the proper size.<br>
<br>
Hope this helps,<br>
Regards,<br>
Peter<br>
<br>
<br>
On 5/18/2011 3:41 AM, <a class="moz-txt-link-abbreviated" href="mailto:luciano.vieira.lima@terra.com.br">luciano.vieira.lima@terra.com.br</a> wrote:
<blockquote
cite="mid:004301cc14fc$ab48f0a0$01dad1e0$@vieira.lima@terra.com.br"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de balão Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.TextodebaloChar
        {mso-style-name:"Texto de balão Char";
        mso-style-priority:99;
        mso-style-link:"Texto de balão";
        font-family:"Tahoma","sans-serif";}
span.EstiloDeEmail19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstiloDeEmail20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstiloDeEmail21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstiloDeEmail22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstiloDeEmail23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Tahoma","sans-serif";">I
need help to fix problems with SDI interfaces<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I<span style="color: rgb(31, 73, 125);">
really </span>like to make multimedia applications in
CLEAN.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Unfortunately I have some<span
style="color: rgb(31, 73, 125);"> </span>problems with
refresh in SDI interfaces.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I submitted this problem already but I
don´t receive any suggestion or help when I send my questions
to<span style="color: rgb(31, 73, 125);"> <a
moz-do-not-send="true" href="mailto:clean-bugs@cs.ru.nl">clean-bugs@cs.ru.nl</a>
and <a moz-do-not-send="true" href="mailto:clean@cs.ru.nl">clean@cs.ru.nl</a></span>( 2009,
2010 and January 2011).<o:p></o:p></p>
<p class="MsoNormal">I will explain the problems, presenting all
details I think important to understand. <o:p></o:p></p>
<p class="MsoNormal">I am sending, attached, two single programs
to illustrate the bugs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The first problem is about radio, check …
controls in SDI interfaces.<o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_0"
src="cid:part1.06010707.06050407@cs.ru.nl" alt="before1.jpg"
width="299" border="0" height="132"><o:p></o:p></p>
<p class="MsoNormal">When we minimize the interface and maximize
again, the objects(check and radio buttons) change place.<o:p></o:p></p>
<p class="MsoNormal">Let´s see<o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_1"
src="cid:part2.06010101.00090109@cs.ru.nl" alt="after1.jpg"
width="297" border="0" height="131"><o:p></o:p></p>
<p class="MsoNormal">If you enlarge the window,… well,
…everything but popup disappear. Very estrange. <o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_2"
src="cid:part3.04040107.08080500@cs.ru.nl" alt="enlarg1.jpg"
width="400" border="0" height="200"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don´t understand these problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Another problem is about refresh (without
check and radio buttons). This problem occurs whem using
WindowLook, draw…. in SDI interfaces.<o:p></o:p></p>
<p class="MsoNormal">Let´s see<o:p></o:p></p>
<p class="MsoNormal">First, we have<o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_3"
src="cid:part4.05010507.05020509@cs.ru.nl" alt="before2.jpg"
width="271" border="0" height="186"><o:p></o:p></p>
<p class="MsoNormal">pressing the button “Write a Text!” We
have<o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_4"
src="cid:part5.02030604.05000102@cs.ru.nl" alt="midle2.jpg"
width="273" border="0" height="188"><o:p></o:p></p>
<p class="MsoNormal">When we minimize the window and maximize it
again, the interface looses the background<o:p></o:p></p>
<p class="MsoNormal"><img id="Imagem_x0020_5"
src="cid:part6.04050008.07060003@cs.ru.nl" alt="after2.jpg"
width="274" border="0" height="189"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don´t understand again. <o:p></o:p></p>
<p class="MsoNormal">I think that<span style="color: rgb(31, 73,
125);"> </span>CLEAN has more potential than academics use.<o:p></o:p></p>
<p class="MsoNormal">I really know that.<span style="color:
rgb(31, 73, 125);"> </span>That´s the problem. I need
implementation professional SDI interfaces, without bugs.<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal">Please! <o:p></o:p></p>
<p class="MsoNormal">Can someone help me?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><a
moz-do-not-send="true"
href="mailto:luciano.vieira.lima@terra.com.br">luciano.vieira.lima@terra.com.br</a>
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Luciano Vieira Lima </span><span
style="color: rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">_______________________________________________
</span><span style="color: rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Prof. Dr. da Faculdade de Engenharia
Elétrica (FEELT) da Universidade Federal de Uberlândia </span><span
style="font-size: 7pt; color: rgb(54, 95, 145);"
lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do Núcleo Avançado de Computação
Sônica e Multimídia (NACSM)</span><span style="font-size:
7pt; color: rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do Grupo de Inteligência
Artificial </span><span style="font-size: 7pt; color:
rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do Núcleo de Engenharia de
Computação </span><span style="font-size: 7pt; color:
rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do Núcleo de Engenharia Biomédica
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do Núcleo de Desenvolvimento e
Pesquisa em Eletromagnetismo e Sistemas de <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR"> Aterramentos Elétricos<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Membro do grupo de EAD da FEELT - UFU</span><span
style="font-size: 5pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Pesquisador UFU, FINEP, CNPq, FAPEMIG,
ANEEL desde 1983 </span><span style="font-size: 7pt; color:
rgb(54, 95, 145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">+55 34 3242 1566 34 8823 0008 </span><span
style="font-size: 7pt; color: rgb(54, 95, 145);"
lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR">Curriculum </span><span
style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);"><a moz-do-not-send="true"
href="http://lattes.cnpq.br/4147306444287969"
title="http://lattes.cnpq.br/4147306444287969"><span
style="color: rgb(54, 95, 145); text-decoration: none;"
lang="PT-BR">http://lattes.cnpq.br/4147306444287969</span></a>
</span><span style="font-size: 6pt; font-family:
"Arial","sans-serif"; color: rgb(54, 95,
145);" lang="PT-BR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
clean-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:clean-list@science.ru.nl">clean-list@science.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/clean-list">http://mailman.science.ru.nl/mailman/listinfo/clean-list</a>
</pre>
</blockquote>
</body>
</html>