Page 1 of 1

Systemrequest

Posted: Sat Feb 19, 2011 8:59 pm
by ilbarbax
Strange behaviour of systemrequest:
I'm writing an application with multiple displays. I have display 1 active and I run a system request. My request goes always on the background of the active display! Then is not visible. I tryed different solutions having always the same behaviour.
Then I added an icon to my requester (question mark) without other changes to the code and magically now my requester is alway on the foreground.

Re: Systemrequest

Posted: Mon Feb 21, 2011 10:07 pm
by airsoftsoftwair
On what platform do you get this behaviour?

Re: Systemrequest

Posted: Tue Feb 22, 2011 1:38 pm
by ilbarbax
Andreas wrote:On what platform do you get this behaviour?
Os4.1 on sam 440ep

Re: Systemrequest

Posted: Tue Feb 22, 2011 2:21 pm
by airsoftsoftwair
Ok, can you provide a small example code snippet that shows the behaviour?

Re: Systemrequest

Posted: Wed Mar 02, 2011 9:10 pm
by ilbarbax
@Andreas

Small code is like this one:

@DISPLAY 1, {X=30, Width = 800, Height = 600, Color = #GRAY, Title=" Editor" }
Box(10,50,500,350,#WHITE,3)
CreateDisplay (2, {X=850, Width = 300, Height = 600, Color = #GRAY, Title ="Config"})
OpenDisplay (2)
SelectDisplay(2)
Nprint("aaaaa")
bb="1|2|3|4"
cc=SystemRequest("Bar Height","More values were found; Select one:",bb)
; cc=SystemRequest("Bar Height","More values were found; Select one:",bb,#REQICON_QUESTION)
SelectDisplay(1)
ActivateDisplay(1)
TextOut(50, 530,"Bbbbb "..cc )

Repeat
WaitEvent
Forever



The problem is that the small code works fine. :shock: :shock: Then I think can be the interation between some other command in the code.

May I e-mail you the whole code? if you want send me an e-mail at sb5@libero.it

ciao

Re: Systemrequest

Posted: Sat Mar 05, 2011 12:34 am
by airsoftsoftwair
Sorry, I don't have the time to read through long chunks of code. You must isolate it in a very small example...

By the way, if it's working in this small example, then it's likely that the bug is in your script... make sure that the display where you want the requester to appear is active!