Re: [MSEide-MSEgui-talk] TdbNavigator

2016-09-11 Thread Martin Schreiber
On Sunday 11 September 2016 14:42:07 mohamed hamza wrote: > Hi Martin, >Why we can change stat from browse mode to edit mode even if > tdbnav.datasource.readonly is true. (edit and insert buttons are enabled)? > For me append-, delete- and edit-buttons are disabled if datasource.readoly = true

Re: [MSEide-MSEgui-talk] MSE and last libiconv-1.14_9.txz on FreeBSD 64 ?

2016-09-12 Thread Martin Schreiber
On Tuesday 13 September 2016 01:28:23 Fred van Stappen wrote: > Hello Martin. > > When upgrading on FreeBSD 10.3 64 bit from libiconv-1.14_8.txz to > libiconv-1.14_9.txz, no MSE applications can run anymore. > Why? Which error message(s)? Martin ---

Re: [MSEide-MSEgui-talk] MSE and last libiconv-1.14_9.txz on FreeBSD 64 ?

2016-09-13 Thread Martin Schreiber
On Tuesday 13 September 2016 12:04:14 Fred van Stappen wrote: > > Why? Which error message(s)? > > It appends directly when trying to run a MSE application. > > > # /usr/local/share/mseide/mseide > > > ---> /usr/local/share/mseide/mseide: Undefined symbol "iconv_open". > > The determination of the

Re: [MSEide-MSEgui-talk] MSE and last libiconv-1.14_9.txz on FreeBSD 64 ?

2016-09-13 Thread Martin Schreiber
On Tuesday 13 September 2016 16:17:33 Fred van Stappen wrote: > Hello Martin. > > I suspect that the guilty is inside the package from > http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/ > > Could you try this: > > Download the pack libiconv-1.14_9.txz form > http://pkg.freebsd.org/freebsd:10:x8

Re: [MSEide-MSEgui-talk] MSE and last libiconv-1.14_9.txz on FreeBSD 64 ?

2016-09-13 Thread Martin Schreiber
On Wednesday 14 September 2016 02:06:16 Fred van Stappen wrote: > Re-re-re-re-re-re hello Martin. > > Please, read this after my 2 previous mails. > > I have tested to change in cwstring, at line 118: > {$ifndef Darwin} with {$ifndef Darwin and ndef FreeBSD} this: > > > {$ifndef Darwin and ndef

Re: [MSEide-MSEgui-talk] MSE and last libiconv-1.14_9.txz on FreeBSD 64 ?

2016-09-14 Thread Martin Schreiber
On Wednesday 14 September 2016 17:40:07 Fred van Stappen wrote: > > af03e737d40125c8772aedcba56095d101632544 uses "lib" for FreeBSD, please > > test. > > Yep, fixed . > But MSEide must be re-compiled with old libiconv.so first. > Otherwise, MSEide can not be run and so cannot re-compile all the MSE

Re: [MSEide-MSEgui-talk] Failed to initialize the Application object ?

2016-09-14 Thread Martin Schreiber
On Wednesday 14 September 2016 18:07:24 Fred van Stappen wrote: > Hello Martin. > > > On a FreeBSD 64 system, with Linux 64 emulated, I can run fpc console Linux > 64 applications. For example fpc-linux 64 run and compiles perfectly > (MSEgui and fpGUI apps too) on the emulated system. > > It can r

Re: [MSEide-MSEgui-talk] Failed to initialize the Application object ?

2016-09-14 Thread Martin Schreiber
On Thursday 15 September 2016 02:46:16 Fred van Stappen wrote: > Hello. > > Solved, it was a problem of a dependency of dependency with wrong ELF. > Now, I can compile and run Linux applications too on FreeBSD. > And where did the error message stem from? Martin --

Re: [MSEide-MSEgui-talk] tlayouter again ;)

2016-09-16 Thread Martin Schreiber
On Friday 16 September 2016 13:20:14 code dz wrote: > Hi Martin > how to keep the items that has been added to the tlayouter inside > tlayouter frame . > because if i added too many items they placed automatically outside the > frame . > for tlayouter i set those options (lao_placex , lao_aligny) a

Re: [MSEide-MSEgui-talk] MSE multi-system.

2016-09-16 Thread Martin Schreiber
On Saturday 17 September 2016 06:28:35 Fred van Stappen wrote: > Hello Martin. > > Here result of MSE code compiled and runing on a unique FreeBSD system > (polYdev). > Congrats! Now your hair can sprout again. ;-) I admire your patience. Martin ---

Re: [MSEide-MSEgui-talk] tlayouter again ;)

2016-09-17 Thread Martin Schreiber
On Friday 16 September 2016 13:20:14 code dz wrote: > Hi Martin > how to keep the items that has been added to the tlayouter inside > tlayouter frame . > because if i added too many items they placed automatically outside the > frame . > > for tlayouter i set those options (lao_placex , lao_aligny)

[MSEide-MSEgui-talk] Firebird 3.0 support

2016-09-17 Thread Martin Schreiber
Hi, There is a new connection component for Firebird 3.0 which uses the new OOP-API (TFBConnection, tab DB), experimental, please test. Martin -- ___ mseide-msegui-talk mailin

Re: [MSEide-MSEgui-talk] tlayouter again ;)

2016-09-17 Thread Martin Schreiber
On Saturday 17 September 2016 15:28:58 code dz wrote: > still doesn't work as my expectation , or maybe i am wrong > i expect that when i add new item , the tlayouter will packed all > items automatically , ( all items inside tlayouter has the same width > , and every time i add new items the tl

Re: [MSEide-MSEgui-talk] MSE multi-system.

2016-09-19 Thread Martin Schreiber
On Monday 19 September 2016 22:58:59 Fred van Stappen wrote: > Hello Martin. > > I have added in /polYdev/mse_multisys/ ==> modified mselibc.pas. > This to make MSEgui demo compilable on FreeBSD 32 bit. > > This was added at line 1003: > > {$ifdef freebsd} > {$ifndef cpu64} > ino_t = __ino_t; > gid

Re: [MSEide-MSEgui-talk] MSE multi-system.

2016-09-20 Thread Martin Schreiber
On Tuesday 20 September 2016 12:13:01 Fred van Stappen wrote: > > Did you check if the size and structure of all system types are correct > > for > > > > FreeBSD 32? They are defined in the *.h files of the FreeBSD > > installation. > > No. > > > Huh, ... there are billions of *.h files. > I know.

Re: [MSEide-MSEgui-talk] MSEide feature request: GoTo Line improvement

2016-09-21 Thread Martin Schreiber
On Wednesday 21 September 2016 18:20:51 Graeme Geldenhuys wrote: > On 2016-09-03 09:55, Martin Schreiber wrote: > > Git master ff49fa71c2ed489e3f3b590b21a440c1fff19ab5 preserves current row > > window position. > > Could you explain a bit more how this works now? > It

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 11:28:58 Graeme Geldenhuys wrote: > On 2016-01-04 14:22, Fred van Stappen wrote: > > Hum, by the way, what do you think about this ? > > > > https://sites.google.com/site/fredvsbinaries/mse_begin_end.mp4 > > Coming back to an old thread. So what is required to get this

Re: [MSEide-MSEgui-talk] Pos Function

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 12:35:52 mohamed hamza wrote: > Hi Martin > Which unit contains Pos function? > system.pos(). Martin -- ___ mseide-msegui-talk mailing list mseid

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 12:39:16 Fred van Stappen wrote: > > > >. Be warned, it is a typical "not good enough" solution because no 100% > > parsing is done. > > Sorry but I do not agree with this. > I use it everyday and never find a bad couple. > What if ther

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 12:52:35 Graeme Geldenhuys wrote: > On 2016-09-22 11:49, Graeme Geldenhuys wrote: > > I see the tooltip mentions that the value of "mark color" will be > > overridden by the syntax highlighter... Is that maybe what is happening > > here? I'm using the default pascal_da

Re: [MSEide-MSEgui-talk] Pos Function

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 13:37:05 mohamed hamza wrote: > Hi Martin, > Sorry, I did not ask the good question . In fact, system unit is used but > the error remains? Best Regards. > Med "pos" is a property of TForm. If you want to call the pos() function from unit system you must write "sys

Re: [MSEide-MSEgui-talk] shortcut to select a word?

2016-09-22 Thread Martin Schreiber
On Thursday 22 September 2016 14:07:41 Graeme Geldenhuys wrote: > Hi Martin, > > Is there editor functionality and possible a keyboard shortcut to select > the current word? Git master 23b9acad25e940859c3a7584063dbff2b1479de2 has 'Copy Word at Cursor', default shortcut is Ctrl+Shift+W. Martin -

Re: [MSEide-MSEgui-talk] SourceForge mirror out of sync

2016-09-23 Thread Martin Schreiber
On Friday 23 September 2016 11:41:38 Graeme Geldenhuys wrote: > Hi Martin, > > I for some reason have the SourceForge (mirror repository) set up in one > of my VM's. I did a pull this morning to get the "select a word" changes > you made yesterday. It said I'm already on the latest code. I then > s

Re: [MSEide-MSEgui-talk] Firebird lib is required for compiling MSEide

2016-09-24 Thread Martin Schreiber
On Saturday 24 September 2016 13:00:02 Julio Jiménez wrote: > Hi Martin. > > My last try to compile MSEide failed because lib firebird is required. I > fixed it installing firebird-dev package (under LinuxMint and Ubuntu). > > I also have seen that now mseide binary requires libfbclient for dynamic

Re: [MSEide-MSEgui-talk] Firebird lib is required for compiling MSEide

2016-09-24 Thread Martin Schreiber
On Saturday 24 September 2016 13:26:51 Julio Jiménez wrote: > 2016-09-24 13:22 GMT+02:00 Martin Schreiber : > > No. I still load all DB libraries by loadlibrary(). Do you know which > > unit links it in? > > [...] > > No, there is no info while linking, just the error

Re: [MSEide-MSEgui-talk] key_ definitinos

2016-09-25 Thread Martin Schreiber
On Sunday 25 September 2016 17:42:46 Patrick Goupell wrote: > Where are the key_??? defined? ie key_pageup, key_pagedown In lib/common/kernel/msekeyboard.pas. Martin -- ___ ms

Re: [MSEide-MSEgui-talk] string function

2016-09-28 Thread Martin Schreiber
On Wednesday 28 September 2016 18:37:38 mohamed hamza wrote: > Hi Martin, > > I did > tmsesqlquery(ds.dataset).sql[7]:=ansireplacestr(tmsesqlquery(ds.dataset).sq >l[7],':=','<>'); but the string ':=' is not replaced with '<>'? > tmsesquery.sql is of type tsqlstringlist which inherits from tmse

Re: [MSEide-MSEgui-talk] string function

2016-09-29 Thread Martin Schreiber
On Thursday 29 September 2016 18:44:48 mohamed hamza wrote: > Hi Martin, > >I agree that using tsqlstringlist is the best solution. I used > sql.macros[i] but I did not find how to use itembyname? " macroquery.active:= false; macroquery.sql.macros.count:= 2; macroquery.sql.macros[0].name:= '

Re: [MSEide-MSEgui-talk] what is the simplest way to fill ttreeitemedit

2016-09-30 Thread Martin Schreiber
On Friday 30 September 2016 10:53:04 code dz wrote: > Hi Martin > is there a simple way to fill ttreeitemedit with only 5 or 6 strings , > without need of inheriting from trecordtreelistedititem and > trecordvaluelistedititem just like the example in > samples/widgets/grids/itemedit , the code ther

Re: [MSEide-MSEgui-talk] what is the simplest way to fill ttreeitemedit

2016-09-30 Thread Martin Schreiber
On Friday 30 September 2016 11:49:05 code dz wrote: > thanks > > you mean like this : > > procedure tmainfo.on_create(const sender: TObject); > var > item : ttreelistedititem; > begin > item := ttreelistedititem.create; > item.caption := 'root'; > > ttreeitemedit1.itemlist.add(item); > end

Re: [MSEide-MSEgui-talk] datalookup

2016-10-01 Thread Martin Schreiber
On Friday 30 September 2016 18:22:55 mohamed hamza wrote: > Hi Martin, > >Is it possible to manually add a row to tenumeditdb.dropdown without > insert it in datasource.dataset? > If the dataset is a tmsesqlquery you can disconnect it from database by ".connected:= false". Then it is possible

Re: [MSEide-MSEgui-talk] MSEide+MSEgui fails to Bootstrap from Source

2016-10-03 Thread Martin Schreiber
On 10/03/2016 08:30 AM, Martin Vahi wrote: > > Is it a flaw/bug at the MSEide+MSEgui side or > do I have something wrong? > Works for me, dateutils.ppu and dateutils.o are in /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl-objpas/ on my system. Do you have that files? Martin -

Re: [MSEide-MSEgui-talk] MSEide can't navigate operator overloading functions

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 08:58:58 Graeme Geldenhuys wrote: > Any chance of this being fixed in the near future? > It is on wishlist already. It could be that it is a work of several hours in case it can not been handled by the current parsing of procedures. > ps: > Martin, I might need your he

Re: [MSEide-MSEgui-talk] MSEide can't navigate operator overloading functions

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 10:10:16 Graeme Geldenhuys wrote: > > > There is no official MSEide plugin interface so feel free to ask if you > > need changes in MSEide for your needs. > > I don't need an "add-on API" per se. I'll be extending MSEide in the > same way that I've been maintaining some of

Re: [MSEide-MSEgui-talk] stringgrid behavior

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 14:56:41 Patrick Goupell wrote: > Hello Martin, > > When I add a stringgrid object to my form and do not populate it it > shows a blank row after the form is created. > > If I set the rowcount := 0 the stringgrid still show 1 blank row, > > Is this the norrmal expected be

Re: [MSEide-MSEgui-talk] stringgrid behavior

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 15:39:17 Patrick Goupell wrote: > On 10/03/2016 09:12 AM, Martin Schreiber wrote: > > I can not extract the test program: > > " > > tar: This does not look like a tar archive > > " > > I assume that t*grid.optionsgrid og_auto

Re: [MSEide-MSEgui-talk] stringgrid behavior

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 15:53:28 Patrick Goupell wrote: > On 10/03/2016 09:48 AM, Martin Schreiber wrote: > > Please explain. There should be no randomness. > > > > Martin > > I use this procedure to load the stringgrid (see end of post) > > It is called in

Re: [MSEide-MSEgui-talk] stringgrid behavior

2016-10-03 Thread Martin Schreiber
On Monday 03 October 2016 16:16:05 Patrick Goupell wrote: > On 10/03/2016 10:07 AM, Patrick Goupell wrote: > > Thanks for the explanation. > > > > I will modifiy the program a little to remove focus from teh stringgrid > > and watch the result. > > By removing focus from the stringgrid before calli

Re: [MSEide-MSEgui-talk] treeitemedit weird behaviour

2016-10-04 Thread Martin Schreiber
On Tuesday 04 October 2016 10:19:45 code dz wrote: > Hi Matrin > i create 2 ttreeitemedit , the problem is when trying to expanding > tree1 , the tree2 expanded instead . A ttreeitemeditnode can only be mapped into a single ttreeitemedit. The reason is that the datalist in ttreeitemedit only has

Re: [MSEide-MSEgui-talk] checkvalue

2016-10-04 Thread Martin Schreiber
On Tuesday 04 October 2016 16:20:35 mohamed hamza wrote: > Why do I have to do a checkvalue after enabling/disabling a tbooleanedit > to see the result (gray color)? > There was a missing invalidate() call, please try again with git master cf69d20d4cf7920d6d26a1f1398cc8174e41b4b0. Martin -

Re: [MSEide-MSEgui-talk] Broken link at msegui/help/README.TXT

2016-10-04 Thread Martin Schreiber
On Wednesday 05 October 2016 08:03:56 Martin Vahi wrote: > Citation from v4.2: > > msegui/help/README.TXT > > ---citation--start--- > 2007-11-15 mse > > Help has been moved to > https://gitorious.org/mseuniverse > mseuniverse/attic/msedocumenting/mse/trunk/tools/doc > ---citation--end- > It

Re: [MSEide-MSEgui-talk] statfile

2016-10-06 Thread Martin Schreiber
On Thursday 06 October 2016 19:29:42 mohamed hamza wrote: > Hi Martin, > >I used simple form instead tabform in tabwidget . Now I lose stat > ( enabled/disabled, last value ... ) of all widgets when I change tabpage . > I tried to use statfile to restore but no success.Do I have to change

Re: [MSEide-MSEgui-talk] statfile

2016-10-07 Thread Martin Schreiber
On Friday 07 October 2016 11:48:51 mohamed hamza wrote: > > All my forms are descending from a baseform (simpleform). > > Do I have to change baseform simpleform to baseform tabform? > In that project I have only 2 forms to keep in memory among 11. > In fact where d

Re: [MSEide-MSEgui-talk] statfile

2016-10-07 Thread Martin Schreiber
On Friday 07 October 2016 19:30:32 mohamed hamza wrote: > Hi Martin > > > statfile does not work for me. I set mainform.sta and frm*.sta for > each form I need to be restored. > > widget.statfile to frm*.sta > > > > Why statfile is not created in directoy? > Please send a project wh

Re: [MSEide-MSEgui-talk] statfile

2016-10-08 Thread Martin Schreiber
On Saturday 08 October 2016 12:46:54 mohamed hamza wrote: > Hi Martin, >I send you *.mfm concerned. > There are unresolved references to other forms. Suggestion: make a minimal project which demonstrates the problem. Martin

Re: [MSEide-MSEgui-talk] statfile

2016-10-08 Thread Martin Schreiber
On Saturday 08 October 2016 18:32:02 mohamed hamza wrote: > Hi Martin, > > I Tried mseuniverse demo subform. > I added OnEnter event to tab0fo.editb > > procedure ttab0fo.Onenter(const sender: TObject); > begin > with editb do enabled:=not(enabled); > end; > > When I select tab1 and b

Re: [MSEide-MSEgui-talk] CreateDataBase error

2016-10-09 Thread Martin Schreiber
On Sunday 09 October 2016 14:38:08 tea wrote: > How to call CreateDataBase? > > Code: > --*--*-- > var >  … >    ibBase: tmseibconnection; > … > > procedure tmainfo.OnCeate(const sender: TObject); > begin >  if not FindFile(ibBase.DataBaseName) >   then ibBase.CreateDataBase

Re: [MSEide-MSEgui-talk] tImage.Bitmap.LoadFromStream error

2016-10-09 Thread Martin Schreiber
On Sunday 09 October 2016 14:51:05 tea wrote: > How to load a picture in JPEG format from a stream? > > Code: > --*--*-- > function tmainfo.LoadPictureFromURL(const AURL: msestring): tMaskedBitmap; > var >  ICnct : tHTTPSend; >  TmpImg : tImage; > begin >  ICnct:=tHTTPSend.C

Re: [MSEide-MSEgui-talk] statfile

2016-10-12 Thread Martin Schreiber
On Wednesday 12 October 2016 14:12:53 mohamed hamza wrote: > Hi martin, > > I think it's better to have an onStateRead and onStateWrite events > like this onStateRw(;const lrw:boolean) > >and then we can write if lrw then var := reader.readboolean(...) else > writer.writeboolean( ...

Re: [MSEide-MSEgui-talk] statfile

2016-10-12 Thread Martin Schreiber
On Wednesday 12 October 2016 16:11:31 mohamed hamza wrote: > Hi Martin, > >Now the code is clearer. Thanks for this guide > >Now Inside OnstatRead event I didReadW ( read) and In OnStatWrite > event ReadW(write) > >proc ReadW (const filer :tstatfiler) > > later >with tst

Re: [MSEide-MSEgui-talk] TtabWidget

2016-10-15 Thread Martin Schreiber
On Saturday 15 October 2016 19:03:04 mohamed hamza wrote: > Hi Martin, > > I know that we can disable forbiden ttabpage to be selected . But > sometimes we want to change the active page by code,for example, by setting > activePageIndex? Is it possible? > Yes. Or use ".isactivepage:= true;". Th

Re: [MSEide-MSEgui-talk] TStatusbar and TPanel widgets?

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 12:20:02 Graeme Geldenhuys wrote: > Hi, > > Where do I find a StatusBar widget in MSEide's component palette? > There is none, simply place the needed display widgets with correct anchors in the container. > Otherwise, where do I find the equivalent of Delphi's TPanel? >

Re: [MSEide-MSEgui-talk] TStatusbar and TPanel widgets?

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 13:20:41 Graeme Geldenhuys wrote: > > It is in tab 'Widget'. > > Ah, the "Widget" tab was hidden... see attached screenshot. I only > noticed now the small little arrows that allow scrolling the tabs. I see > it now. :) > The order of the tabs can be changed by "drag and d

Re: [MSEide-MSEgui-talk] StringGrid and row select

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 13:40:14 Graeme Geldenhuys wrote: > Hi, > > What is the MSEgui's StringGrid equivalent of Delphi's > TStringGrid.Options goRowSelect? > > > I tried grid.datacols.options co_rowselect but that doesn't seem to have > any affect on the grid - or at least nothing I can visibly

Re: [MSEide-MSEgui-talk] TStatusbar and TPanel widgets?

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 13:13:51 Martin Schreiber wrote: > Click on the "see also" links in order to see Michael Ebners docu. > Here the menu: http://wiki.freepascal.org/Category:MSEide+MSEgui -- Check

Re: [MSEide-MSEgui-talk] StringGrid and row select

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 15:14:08 Graeme Geldenhuys wrote: > On 2016-10-17 13:02, Martin Schreiber wrote: > > Hint: in MSEgui in most cases it is preferable to use TWidgetGrid (tab > > 'Edit') and insert the necessary column editwidgets from tab 'Edit' > >

Re: [MSEide-MSEgui-talk] StringGrid and row select

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 17:20:03 Graeme Geldenhuys wrote: > On 2016-10-17 16:12, Martin Schreiber wrote: > > TWidgetGrid has a widget per column not per cell. > > Ah, good to know. Thanks for the whole explanation. > > > TStringGrid can not show icons by itself. >

Re: [MSEide-MSEgui-talk] StringGrid and row select

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 17:51:19 Martin Schreiber wrote: > Yes, there are T*Grid.DataCols[n].OnBeforeDrawCell and OnAfterDrawcell > event properties. Widget columns also have OnDrawCell, I must check why it > is missing in TStringCol. > In TStringCol it is redundant to OnAfterD

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

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] 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. > > cbObjects.dropd

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

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

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 b

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, otherwis

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. tcustom

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Tuesday 18 October 2016 22:11:28 Krzysztof wrote: > 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: >

Re: [MSEide-MSEgui-talk] TEdit and OnChange event

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 00:28:11 Graeme Geldenhuys wrote: > 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 c

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

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 00:51:39 Graeme Geldenhuys wrote: > Hi > > While a TEdit has focus, if I then press the Down or Up arrow keys, then > the TEdit looses focus. MSEgui supports "geographic" widget navigation by arrow keys. > How do I prevent that. I only want TAB to > changes widget fo

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

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 00:54:57 Graeme Geldenhuys wrote: > 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 re

Re: [MSEide-MSEgui-talk] sizes of a window

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 10:04:23 Solomon Hierrussalimsky wrote: > how to forbid change of the sizes of a window? > Set .bounds_cxmin = bounds_cxmax = window width, bounds_cymin = bounds_cymax = window height. Martin

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

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 10:36:54 Graeme Geldenhuys wrote: > Also they can close the dialog by simply > pressing ESC. > Please activate .options fo_closeonesc in order to activate such a behaviour. > The developer doesn't need to fumble arround with the mouse, or use the > TAB key to get to

Re: [MSEide-MSEgui-talk] TEdit and OnChange event

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 09:58:05 Graeme Geldenhuys wrote: > On 2016-10-19 08:17, Martin Schreiber wrote: > > It is called from loaded(). The purpose is that one can synchronise with > > the streamed values. > > I ended up using the OnTextEdited event, which seems to fit

Re: [MSEide-MSEgui-talk] TEdit and OnChange event

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 11:21:30 Graeme Geldenhuys wrote: > On 2016-10-19 08:17, Martin Schreiber wrote: > > It is called from loaded(). The purpose is that one can synchronise with > > the streamed values. > > ps: > I added all the recent information

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

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 12:23:26 Graeme Geldenhuys wrote: > On 2016-10-19 10:13, Martin Schreiber wrote: > >> Also they can close the dialog by simply > >> pressing ESC. > > > > Please activate .options fo_closeonesc in order to activate such a > > behav

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 12:38:03 Graeme Geldenhuys wrote: > Hi > > I've finally got the "Procedure List" add-on for MSEide to a point were > it is working. Not perfectly, but usable at least. ;-) > Great! Just what I can say on the fly, I need to dig deeper later: > > 3. The first column in th

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 12:38:03 Graeme Geldenhuys wrote: > > 7. Individual cells should not be selectable (focusable) in the grid. > Activate .datacols.options co_nofocus. Martin -- Check out the vibrant tech commun

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 16:38:14 Krzysztof wrote: > 2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > Override "calcitemlayout()". > > Mmm, seems that this methods is never called: > Because of: " function ttreeitemedit.getitemclass: listitemclassty; begin

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 16:22:59 Krzysztof wrote: > > > > Maybe overriding "drawimage()" is better. > > Thanks, now it is working, almost. When tree item is selected then seems > that different "draw" method is called because my text disappear but > caption is drawed. Which one is it? If the

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 23:22:57 Fred van Stappen wrote: > > @ Martin, is it possible to use a url-link to show one topic of MSE forum ? > Search it in mail-archive: https://www.mail-archive.com/mseide-msegui-talk@lists.sourceforge.net/ or mailman https://sourceforge.net/p/mseide-msegui/mailma

Re: [MSEide-MSEgui-talk] localization of library messages

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 22:43:24 Solomon Hierrussalimsky wrote: > when using the 'tintegeredit' component a message appears > > whether localization of such messages on other languages is available? > how to include? They are in the "lib/common/kernel/mseconsts_*.pas" files. Add the needed

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 19:27:28 Krzysztof wrote: > 2016-10-19 19:25 GMT+02:00 Martin Schreiber : > > If the widget is focused the caption will be drawn by TInplaceEdit. > > > Can I disable TInplaceEdit? I don't need edition mode, just readonly > treeview How sh

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 19:09:50 Martin Schreiber wrote: > On Wednesday 19 October 2016 16:38:14 Krzysztof wrote: > > 2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > > Override "calcitemlayout()". > > > > Mmm, seems that this methods is neve

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Martin Schreiber
On Wednesday 19 October 2016 19:09:50 Martin Schreiber wrote: > > > Second question for > > this case: How to instead of hardcoded '40' set it dynamically for > > example textsize('abc').cx. I guess that I need access to canvas but > > don't kn

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-20 Thread Martin Schreiber
On Wednesday 19 October 2016 12:38:03 Graeme Geldenhuys wrote: > > Outstanding features and known problems: > > 1. On closing the Procedure List dialog a "Access Violation" error pops >up. I have no idea why this happens yet. I have double checked an >

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-20 Thread Martin Schreiber
On Thursday 20 October 2016 10:02:21 Graeme Geldenhuys wrote: > On 2016-10-19 12:03, Martin Schreiber wrote: > > Activate .datacols.options co_nofocus. > > Thank you, I made that change as well as managed to register the > Procedure List in the IDE global shortcuts dialog. All

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Martin Schreiber
On Thursday 20 October 2016 17:06:45 Krzysztof wrote: > 2016-10-20 8:57 GMT+02:00 Martin Schreiber : > > git master db394652aced3fc3ad32363c096eb22fe2d78e9f calls the class from > > itemlist.itemclass parameter. > > You probably don't need to use calcitemlayout(), it i

Re: [MSEide-MSEgui-talk] default message window width

2016-10-20 Thread Martin Schreiber
On Thursday 20 October 2016 23:45:56 Solomon Hierrussalimsky wrote: > > but caption lenght... > > how to set default message window width? If you call "showmessage()" yourself there is a "minwidth" parameter. This is not possible for internally generated messages, but users can enlarge the messa

Re: [MSEide-MSEgui-talk] Procedure List - fast code navigation for MSEide

2016-10-20 Thread Martin Schreiber
On Thursday 20 October 2016 23:29:41 Graeme Geldenhuys wrote: > > It was not a parsing error. I retrieved the filename only from the > source editor window, instead of the full directory and > filename. > Ouch, I recommended that, sorry. :-( Martin

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Thursday 20 October 2016 18:25:08 Martin Schreiber wrote: > It is possible to add dynamic position and size correction to > ListItemLayoutInfoTy like ListItemLayoutInfoTy.Variable.Extra.Image but it > is not cheap. I still don't really understand the purpose, please explain >

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 13:11:18 Krzysztof wrote: > 2016-10-21 13:02 GMT+02:00 Krzysztof : > > 1. Can't turn off auto text select on row click. I would like even > > disable text selecting totally > > 2. Can't turn off focus rect. It is drawed even if co_drawfocus is false > > (globaly and localy

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 13:47:53 Martin Schreiber wrote: > > 4. I would need to draw icon (in root and subnode) but don't see any > > > > > imagelist and imagenr in ttreeitemedit or twidgetgrid > > They are in ttreeitemedit.itemlist property. > The imag

Re: [MSEide-MSEgui-talk] TDBstringLookupLb

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 17:50:54 mohamed hamza wrote: > Hi Martin, > > I have a TDBStringLookupLb column inside a tdbwidgetGrid. I set this > because I want to sort on that column > > TDBLookupBuffer contains 1 integer field > and 1 text field whic

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 22:56:42 Krzysztof wrote: > Great! With your changes in drawimage() now it is working perfect, even > better than with second column because caption ellipsis appear exactly when > it meet my extra text. > But still have few questions: > 1. Root node has bold font and when

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 22:58:42 Krzysztof wrote: > 4. Why did you changed params order in drawimage virtual method? Just > wondering what was a reason from technical view Because in most or even all other drawing procedures canvas is the first parameter. Martin --

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-22 Thread Martin Schreiber
On Saturday 22 October 2016 22:28:22 Krzysztof wrote: > Mmm just noticed that my extra text is cut in subnodes (see attached > screenshot). One char offset. This is my current code: > The shift value is in "variable.treelevelshift": " procedure TGenericNode.drawimage(const acanvas: tcanvas;

Re: [MSEide-MSEgui-talk] TDBstringLookupLb

2016-10-24 Thread Martin Schreiber
On Monday 24 October 2016 09:29:56 mohamed hamza wrote: > Hi Martin, > > Thanks for your advice. Now the column is sorted , But when I click on > heading arrow this one becomes unsorted instead desc sort and I can not > return back to sorted column? > Works for me, please send an example with t

Re: [MSEide-MSEgui-talk] TDBstringLookupLb

2016-10-24 Thread Martin Schreiber
On Monday 24 October 2016 14:44:24 mohamed hamza wrote: > > Nb: what do you mean by sortcol = n when we have multiple columns to sort? > Here? > TDBWidgetGrid has rows for the visible range of records only -> sorting must > be done in dataset. Please set according local indices where > tmsesqlque

Re: [MSEide-MSEgui-talk] find function

2016-10-26 Thread Martin Schreiber
On Wednesday 26 October 2016 15:54:01 mohamed hamza wrote: > Hi Martin, > > The function tmsebufdataset.indexlocal[i].find( [value],[],true,false) > does not work for me if value is variant? Is it normal. > Yes. find([],[]...) accepts integer,real,currency,boolean,int64,msestring,tguid. find([

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

2016-10-26 Thread Martin Schreiber
On Thursday 27 October 2016 02:55:07 Fred van Stappen wrote: > Hello Martin. > > > In tmainfo I want to add a SyntaxDef menu-item. > OnExecute will call a openfile dialog to choose the syntaxdef file. > MSEide loads syntax definition files on demand. The call stack is: " procedure tsourcepage.loadf

<    1   2   3   4   5   6   7   8   9   10   >