[20 Feb 2008] Bug report: Hollywood3 and borderless windows

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Peter

[20 Feb 2008] Bug report: Hollywood3 and borderless windows

Post by Peter »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 20 Feb 2008 23:49:43 +0100

Hello,

there seems to be a bug when it comes to borderless windows.

The following code creates a button that should write 1 to stderr when clicked:

Code: Select all

@VERSION 3, 0
@DISPLAY {
    Width = 100,
    Height = 100
} 

Function p_Output( msg )
    DebugPrint( 1 )
EndFunction 

evtmatch = { OnMouseUp = p_Output, OnRightMouseUp = p_Output } 

MakeButton( 1, #SIMPLEBUTTON, 0, 0, 100, 100, evtmatch ) 

While( quit = False )
    WaitEvent
Wend 

End 
If the display window has a window border, everything is OK. But in a borderless display window, there is no reaction to mouse clicks in the top part of the button.

To test just run within a shell:

'hollywood script.hws' and 'hollywood -borderless script.hws'

Kind regards, Peter
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[20 Feb 2008] Re: Bug report: Hollywood3 and borderless windows

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 20 Feb 2008 23:55:27 +0100

That's not a bug. Borderless windows have an invisible drag bar in the top part of the window. You can disable this by opening a non-moveable window (use the -fixed argument).
Locked