Standalone bug
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Standalone bug
Hi,
I have a graphic bug with my standalone, in my .rev it works correctlty but when i want to use or create graphics the standalone doesnt work, the graphic is invisible.
Thanks
Tal
I have a graphic bug with my standalone, in my .rev it works correctlty but when i want to use or create graphics the standalone doesnt work, the graphic is invisible.
Thanks
Tal
Re: Standalone bug
Hi Tal,
we might need a TAD more information, I'm afraid
How do you create a graphic, what kind of graphic, what scripts are involved etc...
Best
Klaus
we might need a TAD more information, I'm afraid

How do you create a graphic, what kind of graphic, what scripts are involved etc...
Best
Klaus
Re: Standalone bug
Hi,
I *guess* that the picture isn't included in the standalone. To include pictures, use the Import As Control feature in the File menu. It would be helpful to know how you want to use the picture.
Best,
Mark
I *guess* that the picture isn't included in the standalone. To include pictures, use the Import As Control feature in the File menu. It would be helpful to know how you want to use the picture.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Standalone bug
Hi,
I uploaded a .rev, you ca try it, it works in the .rev but if you make a standalone, it doesn't work anymore, thank you
Tal
I uploaded a .rev, you ca try it, it works in the .rev but if you make a standalone, it doesn't work anymore, thank you
Tal
- Attachments
-
- Test.zip
- (796 Bytes) Downloaded 360 times
Re: Standalone bug
Tal,
Your stack does nothing, besides creating an empty graphic object. What exactly did you have in mind?
Best,
Mark
Your stack does nothing, besides creating an empty graphic object. What exactly did you have in mind?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Standalone bug
I know, my stack only creates a graphic clicking on the card, and the bug is that if you make a standalone, this thing doesn't work and I don't know why.
Try to make a standalone with my .rev, you will see the difference.
Tal
Try to make a standalone with my .rev, you will see the difference.
Tal
Re: Standalone bug
Tal,
Only the button contains a script that can make a graphic. The card script has no effect, after it has run once. In a standalone, the size of the templateGraphic is undefined. Probably, if you set the width and height of the templateGraphic in the preOpenStack handler, it will work fine. You can move the lines that set the properties of the templateGraphic from the mouseDown handler to the same preOpenStack handler. You can delete the repeat loop and you don't need the mouseDown handler.
Best regards,
Mark
Only the button contains a script that can make a graphic. The card script has no effect, after it has run once. In a standalone, the size of the templateGraphic is undefined. Probably, if you set the width and height of the templateGraphic in the preOpenStack handler, it will work fine. You can move the lines that set the properties of the templateGraphic from the mouseDown handler to the same preOpenStack handler. You can delete the repeat loop and you don't need the mouseDown handler.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Standalone bug
It works better with your solution, but the bug in the standalone remains, it is difficult to see why...
Tal
Tal
Re: Standalone bug
Tal,
I don't see any "bug" when I make a standalone of your stack. In what way does it work better and what do you still want to change?
Best,
Mark
I don't see any "bug" when I make a standalone of your stack. In what way does it work better and what do you still want to change?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Standalone bug
I cant upload a standalone, the maximum allowed size is 256 kib, in my standalone my graphic is avorted ( the style is "oval")
You can see this in the picture uploaded.
Tal
You can see this in the picture uploaded.
Tal
- Attachments
-
- Test.zip
- (8.09 KiB) Downloaded 375 times
Re: Standalone bug
Hi Tal,
I see it. What exactly do you want instead of the tiny oval?
Mark
I see it. What exactly do you want instead of the tiny oval?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Standalone bug
Hi Tal,
your image shows EXACTLY what I would exspect your script(s) to do!
So your graphic is NOT invisible in your standalone as you stated before!
When you only click with the graphics tool (instead of click-drag-release),
then you get this tiny graphic. So this is "normal" behaviour.
So please tell us what you exspect to happen!
Best
Klaus
P.S.
What the hell means "avorted"?
Coud not find this word (to avort?) in the whole internet.
your image shows EXACTLY what I would exspect your script(s) to do!
So your graphic is NOT invisible in your standalone as you stated before!
When you only click with the graphics tool (instead of click-drag-release),
then you get this tiny graphic. So this is "normal" behaviour.
So please tell us what you exspect to happen!
Best
Klaus
P.S.
What the hell means "avorted"?
Coud not find this word (to avort?) in the whole internet.
Re: Standalone bug
Compare the .rev and the standalone, in the .rev the oval is not tiny and i can make an oval with different sizes.
In the standalone, the oval is created but i cant change its size, it stills small ( so avorted)
Tal
In the standalone, the oval is created but i cant change its size, it stills small ( so avorted)
Tal
Re: Standalone bug
Tal,
It would be easier if you provided all details right-away. I guess that you have tried to set the width and height of the templateGraphic and that this didn't work for you. Have you also deleted the card script and changed the button script as I recommended?
Your button script should now look as following:
If the width and height are not set, you might add the following to the card script:
Please, let me know whether this works for you. If it doesn't, could you please tell what exactly is going wrong and what you expect to happen instead?
Are you aware of the possibility to drag instead of click? If I drag in the standalone, a new graphic is created and I can determine the size of the graphic by dragging further away from or moving back to the starting point.
Best regards,
Mark
It would be easier if you provided all details right-away. I guess that you have tried to set the width and height of the templateGraphic and that this didn't work for you. Have you also deleted the card script and changed the button script as I recommended?
Your button script should now look as following:
Code: Select all
on mouseUp
set the opaque of the templateGraphic to true
set the style of the templateGraphic to "rectangle"
set the blendlevel of the templateGraphic to 66
set the width of the templateGraphic to 100
set the height of the templateGraphic to 100
set the style of the templateGraphic to "oval"
choose graphic tool
end mouseUp
Code: Select all
on newGraphic
if word 1 of the target is "graphic" then
if the style of the target is "oval" then
set the width of the target to 50
set the height of the target to 50
end if
end if
end newGraphic
Are you aware of the possibility to drag instead of click? If I drag in the standalone, a new graphic is created and I can determine the size of the graphic by dragging further away from or moving back to the starting point.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode