Jump to content

AVI Window w/o Titlebar?


Marcus
 Share

Recommended Posts

Hello folks.

Just wondering how to create a thinly bordered AVI window without a titlebar.

Here's what I've tried:

#include <GUIConstants.au3>

GUICreate("", 150, 210)
$AVI = GUICtrlCreateAvi("MyAVI.avi", -1, -1, -1, "", "", $WS_BORDER)
GUISetState(@SW_SHOW)

GUICtrlSetState($AVI, 1)

While 1
    Sleep(1000)
Wend

Exit

I thought that by calling $WS_BORDER explicitly I'd be able to override the defaults which include a titlebar.

Any ideas???

Thanks a bunch ;)

[center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center]

Link to comment
Share on other sites

@Larry:

Thanks for the tip.

Here's what I surmise is the correct syntax:

#include <GUIConstants.au3>

GUICreate("", 150, 210)
$X = BitOr($WS_POPUP,$WS_BORDER)
$AVI = GUICtrlCreateAvi("MyAVI.avi", -1, -1, -1, "", "", $X)
GUISetState(@SW_SHOW)

GUICtrlSetState($AVI, 1)

While 1
    Sleep(1000)
Wend

Exit

However, when I run this all that I wind up with is one blank unmovable borderless window in the top left corner of the screen, and one blank window with titlebar which sits in the middle ;)

WhadidI miss here???

[center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center]

Link to comment
Share on other sites

@Valuater:

Thanks for the link ;)

Locked the crank on that one ... no soup for me.

Any other ideas???

Thanks again.

[center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center]

Link to comment
Share on other sites

Well . . .

It seems that the sound of crickets can be heard in the hall...

I think I sorted this matter out for myself -- rather simple, after all.

#include <GUIConstants.au3>

$X = BitOr($WS_POPUP, $WS_BORDER)
GUICreate("", 150, 210, -1, -1, $X, $WS_EX_TOPMOST)
$AVI = GUICtrlCreateAvi("MyAVI.avi", -1, -1, -1)
GUISetState(@SW_SHOW)

GUICtrlSetState($AVI, 1)

While 1
    Sleep(1000)
Wend

Exit

Larry's advice was good, but he simply didn't leave enough detail to fully set the context (BitOr() is referred to in both the GUICtrlCreateAvi() and the GUICreate() methods).

Sorry to have stumped everyone else...

Have a great day, all!

[center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...