Cheesed off by 32xxx

Alex Tweedly alex at tweedly.net
Sat Apr 1 18:54:24 EDT 2017


I'd create maybe 200 buttons, and change their labels, positions and 
meanings whenever the vscroll of the menu changes.

Something (very vaguely) like

> on scrollHasChanged
>
>   put the vScroll of grp "sectionMenu"  into temp
>
>   put temp div 23 into startLine
>
>   repeat with i = 1 to 200
>
>     put format("B%03i", i) into tName
>
>      set the top of button tName to startLine + 23*i
>
>     set the label of button tName to line startLine + i of gAllMyLabels
>
>      ....
>
>   end repeat
>
> end scrollHasChanged
>
-- Alex

On 01/04/2017 23:07, Richmond Mathewson via use-livecode wrote:
> What a nuisance:
>
> There I was, merrily churning through the button titles for my Unicode 
> Reference thing
> [ http://forums.livecode.com/viewtopic.php?f=26&t=29069 ] which needed 
> at least 1600 buttons
> that were 23 pixels deep layered underneath each other.
>
> What happens?
>
> At the "Magic Number" of 32xxx I get a "this is not a number" message.
>
> As a result I ended up restricted to 1400 buttons.
>
> This is very bad as the Unicode glyph tables are many, and in an ideal 
> world
> I'd like 8703 buttons. But 8703 * 23 = 200169
>
> That would involve groupig a "stack" of buttons that was 200169 pixels 
> high.
>
> Would be grateful if anyone knows a way to circumvent the limitation.
>
> Richmond.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list