Recent

Author Topic: Accessing obConf options from Lazarus to change a setting  (Read 1003 times)

userx-bw

  • Full Member
  • ***
  • Posts: 178
Accessing obConf options from Lazarus to change a setting
« on: September 22, 2014, 05:53:32 pm »
I am running Linux using OpenBox with obConf

I have a form its borderStyle is set to bsNone

I have a popup menu with an option to show border so I can set it to Omnipresent -- then remove the border so I don't have to look at it anymore --

I have another option to minimize the form by double clicking the mouse, or by a menu option

problem:
it will not minimize with the omnipresent option set from obConf

I do not want to have to have to unset omnipresent manually. So, how would I access the obConf option to unset it using code in Lazarus

Code: [Select]
procedure TForm1.ImageDblClick(Sender: TObject);
begin
   timer.Enabled:=false;
   Form1.BorderStyle:=bsSingle;

// something like this

OperatingSystem->obConf->Omnipresent := false;


   Form1.WindowState:=wsMinimized;
   Application.Minimize;
   
end;             
« Last Edit: September 22, 2014, 06:19:47 pm by userx-bw »
My Finished Projects
https://sourceforge.net/projects/mhsetroot/
https://sourceforge.net/projects/gmhsetrootfreepascalfrontend/

HP Elitetbook 6930p Dual Core Intel vPro 2.66 gHz
VOID (Linux) 64bit

 

TinyPortal © 2005-2018