Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any way to remove window borders? #48

Closed
treeshateorcs opened this issue Apr 9, 2020 · 2 comments
Closed

any way to remove window borders? #48

treeshateorcs opened this issue Apr 9, 2020 · 2 comments

Comments

@treeshateorcs
Copy link

i'd like to remove the red lines
KG58jFm

didn't find this in the docs

if there isn't, i wonder why, because we can remove shadows no problem

@gansm
Copy link
Owner

gansm commented Apr 9, 2020

Thank you very much for your tip. This function did not exist before.

Please try my last commit (20c3cf2) with the following code:

#include <final/final.h>

using finalcut::FPoint;
using finalcut::FSize;

int main (int argc, char* argv[])
{
  finalcut::FApplication app(argc, argv);
  finalcut::FDialog dialog(&app);
  dialog.setText ("Dialog");
  dialog.unsetBorder();  // Disable the dialog border
  dialog.setGeometry (FPoint(25, 6), FSize(32, 12));
  finalcut::FButton button{"&Quit", &dialog};
  button.setGeometry (FPoint(19, 8), FSize(10, 1), false);
  button.addCallback
  (
    "clicked",
    finalcut::getFApplication(),
    &finalcut::FApplication::cb_exitApp,
    &dialog
  );
  app.setMainWidget(&dialog);
  dialog.show();
  return app.exec();
}

Last modified: Code changes for the upcoming release 0.7.0

@treeshateorcs
Copy link
Author

@gansm thank you for the fastest response! works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants