BorderStyle problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37291
    Raccoon
    Participant

    Hi,

    I'm using this code:

    Code:
    if(this->bFullscreen == Value)
    return;
    this->bFullscreen = Value;
    if(bFullscreen)
    {
    rcSavePos.left = this->Left;
    rcSavePos.top = this->Top;
    rcSavePos.right = this->Left + this->Width;
    rcSavePos.bottom = this->Top + this->Height;
    this->pnBottom->Visible = false;
    this->SetBounds(Monitor->Left, Monitor->Top, Monitor->Width, Monitor->Height);
    this->BorderStyle = bsNone;
    }
    else
    {
    this->BorderStyle = bsSizeable;
    this->pnBottom->Visible = true;
    this->SetBounds(rcSavePos.left, rcSavePos.top, rcSavePos.Width(), rcSavePos.Height());
    }

    This works. But if I set Fullscreen to false, the Close Button in Forms Titlebar is deactivated.

    This work around helps:

    Code:
    if(this->bFullscreen == Value)
    return;
    this->bFullscreen = Value;
    if(bFullscreen)
    {

    this->pnBottom->Visible = false;

    sSkinManager1->Active = false;

    this->SetBounds(Monitor->Left, Monitor->Top, Monitor->Width, Monitor->Height);
    this->BorderStyle = bsNone;
    }
    else
    {
    this->BorderStyle = bsSizeable;
    this->pnBottom->Visible = true;
    this->SetBounds(rcSavePos.left, rcSavePos.top, rcSavePos.Width(), rcSavePos.Height());

    sSkinManager1->Active = true;

    }

    But I think, this is not working as intended?!

    Best regards

    Alex

    #56044
    Support
    Keymaster

    Hello!

    I'm trying to reproduce the issue in tests but can't. Maybe you can show a demo with the problem?

    Could you show a screenshot also, please?

    #56115
    Raccoon
    Participant

    Hi,

    find a demo project attached.

    I included the Skin i'm using as well. But I tested it with several skins, but maybe you find something.

    AlphaControls Vers.: 11.21

    Best regards Alex

    #56116
    Raccoon
    Participant

    And here two screenshots.

    Best regards Alex

    #56117
    Support
    Keymaster

    Thank you for the demo, I will try to fix this issue in the nearest release.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.