Search found 609 matches

by jerome
Wed Dec 16, 2015 9:57 am
Forum: eC Language
Topic: Numeric check
Replies: 7
Views: 48631

Re: Numeric check

Hi shakeshuck, There are some options here. eC being a C super-set, anything C will work (e.g. strtod(), strtol()). The current eC way is probably calling OnGetDataFromString() on your numeric type: float x; if(a.OnGetDataFromString(string)) PrintLn("Successfully parsed float value: ", x);...
by jerome
Tue Dec 15, 2015 1:12 am
Forum: GUI Toolkit & 2D Graphics
Topic: Confused with code behaviour
Replies: 6
Views: 61245

Re: Confused with code behaviour

Hi shakeshuck, Holding the key down will generate additional OnKeyHit events. The first key down generates both an OnKeyDown, and if the input is allowed to continue (return true), an OnKeyHit. Try overriding OnKeyHit as well and returning false? Buttons by default have up/down selecting the next/pr...
by jerome
Mon Dec 14, 2015 12:46 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Confused with code behaviour
Replies: 6
Views: 61245

Re: Confused with code behaviour

Ah, the quirks of different languages... Yes ;) You have to be careful to always have a 'break;' after each case in most C derived languages, unless you really intend for the code of the next case statement to be executed as well. I was wondering if there was a tidier way of doing it. Note that the...
by jerome
Sun Dec 13, 2015 9:12 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Confused with code behaviour
Replies: 6
Views: 61245

Re: Confused with code behaviour

Hi shakeshuck, I'm not exactly sure of the behavior you're looking for, but I imagine the biggest problem in the code you pasted is the fact that you're missing 'break' statements for the higher level case statements of the switch(upDown) in selectionMovement(). void selectionMovement(int row, char ...
by jerome
Sat Dec 12, 2015 12:28 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Control layer
Replies: 8
Views: 62541

Re: Control layer

Please find an update to the 0.44.12 32-bit IDE and Documentor with a couple fixes, including this control properties fix at this address:

http://ecere.com/tmp/update.7z
by jerome
Fri Dec 11, 2015 8:03 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Control layer
Replies: 8
Views: 62541

Re: Control layer

This problem has nothing to do with the stayOnTop property. This is the case where the IDE should leave alone those properties set using variables alone when editing the code. I appaprently broke this last year when adding support for internationalizationable strings. I committed a fix here: https:/...
by jerome
Fri Dec 11, 2015 3:25 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Control layer
Replies: 8
Views: 62541

Re: Control layer

Did you pick up on what I said regarding the property box changing a control's position incorrectly? I tried testing setting stayOnTop = true, but although it did not solve the drawing bug (the checkbox was always on top anyways), I did not encounter that problem. Would you be able to describe step...
by jerome
Fri Dec 11, 2015 2:50 pm
Forum: GUI Toolkit & 2D Graphics
Topic: Control layer
Replies: 8
Views: 62541

Re: Control layer

This seems like an (interesting) drawing bug only. The checkbox always remains on top but somehow the ListBox is drawing itself and the checkbox is not being redrawn as it should... You can set 'fullRender = true' on the parent form to work around this issue (This may also improve performance anyway...
by jerome
Fri Dec 11, 2015 2:36 pm
Forum: GUI Toolkit & 2D Graphics
Topic: TAB order
Replies: 4
Views: 50320

Re: TAB order

Hi shakeshuck, This should work as you expect. Did you set 'tabCycle' to true on both levels of parent windows? Note you can use the plain Window or you can also use the Label class with 'isGroupBox = true' for this purpose. (Also Stacker may be useful to automatically stack things without having to...
by jerome
Thu Dec 10, 2015 1:33 am
Forum: General Help
Topic: Fun with the IDE
Replies: 6
Views: 33306

Re: Fun with the IDE

I'm pleased to announce this RGB bug should be resolved in today's release, 0.44.12.

Grab it at http://ecere.org/install
Or https://launchpad.net/ecere/trunk/0.44. ... -win32.exe
Or https://github.com/ecere/ecere-sdk/

Cheers,

Jerome