Behaviour of radio group in hmg IDE

Moderator: Rathinagiri

Post Reply
tiampei
Posts: 12
Joined: Tue Jun 24, 2014 2:47 am

Behaviour of radio group in hmg IDE

Post by tiampei »

Hi,
Setting value other than 1 in object inspector will trigger the OnChange event.
What I understand is value in object inspector is intialise value of object and OnChange event will not trigger.

The sample using value 2 and the main form title will change to "OnChange event occur 1 time(s)"
ObjectInspector.jpg
ObjectInspector.jpg (69.1 KiB) Viewed 2856 times
TestOption.zip
(925.58 KiB) Downloaded 235 times
Hmg IDE version: 2011.06.24
Hmg version: 3.10
OS: Windows 8

Regards,
Kek
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Behaviour of radio group in hmg IDE

Post by Pablo César »

Hi Kek,

I was not understandig well what you are trying to tell us. But when I done some tests, I say the bug and I hope to be usefull to everyone what's goin on by based on following steps:

1. Open project, load fmg file and click on RadioGroup.
2. At Object Inspector window, you will see Value: 2
3. You can build app and will see RadioGroup starting at second item. Up to here is ok.
4. If you change value to 1 and rebuild, you will see the app starts still at second item, whi is wrong. I mean, did not changed to 1, still remain at second item.

Is it this you declared problem Kek ?

P.s. I have tested on 3.1.1, 3.3.1 and 3.0.46 HMG versions with same wrong behaviour.
I also re-edited manually the fmg file in ANSI and UNICODE modes on WINXP and with same wrong behaviour.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
tiampei
Posts: 12
Joined: Tue Jun 24, 2014 2:47 am

Re: Behaviour of radio group in hmg IDE

Post by tiampei »

Hi Pablo César,

Sorry for my bad english.
Maybe that is another problem.

I'm doubting with initialise value in the object inspector and how the event is fired.
I thought setting value 1 or 2 in the object inspector will not fired the event.

To see the behaviour, we need to change the value from 2 to 1 (in object inspector) and recompile it.
Here, I say it is behaviour because I'm not sure it is a problem or not.

For visual basic, setting any value in the object properties sheet (design mode) or load event (programming mode) will not fired OnChange event.
So, I thought the hmg behaviour will same as visual basic. My concept is, the form haven't shown so the OnChange event shall not fired.

Can anybody clarify the behaviour, thank you.

Regards,
Kek
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Behaviour of radio group in hmg IDE

Post by Pablo César »

tiampei wrote:Sorry for my bad english.
No problem Kek !
tiampei wrote:I'm doubting with initialise value in the object inspector and how the event is fired.
I thought setting value 1 or 2 in the object inspector will not fired the event.

To see the behaviour, we need to change the value from 2 to 1 (in object inspector) and recompile it.
Yes, I can confirm that is a bug in the IDE when initializes variable at RadioGroups. Even changing value thru IDE, this does not works properlly, not re-assign the internal variable into the IDE. But... if you change the value, then exit IDE confirm saving the fmg and run again the IDE and re-build... then you will see that works ok. But needs to exit IDE to re-load again for buildng. This is IDE bug.

Dear Claudio, please note this wrong behaviour at HMG IDE. I hope am been clear enough to understand it. In case not been understood, tell me I write in spanish again.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Behaviour of radio group in hmg IDE

Post by Javier Tovar »

Pablo César wrote:Yes, I can confirm that is a bug in the IDE when initializes variable at RadioGroups. Even changing value thru IDE, this does not works properlly, not re-assign the internal variable into the IDE. But... if you change the value, then exit IDE confirm saving the fmg and run again the IDE and re-build... then you will see that works ok. But needs to exit IDE to re-load again for buildng. This is IDE bug.
+1
Post Reply