Serendipity Editors For Images & Icons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Serendipity Editors For Images & Icons
My gift to the LiveCode community...
..with special thanks to members of the Talking LiveCode Forum.
Enjoy!
..with special thanks to members of the Talking LiveCode Forum.
Enjoy!
- Attachments
-
- Serendipity Editors.zip
- (31.82 KiB) Downloaded 211 times
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
"agai"
You need to set fields so that they expand and contract to accommodate
the fonts on differing operating systems.
Re: Serendipity Editors Fot Images & Icons
The About message in Serendipity Editors requests users contact me privately with questions, bug reports, and comments. In retrospect, it seems to me that questions, etc. are best posted to this entry in Built With LiveCode, where I will post fixes and replies.
Here are the first post-release issues:
1. The Export Image button does not mask the image when selected with the right mouse button. Fix-- Line 1 of the button's mouseDown handler is missing "e" as the final character. It should read,
2. LiveCode's paint tools modify image "New Image Frame" if it is not totally covered by the image being edited. Fix-- Add this line at the end of the Image Editor card script's fitStackToImage handler.
(resize/reposition "New Image Frame" before exporting a snapshot encompassing multiple images.)
3. Handlers to enable/disable certain buttons in groups Page Selector, Scan Image Pulldown, and Export Image Pulldown were disabling the groups but enabling the buttons. Fixes--
Handler resetButtons of group Image Editor Controls
Handler disableButtons of the Image Editor card script
Handler enableButtons of the Image Editor card script
Here are the first post-release issues:
1. The Export Image button does not mask the image when selected with the right mouse button. Fix-- Line 1 of the button's mouseDown handler is missing "e" as the final character. It should read,
Code: Select all
put mouse(3) into mouse3State
Code: Select all
set the rectangle of image "New Image Frame" to the rectangle of image id imageIdNumber
(resize/reposition "New Image Frame" before exporting a snapshot encompassing multiple images.)
3. Handlers to enable/disable certain buttons in groups Page Selector, Scan Image Pulldown, and Export Image Pulldown were disabling the groups but enabling the buttons. Fixes--
Handler resetButtons of group Image Editor Controls
Code: Select all
set the disabled of button "Scan Image" of group "Scan Image Pulldown" to disableButtons
set the disabled of button "Export Image" of group "Export Image Pulldown" to disableButtons
Code: Select all
set the disabled of button "Scan Image" of group "Scan Image Pulldown" to false
set the disabled of button "Export Image" of group "Export Image Pulldown" to false
set the disabled of button "Screen Selector" of group "Page Selector" to false
Handler enableButtons of the Image Editor card script
Code: Select all
set the disabled of button "Scan Image" of group "Scan Image Pulldown" to true
set the disabled of button "Export Image" of group "Export Image Pulldown" to true
set the disabled of button "Screen Selector" of group "Page Selector" to true
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
My apologies: knee-jerk there.The About message in Serendipity Editors requests users contact me privately with questions, bug reports, and comments.
Re: Serendipity Editors Fot Images & Icons
Oh the joys of multiplatform distribution! Thanks for showing me what I can't see without a MacOS box.richmond62 wrote: ↑Sun Oct 03, 2021 6:22 pmYou need to set fields so that they expand and contract to accommodate
the fonts on differing operating systems.
Put these lines at the end of the Stack Script's preOpenStack handler:
Code: Select all
put the top of field "Opening Prompt" into savedTop
get the formattedHeight of field "Opening Prompt"
set the height of field "Opening Prompt" to it
set the top of field "Opening Prompt" to savedTop
set the top of button "Opening Prompt Display" to (savedTop+it+8)
My main concern is the dark background in your screen shot. Here is how the tab control presents itself on Win32:
As you see, the color of the tab is the color of the card background ("244,244,244", the Image Editor's mask color). It appears that I will have to create a color overlay on tab controls on MacOS.
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
LiveCode 8.1.10, macOS 10.7.5
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
-
- Attachments
-
- Serendipity Editors.livecode.zip
- My hacked stack.
- (33.09 KiB) Downloaded 190 times
Re: Serendipity Editors Fot Images & Icons
Serendipity Editors Rev 1 incorporates the bug fixes I posted previously, plus my attempt to deal with the differences between tab controls on Win32 and MacOS. I won't know how well my work-arounds worked until someone with a MacOS box tries it.
If nothing else, this makes it clear to me that anyone planning to deploy LiveCode apps on both platforms really must have access to both platforms or a working relationship with someone who will be their eyes on the platform they lack.
I'm pretty sure the color mask will work; but I don't know if the fields, "Mac Title 3" & "Mac Title 4" are positioned correctly.
If nothing else, this makes it clear to me that anyone planning to deploy LiveCode apps on both platforms really must have access to both platforms or a working relationship with someone who will be their eyes on the platform they lack.
I'm pretty sure the color mask will work; but I don't know if the fields, "Mac Title 3" & "Mac Title 4" are positioned correctly.
- Attachments
-
- Serendipity Editors Rev 1.zip
- (32.18 KiB) Downloaded 206 times
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
macOS 10.7.5
This looks a bit odd:
-
This looks a bit odd:
-
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
I just deleted the fields "Mac Title 3" and "Mac Title 4" as they served no obvious purpose:
- -
I wonder what made you think they were necessary.
- -
I wonder what made you think they were necessary.
Last edited by richmond62 on Thu Oct 07, 2021 11:22 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
Someone did not listen to "Uncle Richmond":
-
-
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
Changed this value from 7 seconds to 15 as I am a slow reader:
-
-
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Serendipity Editors Fot Images & Icons
Talk about "relaxing" during one's lunch break:
- Attachments
-
- Serendipity Editors RM.livecode.zip
- More Hack Attack.
- (33.56 KiB) Downloaded 199 times
Re: Serendipity Editors Fot Images & Icons
Hi Richmond,richmond62 wrote: ↑Thu Oct 07, 2021 11:08 amI just deleted the fields "Mac Title 3" and "Mac Title 4" as they served no obvious purpose:
-
Screen Shot 2021-10-07 at 1.07.40 PM.png
-
I wonder what made you think they were necessary.
Thanks for being my eyes on MacOS.
This was an error on my part. I saw the current tab name missing in the image you posted on Oct. 3, and I didn't notice it was corrected in your Oct. 5 images until after I posted Rev 1. Did you make a change or did I fix that in between? I will look into it today.
You were right to delete Mac Titles 3 & 4.
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Re: Serendipity Editors Fot Images & Icons
I hate to tell you this, but replacing my code with your formattedWidth statement does not render correctly on Windows. If you move the button in the Opening Prompt group so it is further down from the prompt field, it may fail on MacOS also. The border you see when the opening prompt is displayed is the border of the group, not the field. Thus my fix addresses the issue of different font sizes by setting the position of the the Opening Prompt Display button a fixed number of bytes below the formattedHeight of the field.richmond62 wrote: ↑Tue Oct 05, 2021 8:58 amScreen Shot 2021-10-05 at 10.54.52 AM.png
-
Screen Shot 2021-10-05 at 10.55.54 AM.png
-
LiveCode 8.1.10, macOS 10.7.5
Cheers1
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.