Parent Window and Child Window problem

Questions about Wine on Linux
Locked
RuiBranco
Level 1
Level 1
Posts: 5
Joined: Sun Nov 18, 2012 11:12 am

Parent Window and Child Window problem

Post by RuiBranco »

Hello,
I have a problem when using my software with child window in linux / Winehq.
I can open the all windows but ChildWindow stucks.
What is causing this ?


Thanks,
Rui
Attachments
child.jpg
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Parent Window and Child Window problem

Post by lahmbi5678 »

What exactly is the issue? "stuck" can mean anything. Are you unable to move the child window? Are you unable to close the child window? Are you unable to switch focus to parent window (which probably is intended aka "modal dialog") ?
RuiBranco
Level 1
Level 1
Posts: 5
Joined: Sun Nov 18, 2012 11:12 am

Re: Parent Window and Child Window problem

Post by RuiBranco »

hello lahmbi5678,
unable to move unable to close and unable to switch focus to child window
any idea ?
Liberty Basic language

Code: Select all

    nomainwin
    WindowWidth=734
    WindowHeight=592
    UpperLeftX = int((DisplayWidth-WindowWidth)/2)
    UpperLeftY = int((DisplayHeight-WindowHeight)/2)

    Open  "Parent Window" for window as #main
    #main "trapclose [quit]"



 [childwindow]
    WindowWidth=250
    WindowHeight=210
    UpperLeftX = 88
    UpperLeftY = 44


    Open  "child window" for window as #main1

    call setParent hwnd(#main1), hwnd(#main)
    hwnd2 = hwnd(#main)

wait



[quit]
if hwnd2 <> 0 then
    close #main1
end if
close #main
end



'Subs

sub setParent child, parent
    calldll #user32, "SetParent",_
        child as ulong,_
        parent as ulong,_
        SetParent as ulong
end sub

lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Parent Window and Child Window problem

Post by lahmbi5678 »

Please use latest wine, run wine (and your Basic program) from command line and post terminal output. If there's no obvious error, you will have to file a bug report.
RuiBranco
Level 1
Level 1
Posts: 5
Joined: Sun Nov 18, 2012 11:12 am

Re: Parent Window and Child Window problem

Post by RuiBranco »

hello lahmbi5678,
Here is the output you asked

Code: Select all

joao@joao-HP-laptop:~/Desktop/AstronomyCCDCalculator$
./Astronomy_CCD_Calculator.exe
fixme:ieframe:PersistStorage_InitNew (0x15fa68)->(0x20015270)
fixme:urlmon:URLMoniker_BindToObject use running object table
fixme:dwmapi:DwmIsCompositionEnabled 0x6b047594
fixme:iphlpapi:NotifyAddrChange (Handle 0x7b6e8d0, overlapped 0x7b6e8dc):
stub
fixme:imm:ImmReleaseContext (0x100c0, 0x7fd8380): stub
fixme:ole:RemUnknown_QueryInterface No interface for iid
{00000019-0000-0000-c000-000000000046}
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ieframe:BrowserService_GetTravelLog 0x160c20 0x32d438
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 84 of
CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_QueryStatus (0x15fb1c)->((null) 1 0x32d3ec
(nil))
fixme:ieframe:ClOleCommandTarget_QueryStatus command_0: 27, 0x0
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 37 of
CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 84 of
CGID_ShellDocView
fixme:ieframe:ClientSite_GetContainer (0x15fb1c)->(0x32d40c)
fixme:mshtml:nsChannel_GetContentDisposition (0x8092060)->(0x32cb3c)
fixme:mshtml:nsChannel_GetContentDispositionHeader (0x8092060)->(0x32c364)
fixme:ieframe:ClientSite_GetContainer (0x15fb1c)->(0x32e4bc)
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:DocHostUIHandler_GetDropTarget (0x15fb1c)
fixme:advapi:RegisterTraceGuidsW (0x6ad1b4b0, 0x81128d8,
{509962e0-406b-46f4-99ba-5a009f8d2225}, 3, 0x160518, (null), (null),
0x8112908,): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of
CGID_Explorer
fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of
CGID_Explorer
fixme:ieframe:WebBrowser_get_LocationName (0x15fa68)->(0x32d484)
fixme:mshtml:nsChannel_GetContentDispositionHeader (0x808aef8)->(0x32c7d4)
fixme:win:EnumDisplayDevicesW ((null),0,0x32d024,0x00000000), stub!
fixme:resource:GetGuiResources (0xffffffff,0): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 103 of
CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 2315 of group
{de4ba900-59ca-11cf-9592-444553540000}
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 35
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 28
fixme:wininet:InternetLockRequestFile STUB
^Cfixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Parent Window and Child Window problem

Post by lahmbi5678 »

Please file a bug report and provide a sample application, if possible. I just googled, and it seems, that Liberty Basic doesn't produce .EXEs, so some kind of interpreter is needed to run applications. There's a download at the Liberty Basic homepage, which probably is a trial version (didn't test it). You should provide all this information in your bug report, so that a wine developer will easily be able to reproduce the issue.
RuiBranco
Level 1
Level 1
Posts: 5
Joined: Sun Nov 18, 2012 11:12 am

Re: Parent Window and Child Window problem

Post by RuiBranco »

hello lahmbi5678,
leave a link everything you need. GDrive: Menu/download file https://docs.google.com/file/d/0B5MAgOE ... sp=sharing
See the pm. please.

Rui
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Parent Window and Child Window problem

Post by lahmbi5678 »

Hi,

I've been able to reproduce the issue with the trial version of Liberty Basic. I got your personal message, but the key wasn't necessary, it'll probably be ok for the bug report to tell people to run your minimum app in the LibertyBasic IDE. Did you try that sample app under real windows, just to make sure that the code is ok?

Again, please file a bug report in wine's bugzilla. Filing bugs is the standard way to get in touch with wine developers. I'm not a developer, just an advanced user, so I won't be able to solve the issue for you. Filing bugs won't hurt, yet a lot of people are very hesitant to do so.

The LibertyBasic website mentions that there's an alpha (beta) version of Liberty Basic, which would work natively under linux. Do you have access to that beta?
RuiBranco
Level 1
Level 1
Posts: 5
Joined: Sun Nov 18, 2012 11:12 am

Re: Parent Window and Child Window problem

Post by RuiBranco »

I've tried running the app on windows but works well.
I do not have access to the beta version...

Sent the report to bugzilla.
Thanks for your help, lahmbi5678

Rui
Locked