Re: [MSEide-MSEgui-talk] MSEide: F12 fuction (src-designer switch) doesn't work for a newly created project

2013-11-13 Thread Martin Schreiber
On Tuesday 12 November 2013 13:16:51 Ivanko B wrote: win-32 ? Yes. Martin -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Tuesday 12 November 2013 14:50:42 Ivanko B wrote: -- procedure twidget.enabledchanged; var int1: integer; bo1: boolean; begin bo1:= isenabled; // = FALSE if not bo1 then begin if focused then begin window.setfocusedwidget(nil); // HERE end; end; if fframe

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Tuesday 12 November 2013 14:50:42 Ivanko B wrote: Don't we have an wrong (to widget of same form) detection of form focus change here ? Disable ow1_canclosenil in receditfo.optionswidget1. Martin -- DreamFactory -

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Michael Schnell
On 11/12/2013 04:45 PM, Martin Schreiber wrote: with r: rec1 do I decently hate with due to the ambiguity it imposes: it actively but temporarily hides other names without notion (nested with's are even more malicious). So I _never_ use it I vote for dropping it :-) -Michael

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 12:11:24 Michael Schnell wrote: On 11/12/2013 04:45 PM, Martin Schreiber wrote: with r: rec1 do I decently hate with due to the ambiguity it imposes: it actively but temporarily hides other names without notion (nested with's are even more malicious). So I

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Ivanko B
It seems that you set enabled:= false of the widget which currently has input == The code doesn't enter here whan the issue occurs (looks for HERE below): -- procedure twidget.enabledchanged; var int1: integer; bo1: boolean; begin bo1:= isenabled; if not bo1 then

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Ivanko B
The with construction is well optimized by complilers. Also without with we'll have C-ish nightmare with long chained OOP idents. -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users,

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Michael Schnell
On 11/13/2013 12:21 PM, Martin Schreiber wrote: Never mind. with is very important in order to speed up array of record addressing and the like. I disagree. With is just a way to save some typing. speeding the runtime execution is up to the compiler optimization (it might decide to use a

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 12:26:18 Ivanko B wrote: It seems that you set enabled:= false of the widget which currently has input == The code doesn't enter here whan the issue occurs (looks for HERE below): -- procedure twidget.enabledchanged; var int1:

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 13:01:42 Michael Schnell wrote: On 11/13/2013 12:40 PM, Ivanko B wrote: The with construction is well optimized by complilers. A decent compiler can do the same optimization even without being hinted to do so by the programmer's using with Also withoutwith

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 12:54:38 Michael Schnell wrote: On 11/13/2013 12:21 PM, Martin Schreiber wrote: Never mind. with is very important in order to speed up array of record addressing and the like. I disagree. With is just a way to save some typing. Another Delphi experts saying

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Ivanko B
onclosequery does not fire if it looses input focus. == Is it possible on modal forms ? -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Michael Schnell
On 11/13/2013 02:27 PM, Martin Schreiber wrote: therefore int64: 2; is invalid, i I don't agree that this is sensible, but it's up to you. how would you define a bitpacked record filed with two bits that is intended to be handled as a signed integer ? ty tr = ??; r : tr; i: int32 r.x2

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Michael Schnell
On 11/13/2013 02:30 PM, Martin Schreiber wrote: No. For exactly that purpose we have the with statement. Haha ! intermediate variables are much more versatile than with (very useful even for other stuff than for records) and impose much less ambiguity as they only hide their own name (which

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Michael Schnell
On 11/13/2013 02:37 PM, Martin Schreiber wrote: There is no with itself in MSElang, there is 'with' ALIAS ':' REFERENCE 'do' STATEMENTS 'end' I need to take a closer look. -Michael -- DreamFactory - Open Source REST

[MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Michael Schnell
if Strings are zero based pos() will issue a 0 if he second string starts with the first one. Supposedly it will issue -1 if there is no match. While I do like this behavior, it is very incompatible with any existing Pascal dialect, where you do if pos() = 0 to check if a string is contained

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 15:09:46 Ivanko B wrote: onclosequery does not fire if it looses input focus. == Is it possible on modal forms ? I don't know. Why the question? Martin -- DreamFactory -

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 15:39:27 Michael Schnell wrote: On 11/13/2013 02:27 PM, Martin Schreiber wrote: therefore int64: 2; is invalid, i I don't agree that this is sensible, but it's up to you. how would you define a bitpacked record filed with two bits that is intended to be

Re: [MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 16:42:03 Michael Schnell wrote: if Strings are zero based pos() will issue a 0 if he second string starts with the first one. Supposedly it will issue -1 if there is no match. Probably. While I do like this behavior, it is very incompatible with any existing

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Michael Schnell
On 11/13/2013 05:19 PM, Martin Schreiber wrote: type recordty = bitpacked record x2: -2 to 1; x3: -2 to 1: 2; //same as above x4: 0 to 5: 4; //subrange in 4 bits end; While I don't like to be forced to calculate the range manually from the intended bit count, this of

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 17:29:11 Michael Schnell wrote: On 11/13/2013 05:19 PM, Martin Schreiber wrote: type recordty = bitpacked record x2: -2 to 1; x3: -2 to 1: 2; //same as above x4: 0 to 5: 4; //subrange in 4 bits end; While I don't like to be forced to

Re: [MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Ivanko B
Martin, how about public voting about MSElang features (all the proposals) on MSEGUI.ORG ? -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and

Re: [MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 19:27:53 Ivanko B wrote: Martin, how about public voting about MSElang features (all the proposals) on MSEGUI.ORG ? I don't think voting is beneficial. Discussing is more important. Martin

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Ivanko B
Too few persons involved in discussions proposals agitating taking decisions for a public project :) -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Ivanko B
s it possible on modal forms ? I don't know. Why the question? Its' impossible for a modal form to loose its focus, correct ? PS: anyway,it's starnge with the PODPISKA that the modal form appears loosing its focus on disabling its internal widgets.

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Sieghard
Hallo Michael, Du schriebst am Wed, 13 Nov 2013 12:54:38 +0100: Never mind. with is very important in order to speed up array of record addressing and the like. I disagree. With is just a way to save some typing. The Pascal with statement was introduced with the _explicit_ intention to

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Sieghard
Hallo Martin, Du schriebst am Wed, 13 Nov 2013 06:47:11 +0100: On Tuesday 12 November 2013 20:24:07 Sieghard wrote: [...] As said above, that depends on the implementation or rather the likings of the implementor. If more people than just the implementor are to use it, it just needs to

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Sieghard
Hallo Michael, Du schriebst am Wed, 13 Nov 2013 13:01:42 +0100: The with construction is well optimized by complilers. A decent compiler can do the same optimization even without being hinted to do so by the programmer's using with Yes, with enough implementation effort on the side of the

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Sieghard
Hallo Marcos, ISO extended Pascal has a feature allowing the re-export of aliased symbols from arbitrary compilation units (they're not named unit ... If I understood right, we can do the same using FPC. You can rename a class or function (using a variable that use the same signature) but

Re: [MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Sieghard
Hallo Martin, Du schriebst am Wed, 13 Nov 2013 17:23:27 +0100: On Wednesday 13 November 2013 16:42:03 Michael Schnell wrote: if Strings are zero based pos() will issue a 0 if he second string starts with the first one. Supposedly it will issue -1 if there is no match. Probably. Not

Re: [MSEide-MSEgui-talk] MSElang, compound statements

2013-11-13 Thread Marcos Douglas
On Wed, Nov 13, 2013 at 7:11 PM, Sieghard s_c_...@arcor.de wrote: Hallo Marcos, ISO extended Pascal has a feature allowing the re-export of aliased symbols from arbitrary compilation units (they're not named unit ... If I understood right, we can do the same using FPC. You can rename a

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 21:04:01 Ivanko B wrote: s it possible on modal forms ? I don't know. Why the question? Its' impossible for a modal form to loose its focus, correct ? I hope so. :-) There are several levels of modality: modallevelty = (ml_none,ml_application, //call

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 20:30:47 Ivanko B wrote: Too few persons involved in discussions proposals agitating taking decisions for a public project :) I don't understand. You mean the MSElang discussions? I do the work, I decide. If not more people are interested I can't help and I

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Ivanko B
It was because gbMonths will be disabled while a child is focused. === Another widget (dbseName) has taboder=0 (focused by default, correct ?) on this form . But gbMonths of this form also has a widget with taborder=0 (dbbeM01) on disabling which we have the unexpected

Re: [MSEide-MSEgui-talk] Unexpected firing Form.OnCloseQuery on disabling TGroupBox placed on the form

2013-11-13 Thread Martin Schreiber
On Thursday 14 November 2013 07:59:08 Ivanko B wrote: It was because gbMonths will be disabled while a child is focused. === Another widget (dbseName) has taboder=0 (focused by default, correct ?) on this form . But gbMonths of this form also has a widget with

Re: [MSEide-MSEgui-talk] MSElang, fixsize numeric base types

2013-11-13 Thread Martin Schreiber
On Wednesday 13 November 2013 17:29:11 Michael Schnell wrote: On 11/13/2013 05:19 PM, Martin Schreiber wrote: type recordty = bitpacked record x2: -2 to 1; x3: -2 to 1: 2; //same as above x4: 0 to 5: 4; //subrange in 4 bits end; While I don't like to be forced to

Re: [MSEide-MSEgui-talk] mseLang: Zero Based strings

2013-11-13 Thread Michael Schnell
On 11/13/2013 09:33 PM, Sieghard wrote: You could also decide to make pos take a return variable parameter for the position, as this would nearly always be neccessary. Its return value would then be a boolean, indicating whether the substring was found. You might provide an overloaded