Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 11:00:00 Graeme Geldenhuys wrote: > On 2016-10-18 08:33, Martin Schreiber wrote: > >> I'm getting there! :-) See attached screenshot. > > > > If you agree I'll try to make a plug-in with the modification later. > > Of course. I'll make the code available in my Github

Re: [MSEide-MSEgui-talk] Form's OnShow event doesn't fire

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 11:31:34 Graeme Geldenhuys wrote: > On 2016-10-18 08:33, Martin Schreiber wrote: > I think I found another bug though. The OnShow fires multiple times. > Initially when the form is created and displayed (which is correct), and > every time I switch virtual desktops (I

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 11:00:00 Graeme Geldenhuys wrote: > I've change the ComboBox widget to TDropdownListEdit and your code > suggestion does work. I can't seem to get the focus item set though. > I use the following code to populate the combobox and set the focus item. > >

[MSEide-MSEgui-talk] OnStateChange

2016-10-18 Thread mohamed hamza
Hi Martin, I noticed then OnStateChange is called 2 times when we change datasource.dataset. ex: Ifthen dso.dataset:=dssql1.dataset else dso.dataset:=dssql2.dataset 1/ The first time dso.dataset become nil and the second time it is assigned with new value ? 2/

Re: [MSEide-MSEgui-talk] OnStateChange

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 12:47:07 mohamed hamza wrote: > Hi Martin, > > I noticed then OnStateChange is called 2 times when we change > datasource.dataset. > > ex: > Ifthen dso.dataset:=dssql1.dataset else > dso.dataset:=dssql2.dataset > > 1/ The first time dso.dataset

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 08:33, Martin Schreiber wrote: >> I'm getting there! :-) See attached screenshot. >> > If you agree I'll try to make a plug-in with the modification later. Of course. I'll make the code available in my Github repository when I'm done. I don't mind maintaining my own custom mods for

Re: [MSEide-MSEgui-talk] Form's OnShow event doesn't fire

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 08:33, Martin Schreiber wrote: > A bug, thanks for reporting. > Please try again with git master f142b08589bb3a9d16ca2624fbf5885927be3742. Ah, many thanks. I think I found another bug though. The OnShow fires multiple times. Initially when the form is created and displayed (which

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 10:39, Martin Schreiber wrote: >> > cbObjects.dropdown.cols.EndUpdate; >> > cbObjects.dropdown.ItemIndex := 0; // SAllString is always the 1st item >> > > Suggestion: use a TenumEdit and set ".value:= 0;". > TDropdownListEdit is more a TStringEdit with a text selecting help.

Re: [MSEide-MSEgui-talk] Form's OnShow event doesn't fire

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 12:28, Martin Schreiber wrote: > The window manager hides the window if another desktop is showed. After > switching back it shows the window again which fires OnShow. Interestingly, neither fpGUI nor LCL behaves like that. In both those toolkits the OnShow only fires once - on the

Re: [MSEide-MSEgui-talk] Form's OnShow event doesn't fire

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 13:37:10 Graeme Geldenhuys wrote: > > > MSEgui has the following form events which normally are fired only once: > > OnCreate, OnCreated (which is called by afterconstruction()),OnLoaded and > > OnEvenLoopStart. > > OK, I'll try and move everything into OnCreate,

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 14:18, Martin Schreiber wrote: > It is a regression, please try again with git master Thank you, now that is working. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key:

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 11:38:05 Graeme Geldenhuys wrote: > But what does cbObjects.dropdown.ItemIndex := 0 do in TDropdownListEdit > if it doesn't set the focus item? > It is a regression, please try again with git master 844129cc9fb904d3f4b20f3a5a8a627f28771608, thanks for reporting.

[MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-18 Thread Krzysztof
Hi Martin, Long time :) . My last project was aborted (not due to MSE) so there was no sense to continue porting from Lazarus. But I started new one and want to make it on MSE from the beginning. Have questions about twidgetgrid: 1. Is it possible to make background and frame transparent?

Re: [MSEide-MSEgui-talk] IDE mod - Procedure List

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 02:09:46 Graeme Geldenhuys wrote: > Hi Martin, > > I'm getting there! :-) See attached screenshot. > Congrats! If you agree I'll try to make a plug-in with the modification later. > A couple more questions. > > > 1. How do I get the focused row in the StringGrid to show

Re: [MSEide-MSEgui-talk] Form's OnShow event doesn't fire

2016-10-18 Thread Martin Schreiber
On Tuesday 18 October 2016 01:44:23 Graeme Geldenhuys wrote: > Hi Martin, > > Any idea why my form's OnShow event handler doesn't fire? > A bug, thanks for reporting. Please try again with git master f142b08589bb3a9d16ca2624fbf5885927be3742. Martin

[MSEide-MSEgui-talk] TEdit and OnChange event

2016-10-18 Thread Graeme Geldenhuys
Hi Martin, Why does a TEdit's OnChange event fire when a form is displayed for the first time? At design time the TEdit was empty (no text) and no default property values were changed. The constructor of the form doesn't change anything of the TEdit instance either, yet the OnChange event is

[MSEide-MSEgui-talk] TEdit looses focus with down arrow

2016-10-18 Thread Graeme Geldenhuys
Hi While a TEdit has focus, if I then press the Down or Up arrow keys, then the TEdit looses focus. How do I prevent that. I only want TAB to changes widget focus. Looking at the option in the Object Inspector, I thought maybe the ow_arrowfocus (defaults to True) might be the cause. Removing

Re: [MSEide-MSEgui-talk] TEdit looses focus with down arrow

2016-10-18 Thread Graeme Geldenhuys
On 2016-10-18 23:51, Graeme Geldenhuys wrote: > Looking at the option in the Object Inspector, I thought maybe the > ow_arrowfocus (defaults to True) might be the cause. Removing > ow_arrowfocus from the optionswidget did not resolve the problem. Disabling eo_exitoncursor did also not fix the