Page 1 of 2

Urgent! Problems with skinbuttons (Antonio)

PostPosted: Fri Oct 01, 2010 11:17 am
by byte-one
Antonio, when i use skinbuttons in some cases (slower XP machines?) and in the valid-clausula from the dialog are msgyesno("end"), the msgyesno-function are shown twice when the dialog end.

Re: Problems with skinbuttons (Antonio)

PostPosted: Fri Oct 01, 2010 8:49 pm
by Richard Chidiak
Gunther

I have noticed and told Antonio that Skinbuttons in some cases are firing twice the actions, as far as i am concerned it is not useable "like it is" now, can be dangerous.
Example deleting a record in a browse can happen twice....if you have a confirm message for deleting, the message is shown twice and another record is deleted.

Unfortunately i was not able to reproduce the error in a small sample, i can reproduce it at any moment in my application...

If you can provide a small sample that shows the error, i am sure this will help Antonio fixing this odd problem

Hth

Richard

Re: Problems with skinbuttons (Antonio)

PostPosted: Mon Oct 04, 2010 6:46 pm
by Ruben Fernandez
Gunther, Richard: Sorry for my bad English, try to do a sysrefresh() or a SysWait(.1), in the button action as the first action.
I don't know why, but sometimes help me.

I believe that the best solution is rbbuton.

Best regards

Ruben Fernandez

Re: Problems with skinbuttons (Antonio)

PostPosted: Mon Oct 11, 2010 3:27 pm
by byte-one
The action of button fires sometime 2x!

Antonio, now i can you send the point of error seen on the errorlog:
.\source\internal\SKINS.PRG => FWSKINBTNLBUTTONDOWN(223)
The error are only shown on some (slower?) XP machines!?
If you have a solution, please send me a obj to test! I can reproduce the error in some cases.

Re: Problems with skinbuttons (Antonio)

PostPosted: Mon Oct 11, 2010 3:43 pm
by Richard Chidiak
Gunther

I have the error on very fast machines also, on windows 7 (64 bits included)

It is not related to slow machines, in some cases the action is fired twice , I am not using it at the moment

Richard

Re: Problems with skinbuttons (Antonio)

PostPosted: Mon Oct 11, 2010 10:27 pm
by byte-one
Richard, i made my apps on VISTA. No Problems!
Do you use MDI-apps? The errors i only see on MDI.

Re: Problems with skinbuttons (Antonio)

PostPosted: Tue Oct 12, 2010 7:57 am
by Richard Chidiak
Gunther

I can reproduce it (in my app) on 7, vista and xp tested on all 3 of them

I use sdi mainly, i have the problem on xbrowse mainly but on some browses (not all) which make it difficult to isolate

At the moment , i deactivated it from my app

Richard

Re: Problems with skinbuttons (Antonio)

PostPosted: Wed Oct 13, 2010 1:01 pm
by byte-one
Richard, you are right! All OS and also non-MDI apps are shown this error!
Over all, this is a very good graphic solution for apps!
Antonio, any solution from your side? Can you send me the source to study?

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Wed Oct 13, 2010 4:41 pm
by Antonio Linares
Günther,

I send you its source code for your private review, thanks :-)

We need an example to trap such error.

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Wed Oct 13, 2010 5:05 pm
by Richard Chidiak
Gunther

If you need help, let me know

I can also test and take a look at the code if needed

Richard

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Wed Oct 13, 2010 7:24 pm
by Antonio Linares
Richard,

We can also send you its source code if you want to review it

We plan to make it public once it is fine :-)

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Wed Oct 13, 2010 8:57 pm
by Richard Chidiak
Antonio

Can you please send them in another extension than prg ?

My outlook removes prg extensions

Thanks

Richard

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Thu Oct 14, 2010 12:05 am
by Antonio Linares
Already sent again :-)

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Thu Oct 14, 2010 9:28 am
by byte-one
Antonio, i have sent to you a new skins.prg. It seems functioning!
Send it also Richard to test!

Re: Urgent! Problems with skinbuttons (Antonio)

PostPosted: Thu Oct 14, 2010 11:50 am
by Antonio Linares
Günther,

many thanks! :-)

Lets wait for Richard feedback :-)