Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Fred van Stappen
On Monday 31 October 2016 18:34:39 Fred van Stappen wrote: > > Hum, if the MSEfilelistview is still open and your hands already full of > grease, there is a other little detail... > > If a empty row is selected (see attachment), Do you consider that a selection can be empty, for example

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Fred van Stappen
Oops, sorry for previous mail, it was sent too fast. > Do you consider that a selection can be empty, for example depending on the > selection settings by clicking in an empty cell? Ok, you are right, if you do a filter in listfileview.onselectionchanged with if

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Martin Schreiber
On Monday 31 October 2016 19:35:16 Fred van Stappen wrote: > > Although if there is enough RAM it is no harm to store the same file. > > Does readdeffile() need lot of ram ? > It depends on the complexity. > Because only one global variable han will be used. > Each time that a direct-layout will

Re: [MSEide-MSEgui-talk] Filter

2016-10-31 Thread mohamed hamza
Hi Martin, I know that begin/end filter are not objects but action to take when an event occurs!! For example OnfilterRecord is fired when the user click on dbnb_filteronoff. 1 / I just wanted to know what are exactly events fired when we click for example dbnb_filtermax the first time

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Martin Schreiber
On Sunday 30 October 2016 20:27:22 Fred van Stappen wrote: > > Yes, but a single global "han" variable probably is not sufficient. > > Sorry, I do not understand this. What do you mean with single global "han" > variable ? > > What do you propose, what other variable must I use ? > I assume you

Re: [MSEide-MSEgui-talk] tpopupmenu - first show is quite long

2016-10-31 Thread Martin Schreiber
On Sunday 30 October 2016 00:01:41 Krzysztof wrote: > Also second issue, while popup menu is showing, I can't close app by > clicking on X button. I guess it is hard to solve because it is action on > windows decorator, not inside X window. > Please try again wit git master

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Fred van Stappen
> Please try again with git master 40cbea289f1f2a698ab23b043cc758959e9ca2c5, Yep, perfect, it works, many thanks. Hum, if the MSEfilelistview is still open and your hands already full of grease, there is a other little detail... If a empty row is selected (see attachment),

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Martin Schreiber
On Monday 31 October 2016 18:34:39 Fred van Stappen wrote: > > Hum, if the MSEfilelistview is still open and your hands already full of > grease, there is a other little detail... > > If a empty row is selected (see attachment), Do you consider that a selection can be empty, for example depending

Re: [MSEide-MSEgui-talk] Filter

2016-10-31 Thread Martin Schreiber
On Monday 31 October 2016 15:00:54 mohamed hamza wrote: > Hi Martin, > I know that begin/end filter are not objects but action to take when an > event occurs!! For example OnfilterRecord is fired when the user click on > dbnb_filteronoff. > OnFilterRecord is called when TDataset.Filtered =

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Fred van Stappen
> Although if there is enough RAM it is no harm to store the same file. Does readdeffile() need lot of ram ? Because only one global variable han will be used. Each time that a direct-layout will be loaded there will be: freedeffile(han); han := readdeffile(layoutfile); In fine, there will be

Re: [MSEide-MSEgui-talk] How to load a syntaxdef file ?

2016-10-31 Thread Fred van Stappen
> Do you consider that a selection can be empty, for example depending on the > selection settings by clicking in an empty cell? To get the selected filename I use that code: selected_file.text := list_files.selectednames[0] ; And if clicking on a empty row raise a error if not using if