Issue 82427 - Mac OS X (Aqua): Drawing function does not draw anything
Summary: Mac OS X (Aqua): Drawing function does not draw anything
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 680m229
Hardware: All Mac OS X, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: b.osi.ooo
QA Contact: issues@tools
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2007-10-09 09:03 UTC by jogi
Modified: 2013-08-07 15:34 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jogi 2007-10-09 09:03:28 UTC
Execute test sub routine and you will see that under Mac OS X Aqua nothing is
being drawn.

sub wZeichenobjektEinfuegen ( Objekt$, xStart%, yStart%, xEnde%, yEnde%,
optional sCloseToolbar as boolean )

    Kontext "DrawBar"
    if Not DrawBar.Exists then Call hToolbarSelect("Drawing", true)
    Sleep 2

    Objekt = UCase( Objekt )
    select case Objekt
        case "RECHTECK" : Rechteck.Click
        case "LINIE"     : Linie.Click
        case "ELLIPSE"  : Ellipse.Click
        case "TEXT"      : Textobjekt.Click
        case "VTEXT"     :
        try
            VerticalText.Click
        catch
            if gAsianSup = True then
                Warnlog "Unable to insert Vertical Text! Asian Support in
Options activated ?"
            endif
        endcatch
        case "LAUFTEXT" : Lauftext.Click
        case "LEGENDE"  : Legende.Click
        case "VLEGENDE" :
        try
            VerticalCallout.Click
        catch
            Warnlog "Unable to insert Vertical Callout! Asian Support in Options
activated ?"
        endcatch
    end select

    Select Case gApplication
     Case "WRITER"
         Kontext "DocumentWriter"
         DocumentWriter.MouseDown xStart%, yStart%
         DocumentWriter.MouseMove xEnde%, yEnde%
         DocumentWriter.MouseUp xEnde%, yEnde%
         wait 100
         Kontext "Drawbar"
         if IsMissing(sCloseToolbar) then
             Drawbar.Close
         else
             if sCloseToolbar = true then Drawbar.Close
         endif
         if Objekt <> "TEXT" and Objekt <> "VTEXT" then
             Kontext "DocumentWriter"
             Call gMouseClick (99, 99)
             wait 100
         end if

     Case "MASTERDOC"
         Kontext "DocumentMasterDoc"
         DocumentMasterDoc.MouseDown xStart%, yStart%
         DocumentMasterDoc.MouseMove xEnde%, yEnde%
         DocumentMasterDoc.MouseUp xEnde%, yEnde%
         wait 100
         Kontext "Drawbar"
         if IsMissing(sCloseToolbar) then
             Drawbar.Close
         else
             if sCloseToolbar = true then Drawbar.Close
         endif
         if Objekt <> "TEXT" and Objekt <> "VTEXT" then
             Kontext "DocumentMasterDoc"
             Call gMouseClick (99, 99)
             wait 100
         end if
    end select
end sub
Comment 1 jogi 2007-10-09 09:17:43 UTC
added keyword
Comment 2 hdu@apache.org 2007-10-09 10:08:17 UTC
@af: does this one have the same root cause as issue 81673? (Thanks ericb for finding the similarities!)
Comment 3 jogi 2007-10-09 11:23:14 UTC
jsi->hdu: I think we're talking about different things because the TestTool is
not drawing a square or a push button but manually you can do it.

jsi->gh: Use testcase t_TB_Form in qa/qatesttool/writer/update/w_updt.bas
(inc/w_020_.inc, ../tools/w_tool1.inc) to see that also pushbuttons not visible
via testtool drawing function.
Comment 4 eric.bachard 2007-10-10 19:30:46 UTC
@jsi

Two questions :

1) How reproduce that issue ?

2) can you really try to draw, say 

- a smiley
- an ellipse
- a fontwork object 

... manually with m231 or > ?  

Here it does not work ( m231 + aquavcl03, means something like m233 for Aqua part): I got the 
control points but nothing in the middle. Tested with most of the objects you can draw using the Writer 
the drawing toolbar 


Comment 5 gregor.hartmann 2007-10-23 15:00:50 UTC
seems to work in m233 please check again
Comment 6 gregor.hartmann 2007-11-08 07:07:55 UTC
setting to fixed so it can be checked ;-)
Comment 7 jogi 2008-03-04 09:21:40 UTC
@tbo: Could you please check that again in aquavcl05 TT?
Comment 8 jogi 2008-03-04 09:23:12 UTC
target 3.0
Comment 9 b.osi.ooo 2008-03-05 19:58:55 UTC
testcase t_TB_Form in qa/qatesttool/writer/update/w_updt.bas
doesn't work for me in aquavcl05 -> reopened
Comment 10 b.osi.ooo 2008-03-05 20:00:27 UTC
not working on MacOS X aqua for me
Comment 11 gregor.hartmann 2008-03-11 12:44:41 UTC
looks like a partial fix
Comment 12 philipp.lohmann 2008-03-18 19:49:48 UTC
ok, for testtool dummies like me, is there a shorter method to reproduce this
issue than running 3 hours of w_updt.bas ?
Comment 13 jogi 2008-03-19 07:47:29 UTC
Hi pl,
as written to gh earlier:

"jsi->gh: Use testcase t_TB_Form in qa/qatesttool/writer/update/w_updt.bas
(inc/w_020_.inc, ../tools/w_tool1.inc) to see that also pushbuttons not visible
via testtool drawing function."

So, remove the call's of w_updt.bas in the test section (between hstatusin and
hstatusout call) and insert 

call t_TB_Form

Also remove call hStatusIn and hStatusOut.

Then it is the exact test case.
Comment 14 philipp.lohmann 2008-04-03 18:27:38 UTC
works for controls except the pushbutton which is inserted first. Could you
please give me a hint what is actually going wrong here ?
Comment 15 gregor.hartmann 2008-08-26 10:51:10 UTC
postponed to 3.x
Comment 16 gregor.hartmann 2008-08-26 10:52:55 UTC
jsi: can you have a look what's going wrong here please.
Comment 17 jogi 2009-06-04 14:01:31 UTC
@tbo: worksforyou?
Comment 18 b.osi.ooo 2009-06-09 09:51:44 UTC
Just verified on Mac OS X 10.4 Intel: OK no error - closing
Comment 19 b.osi.ooo 2009-06-09 09:52:11 UTC
.