Search found 350 matches

by bwmilby
Mon Nov 23, 2020 12:36 am
Forum: Engine Contributors
Topic: gyp debugging help?
Replies: 2
Views: 620

Re: gyp debugging help?

It is part of the build system to actually compile the project (LC engine).
by bwmilby
Fri Oct 30, 2020 3:43 am
Forum: Software Engineering
Topic: if else vs switch
Replies: 10
Views: 1737

Re: if else vs switch

There is some code in use for LCFM that will eventually make it over to the main LC product that will improve switch performance in some cases even more. Probably wouldn’t make a difference unless you had a large number of options to check in the switch though. With that in mind, it probably would b...
by bwmilby
Thu Oct 29, 2020 2:14 pm
Forum: iOS Deployment
Topic: Suddenly resizing for a different size device
Replies: 17
Views: 1216

Re: Suddenly resizing for a different size device

iOS will automatically scale an app to fit the screen if designed for an older device. This comes from the days of the transition from 3GS to the 4 and the 4 to the 5. The size that the app is designed for used to be taken from the splash images. If you didn’t provide a splash for a certain size, th...
by bwmilby
Thu Oct 29, 2020 4:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: RevProfile of segment widget
Replies: 4
Views: 430

Re: RevProfile of segment widget

I will need to look at the code, but I will say that it does seem like an update will be needed for profiles to properly support widgets.
by bwmilby
Wed Oct 28, 2020 12:57 am
Forum: iOS Deployment
Topic: Suddenly resizing for a different size device
Replies: 17
Views: 1216

Re: Suddenly resizing for a different size device

Do you have all of the launch/splash screen images populated? In 9.0 that was necessary. Your LC app would not see the actual rect of the device unless a corresponding image was provided. The latest versions use a different method for the splash.
by bwmilby
Tue Oct 20, 2020 1:34 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Same card for two size of controls: phone or tablet
Replies: 7
Views: 479

Re: Same card for two size of controls: phone or tablet

I’d vote for using the resizeStack handler to do what you want and dynamically size/position the controls. This allows you to have the controls react to the different variations of device sizes. Just like CSS, you would use a metric to switch between the two methods. If you want everything to be sta...
by bwmilby
Sat Oct 10, 2020 10:04 pm
Forum: Off-Topic
Topic: Spelling mistakes
Replies: 34
Views: 3851

Re: Spelling mistakes

I would use a desktop Git client and do this as a single PR. You could do a commit for each document fixed or even group it by word (if in multiple places). I did a word or two like this before.
by bwmilby
Thu Oct 08, 2020 12:39 am
Forum: Community Projects
Topic: Livecode syntax highlighting in VSCode
Replies: 9
Views: 1094

Re: Livecode syntax highlighting in VSCode

One good thing about ScriptTracker is that it doesn’t need the editor to send anything to the IDE. It works by watching the file system to detect changes, so any editor will do. I currently use Atom to edit code outside the IDE since it also does linting. There is a new standard out there for lintin...
by bwmilby
Thu Oct 01, 2020 1:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

Take a look at this thread: http://forums.livecode.com/viewtopic.php?f=10&t=30411&hilit=svgicontool The SvgIconTool isn't exactly what you are asking for, but it does pull the icons from the current family and display them in a grid format. I'm pretty familiar with the Icon Family code since I submi...
by bwmilby
Wed Sep 30, 2020 3:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

In the “My Livecode/Extensions” folder is where you find the installed files. The actual .lcb file is located in the extension folder. It is quite simple - all of the hard work is done by the compile code.
by bwmilby
Wed Sep 30, 2020 1:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

You can just set the height/width of the image. If you want to preserve the aspect ratio, you will need to do that manually as the image will scale in both directions to fill the rect.
by bwmilby
Tue Sep 29, 2020 8:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

bansalrehana wrote:
Tue Sep 29, 2020 8:28 pm
I don't suppose there is a way one can use an SVG widget as an icon for a button is there?
See the icondrawing library that I posted above. That will allow you to convert an SVG icon into the drawing format that can be set on an image.
by bwmilby
Thu Sep 24, 2020 2:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

Here is a tiny LCB library that will allow you to easily convert icons to drawings. It adds several handlers: generateXmlForSvgPath - same code as posted earlier with a different name drawingSvgCompilePath - takes a path and generates the drawing drawingSvgCompileIcon - takes an icon name (from the ...
by bwmilby
Wed Sep 23, 2020 2:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 2621

Re: Skin a control with SVG Widget in Datagrid

yes, that was it, but also wishful thinking of me :-), since drawingSvgCompile(an SVG FILE) requires an external SVG FILE! Klaus, There is canvasComputeBoundingBoxOfPath in a library on GitHub (canvas.lcb) that isn't currently in the distribution. I think it would be pretty easy to add another hand...
by bwmilby
Fri Sep 18, 2020 1:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Equivalent of classes in LiveCode
Replies: 142
Views: 14664

Re: Equivalent of classes in LiveCode

ScriptOnly stacks are the way to go for shared code. Much of the IDE is implemented that way. In your project you will just need to be sure are all referenced in the Stack files tab of the stack properties. Having many files open is not an issue for LC but many projects can be self contained in a si...

Go to advanced search