PDA

View Full Version : Control set text



DirectuX
30-12-2019, 11:58
Hi,

I can't have some demo working properly. I think it's related with CONTROL SET TEXT.

Can you confirm if it works for you or not ?

within afflicted samples :


TextBox2.tBasic from thinBasic\SampleScripts\UI\TextBox
cbCalculator.tBasic from thinBasic\SampleScripts\UI\Calculator
Super Function Plotter from thinbasic.com (https://www.thinbasic.com/community/showthread.php?10379-Super-Function-Plotter-Inspired-from-pages-41-64)
or even particle_experiment.tbasic from TBGL_BonusPack_1_8_0_0\SpecialEffects\ParticleDesigner

ErosOlmi
30-12-2019, 12:02
I think thinBasic 1.11.1 introduced a bug on that area.
Can you try this thinBasic 1.11.2 version I was working on: https://www.thinbasic.biz/projects/thinbasic/thinBasic_1.11.2.0.zip

Let me know.

Thanks a lot
Eros

DirectuX
30-12-2019, 12:25
I think thinBasic 1.11.1 introduced a bug on that area.
Can you try this thinBasic 1.11.2 version I was working on: https://www.thinbasic.biz/projects/thinbasic/thinBasic_1.11.2.0.zip

Let me know.

Thanks a lot
Eros

Hi Eros,

For the calculator : 1 click leads to many random numbers on the textbox
For the Super Function Plotter : seems ok ( quick test only )
For the ParticleDesigner : no reaction from UI
For the TextBox2 : seems ok.


but maybe it's a button issue instead ?

PS: welcome back :D

ErosOlmi
30-12-2019, 12:58
Thanks.
Will check this evening.

PS: not really back 100% but I will try ;)

I've so many posts to read :D

ErosOlmi
30-12-2019, 18:05
Calculator examples need to add a check otherwise too many events will be fired for buttons.

For both examples ... Just between

CASE %WM_COMMAND

and


SELECT CASE cbctl
CASE %CtrlN00, %CtrlN01, %CtrlN02, %CtrlN03, %CtrlN04, %CtrlN05, %CtrlN06, %CtrlN07, %CtrlN08, %CtrlN09

add


if CBCTLMSG = %BN_CLICKED then

and after


END SELECT

close with


End If