Thanks for the input. I thought I had done everything until I finally realised 
that the file dialog that comes up had a button in the lower left corner that 
said: “Show options”. =-o So then I could select “LiveCode Script” as format. 
And tada. Well, LiveCode crashed…
…but still. Can now work from that!

Thanks anyway!

:-Håkan

> On 21 Apr 2023, at 14:02, matthias rebbe via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hakan,
> 
> as far as I know
> 
> you have to create a script only stack and name it for example 
> se.eformedia.widget.MyButton
> 
> Then add a openControl handler to the script and put the part of your script 
> into it that creates the internal widget controls.
> 
> Create a resizeControl handler in which you put any code that is responsible 
> for resizing the controls.
> 
> Use getProp and SetProp handlers to add properties for the control
> As long as the stack is in memory you do not need to use the extension 
> builder to test the script widget. 
> You could just use the message box and execute the following:
> 
> create widget as "se.eformedia.widget.MyButton"      
> 
> use here the name of the stack you used at the beginning.
> 
> 
> To build the widget using  the extension builder you'll need to add some more 
> to the script. You could use the following sample stack as an example
> https://livecode.com/documents/sample-script-widget.zip
> The link to that stack was posted in the Blog here 
> https://livecode.com/livecode-10-dp-5-smaller-faster-richer/
> 
> 
> 
> My problem currently is, that LC crashes to Desktop right away when I try to 
> build the widget using the extension builder. 
> In my opinion this should not happen. There should be some routine that 
> prevents LC from crashing when there is a problem with building the script 
> widget.
> But it's a DP so let's see.
> 
> 
> Regards,
> Matthias
> 
> 
> 
> 
> 
>> Am 21.04.2023 um 10:49 schrieb Håkan Liljegren via use-livecode 
>> <use-livecode@lists.runrev.com>:
>> 
>> This caught my eye as I have several “controls” already that could be turned 
>> into "script widgets”. But after “scriptifying” a “group widget” how can I 
>> turn it into a script widget. I can’t add the file in the extension builder 
>> so how can I create the needed .lce file? Or is this a “not implemented yet” 
>> feature?
>> 
>> :-Håkan
>> 
>>> On 18 Apr 2023, at 19:18, panagiotis merakos via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> - A prototype implementation of the 'script widgets' feature has
>>> been included
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to