Re: [MSEide-MSEgui-talk] twidgetgrid.fixrows.options
On Thursday 21 March 2013 21:34:40 Patrick Goupell wrote: > On 03/21/2013 02:59 PM, Patrick Goupell wrote: > > In a twidgetgrid the fixrows [-1] sets the column captions. > > > > It also has an options of fro_mouseselect. > > > > Could you give a comment on how / when this would be used? What kinds > > of things could I do in my program if I set it to true? > > > > Thanks > > I set it to true and see that it selects the full column if I click it. > Correct. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid.fixrows.options
On 03/21/2013 02:59 PM, Patrick Goupell wrote: > In a twidgetgrid the fixrows [-1] sets the column captions. > > It also has an options of fro_mouseselect. > > Could you give a comment on how / when this would be used? What kinds > of things could I do in my program if I set it to true? > > Thanks > I set it to true and see that it selects the full column if I click it. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
[MSEide-MSEgui-talk] twidgetgrid.fixrows.options
In a twidgetgrid the fixrows [-1] sets the column captions. It also has an options of fro_mouseselect. Could you give a comment on how / when this would be used? What kinds of things could I do in my program if I set it to true? Thanks Patrick -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] ABOUT exeption "not decorated"
On Thursday 21 March 2013 17:26:49 Alexandre Minoshi wrote: > Hello Martin! > > I need to execute next code via clicking button: > > procedure tmainfo.on_execute(const sender : tObject); > begin > tterminal1.execprog(); > mainfo.hide; > end; > > If i go to this button via press "Tab" and then press "Space" - there is > no problem: form hide and program started. > If I click this button with mouse - form hide, program started and > after some time message "not decorated" is showed. > Works for me. Try to activate tbutton.options bo_asyncexecute, maybe it helps. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] tbutton.frame.caption
On Thursday 21 March 2013 14:02:48 Patrick Goupell wrote: > I am attempting to set a tbutton.frame.caption in program code: > btnNext.frame.caption := '1 of ' + s; > > But I get a compiler error: main.pas(2133,16) Error: identifier idents > no member "caption". > > When I look in the source code of a tcaptionframe I see a public > property for "caption". > > Why would I be getting a compile time error? > Because there was a duplicate of the property with wrong type in tbutton. Please try again with git master 3f480c056a2c3ff6310da8d7ddb1560ee3f9a833. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] About tmsesqlquery datasource propery
yes primary key en master is ID The same SQL sentences are working in lazarus/ibx/sqldb/zeoslib I'll try to build a testcase Thank you. 2013/3/21 Martin Schreiber > On Thursday 21 March 2013 10:07:41 Julio Jiménez wrote: > > Testing again and not working. > > > > Master dataset name is clientes. > > > > Sql = select * from clientes order by denominacion asc; primary key > is > > ID > > Data sourde name for clientes is clientesds > > > > > > One of the details datasets > > > > Name: idcli > > icli.datasource = clientesds > > > > Sql = select * FROM INCIDENCIASCLIENTE where idcliente=:id; > > > > idcliente is link field in icli id is primary key in clientes > > > > > > The error is: > > Clientes: Field not found: "idcliente" > > > > weird, because field idclientes is not in dataset clientes (master), it's > > in detail > > > Can you send a simple testcase? > > Martin > > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > ___ > mseide-msegui-talk mailing list > mseide-msegui-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk > -- Julio Jiménez Borreguero -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] About tmsesqlquery datasource propery
On Thursday 21 March 2013 10:07:41 Julio Jiménez wrote: > Testing again and not working. > > Master dataset name is clientes. > > Sql = select * from clientes order by denominacion asc; primary key is > ID > Data sourde name for clientes is clientesds > > > One of the details datasets > > Name: idcli > icli.datasource = clientesds > > Sql = select * FROM INCIDENCIASCLIENTE where idcliente=:id; > > idcliente is link field in icli id is primary key in clientes > > > The error is: > Clientes: Field not found: "idcliente" > > weird, because field idclientes is not in dataset clientes (master), it's > in detail > Can you send a simple testcase? Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] About tmsesqlquery datasource propery
On Thursday 21 March 2013 09:54:27 Julio Jiménez wrote: > Yes of course. The same code is working in Lazarus. It complains about a > field name not existing in master dataset.. when that field is in detail... > > Detail sql looks liket: > > Select id, idmaster, name where idmaster=:id > > and id is the pk in master dataset > The field name should be "id" in master dataset. Correct? Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
[MSEide-MSEgui-talk] tbutton.frame.caption
I am attempting to set a tbutton.frame.caption in program code: btnNext.frame.caption := '1 of ' + s; But I get a compiler error: main.pas(2133,16) Error: identifier idents no member "caption". When I look in the source code of a tcaptionframe I see a public property for "caption". Why would I be getting a compile time error? Patrick -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
[MSEide-MSEgui-talk] ABOUT exeption "not decorated"
Hello Martin! I need to execute next code via clicking button: procedure tmainfo.on_execute(const sender : tObject); begin tterminal1.execprog(); mainfo.hide; end; If i go to this button via press "Tab" and then press "Space" - there is no problem: form hide and program started. If I click this button with mouse - form hide, program started and after some time message "not decorated" is showed. I try to use "try .. except" but message still is showed. Yours, Alexandre Minoshi P.S. I read code and understood that this message is depend of working window manager, so if I set mainfo.optionwindow = wo_popup there is no problem. But if i need to move/resize window? A.M. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] About tmsesqlquery datasource propery
Testing again and not working. Master dataset name is clientes. Sql = select * from clientes order by denominacion asc; primary key is ID Data sourde name for clientes is clientesds One of the details datasets Name: idcli icli.datasource = clientesds Sql = select * FROM INCIDENCIASCLIENTE where idcliente=:id; idcliente is link field in icli id is primary key in clientes The error is: Clientes: Field not found: "idcliente" weird, because field idclientes is not in dataset clientes (master), it's in detail 2013/3/21 Julio Jiménez > Yes of course. The same code is working in Lazarus. It complains about a > field name not existing in master dataset.. when that field is in detail... > > Detail sql looks liket: > > Select id, idmaster, name where idmaster=:id > > and id is the pk in master dataset > > Because you say it works for you, I'll try again... may be I did some > mistake... > > > 2013/3/21 Martin Schreiber > >> On Wednesday 20 March 2013 21:04:36 Julio Jiménez wrote: >> > What is tmsesqlquery.datasource for? >> > >> > I have read mse db components are a fork of sqldb components. In sqldb, >> > zeos, ibx... this field is used for a master->detail relation but this >> mode >> > isn't working in mse >> > >> Works for me. Is the "where" clause of the detail dataset OK? Field names >> of >> the master dataset and the detail params must match. >> Example synchronize the "pk" fields of master and detail: >> " >> select * from table1 where pk = :pk >> " >> >> Martin >> >> >> -- >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> ___ >> mseide-msegui-talk mailing list >> mseide-msegui-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk >> > > > > -- > Julio Jiménez Borreguero > -- Julio Jiménez Borreguero -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] About tmsesqlquery datasource propery
Yes of course. The same code is working in Lazarus. It complains about a field name not existing in master dataset.. when that field is in detail... Detail sql looks liket: Select id, idmaster, name where idmaster=:id and id is the pk in master dataset Because you say it works for you, I'll try again... may be I did some mistake... 2013/3/21 Martin Schreiber > On Wednesday 20 March 2013 21:04:36 Julio Jiménez wrote: > > What is tmsesqlquery.datasource for? > > > > I have read mse db components are a fork of sqldb components. In sqldb, > > zeos, ibx... this field is used for a master->detail relation but this > mode > > isn't working in mse > > > Works for me. Is the "where" clause of the detail dataset OK? Field names > of > the master dataset and the detail params must match. > Example synchronize the "pk" fields of master and detail: > " > select * from table1 where pk = :pk > " > > Martin > > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > ___ > mseide-msegui-talk mailing list > mseide-msegui-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk > -- Julio Jiménez Borreguero -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] tsequencelink incorrect value assignment
I have no problem in generating sequence value and avoid this 'issue' (in fact I used sequences in mseide before the component was created). I was only pointing out what other database components like ZeosLib and IBX do. If the purpose is that the fileds values are complete in onbeforepost, then it's ok. Thanks. 2013/3/21 Martin Schreiber > On Wednesday 20 March 2013 20:59:35 Julio Jiménez wrote: > > Sequence value is generated before tmsesqlquery.beforepost so if you > cancel > > post a value in the sequence is lost (unassigned) > > > AFAIK there can be unassigned values anyway if the transaction will be > canceled later? > > > I think the correct is to generate it after post and if the value is null > > (dataset field value) > > The sequence value is fetched in tdatlink.updatedata (dataevent > deUpdateRecord): > " > procedure tsequencedatalink.updatedata; > begin > inherited; > if (field <> nil) and field.isnull and (dataset <> nil) and > ((dataset.modified) or >(fdscontroller <> nil) and fdscontroller.posting) then begin > if field.datatype in [ftlargeint,ftfloat,ftcurrency,ftbcd] then begin >field.aslargeint:= fownerlink.aslargeint; > end > else begin >field.asinteger:= fownerlink.asinteger; > end; > end; > end; > " > The purpose is that the field values are complete in onbeforepost. > If you don't want this behavior don't set tsequencelink.datafield and > assign > the field value in onbeforepost > " > .asinteger:= .asinteger. > " > Another possibility is to genereate the key server-side by a trigger in > applyupdate and to set providerflags1 pf1_refreshinsert/pf1_refreshupdate > of > the affected fields in order to automatically refresh the generated value. > > Martin > > -- Julio Jiménez Borreguero -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk