Does it possible to reactivate opengl? lazarus / 31-LCL ---------------------------------------------------------------------- Milsa · 2016-04-25 17:39 I have project with TForm.BorderStyle changing. This operation break OpenGlControl. Does it possilbe to reactivate after break? OpenGLControlDemo from Lazarus with BorderStyle changing in attachment. ---------------------------------------------------------------------- Handoko · 2016-04-25 18:02 What is the problem? Can you please describe it more clearly? I run it on Ubuntu Mate, I don't see anything wrong. ---------------------------------------------------------------------- Graeme · 2016-04-25 19:34 Quote from: Handoko on April 25, 2016, 08:02:30 pm I run it on Ubuntu Mate, ... @Handoko: Apologies for being off-topic. I really like Mate (Gnome 2), and since Ubuntu moved to Unity years ago I stopped using Ubuntu and in fact Linux all together, and moved to FreeBSD instead. So I'm a bit out of touch with Linux distros now. Is there now an Ubuntu Mate distro, or did you install the normal Ubuntu and then manually install and switch to Mate desktop? ---------------------------------------------------------------------- Milsa · 2016-04-25 19:49 Sorry, Click to BorderStyle button after run. I have problem with Windows Vista. ---------------------------------------------------------------------- Cyrax · 2016-04-25 22:08 I suspect that changing BorderStyle forces recreation of the window handle. Solution is to recreate the opengl component. ---------------------------------------------------------------------- Carver413 · 2016-04-25 22:41 Quote from: Graeme on April 25, 2016, 09:34:44 pm @Handoko: Apologies for being off-topic. I really like Mate (Gnome 2), and since Ubuntu moved to Unity years ago I stopped using Ubuntu and in fact Linux all together, and moved to FreeBSD instead. So I'm a bit out of touch with Linux distros now. Is there now an Ubuntu Mate distro, or did you install the normal Ubuntu and then manually install and switch to Mate desktop? Mint uses mate,I stopped using Ubuntu for the same reason and switched to mint. ---------------------------------------------------------------------- Handoko · 2016-04-26 02:23 Ubuntu Mate has its own distro now. I previously manually installed Mate Desktop and switched from Unity. But because I configured my Linux wisely, I put my home folder to its own partition. So I can format all the others partitions and make a fresh install of Ubuntu Mate distro without any loss of data and all the software settings (except Linux itself). I mean, after installed Ubuntu Mate then I install Opera, SeaMonkey, etc. All the settings are being kept also the bookmarks. I won't be able to do it on Windows. Here you can get Ubuntu Mate distro: https://ubuntu-mate.org/ Ubuntu Mate distro is very similar to Ubuntu + Mate Desktop, there are very few differences only. Ubuntu Mate distro default installation doesn't include Synaptic Package Manager and it replaces Ubuntu Software Centre with AppGrid, Nautilus with Caja, Gedit with Pluma. ---------------------------------------------------------------------- Handoko · 2016-04-26 02:48 @Milsa: Did you mean error happens when executing this line? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i AnExampleForm.BorderStyle := bsNone; It wont happen on my Ubuntu Mate system. But I can get the error if I change your TExampleForm.Button0Click code to: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TExampleForm.Button0Click(Sender: TObject);begin  with AnExampleForm do    if BorderStyle = bsNone then      BorderStyle := bsSizeable    else      BorderStyle := bsNone;end; The OpenGL control becomes totally black if its parent form border changes to bsSizeable. ---------------------------------------------------------------------- Graeme · 2016-04-26 16:13 Quote from: Handoko on April 26, 2016, 04:23:32 amHere you can get Ubuntu Mate distro: https://ubuntu-mate.org/ Many thanks for all the info.  Also a thank you to Carver413 for mentioning Linux Mint - I forgot about that one.