Search found 50 matches

by redfield
Tue Oct 15, 2019 9:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 49
Views: 1042

Mark menu item as checked

Hey Experts, I have created a menu with the menu builder and in the builder noticed an option to mark an item as checked. When I select it, a !c appears in front of the item and in the application the item appears as checked. But I don't want it permanently checked but only when the item has been cl...
by redfield
Sun Oct 13, 2019 10:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Encrypt / Decrypt
Replies: 7
Views: 285

Re: [SOLVED] Encrypt / Decrypt

Finally I get to provide a feedback. It's working now, but unfortunately I don't exactly know what was wrong. I started with "the result", it was empty, so then I tried the custom property solution, but it still didn't work. Then I downloaded the SPY.livecode stack and it worked. The code seemed ide...
by redfield
Wed Oct 02, 2019 9:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Encrypt / Decrypt
Replies: 7
Views: 285

[SOLVED] Encrypt / Decrypt

Hey guys, I would like to store some passwords in a database and for that encrypt them first. I think it would be better (-> safer) to store only their hashes, but the passwords shall later be used, without having to ask the user for them. So I think I need to go with encrypt/decrypt. Therefore I am...
by redfield
Sun Sep 29, 2019 7:58 pm
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Re: Path to database

Good point - should be even obvious for a beginner like me :|
by redfield
Sun Sep 29, 2019 6:30 pm
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Re: Path to database

Well through this script on openStack put specialfolderpath("home") & "/newfolder" into targetFolder if there is not a folder targetFolder then create folder specialfolderpath("home") & "/newfolder" end if put specialfolderpath("resources") & "/db_test" into tSourceFile put specialfolderpath("home")...
by redfield
Sun Sep 29, 2019 6:16 pm
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Re: Path to database

...if you add your database to your standalone via the "Copy files" tab in the "Standalone Applicartion Settings" , then you will find it in your runtime in -> specialfolderpath("resources") Did you do this? Nope - never paid attention to the 'Copy files' setting up to now :oops: . I thought the da...
by redfield
Sun Sep 29, 2019 3:42 pm
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Re: Path to database

Thanks bogs. 25 1.) the db isn't created yet or isn't at the location of the path false 25 2.) the db is at the location of the path, but is empty true 25 3.) the db is at the location and has information already false :D 2.) The only way I see this happen is if *1.) is true, and there was no code t...
by redfield
Sun Sep 29, 2019 10:02 am
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Re: Path to database

Thanks all, I played with Klaus's suggestion and got it working now more or less. I'm on Linux and seemingly can only use the 'home' directory with specialFolderPath(). My script now looks like this: on openStack put specialfolderpath("home") & "/newfolder" into targetFolder if there is not a folder...
by redfield
Mon Sep 23, 2019 8:21 pm
Forum: Databases
Topic: Path to database
Replies: 18
Views: 778

Path to database

Hi guys, I am creating a little app that uses an SQLite database (first time). It works fine in the LC environment but I don't understand how to define the path to the database so that it's found in the standalone. For developing purposes I put the database in the same folder as the LC Stack, so I j...
by redfield
Mon Jul 29, 2019 8:22 pm
Forum: Windows
Topic: [SOLVED] Make the cursor move to next field ('select before text' not always working)
Replies: 11
Views: 1451

Re: Make the cursor move to next field ('select before text' not always working)

In fact that works like a charme! The code is now:

Code: Select all

on textChanged
   if length(me) > 1 then
      select text of fld 2
   end if
end textChanged
Cursor is finally responding as it should to my racy typing skills, on both, Linux and Windows :D
by redfield
Sun Jul 28, 2019 7:33 pm
Forum: Windows
Topic: [SOLVED] Make the cursor move to next field ('select before text' not always working)
Replies: 11
Views: 1451

Re: Make the cursor move to next field ('select before text' not always working)

Have tried that too now, but unfortunately it doesn't change anything. The weird 'don't-type-too-fast' behaviour remains (on Windows). :(
by redfield
Thu Jul 25, 2019 1:26 pm
Forum: Windows
Topic: [SOLVED] Make the cursor move to next field ('select before text' not always working)
Replies: 11
Views: 1451

Re: Make the cursor move to next field ('select before text' not always working)

Hi -hh, yes this code works fine (on Linux and Windows): -- script of fld 1 on keyDown k if length(me) > 1 then select text of fld 2 -- put k into fld 2 -- optional else pass keyDown end keyDown Only that it's not exactly what I want. After having entered two digits, the user has to hit a key one mo...
by redfield
Wed Jul 24, 2019 8:25 pm
Forum: Windows
Topic: [SOLVED] Make the cursor move to next field ('select before text' not always working)
Replies: 11
Views: 1451

Re: Make the cursor move to next field ('select before text' not always working)

So I have tried all suggested scripts, but nothing changes. My original script is actually sufficient and does - on Linux - what I want it to do: skip the cursor to field 2 after entering two digits in field 1. On Windows this will only work if the two digits are not entered 'too fast'. Strangely th...
by redfield
Mon Jul 01, 2019 9:05 pm
Forum: Linux
Topic: Ubuntu 18 and HiDPI
Replies: 27
Views: 2740

Re: Ubuntu 18 and HiDPI

Cyberqat wrote:
Sat May 18, 2019 6:57 am
AND Livecode needs to be fixed on HiDPI linux.
Yes please. I have the same issue on Arch.
by redfield
Sun Jun 30, 2019 9:04 pm
Forum: Windows
Topic: [SOLVED] Make the cursor move to next field ('select before text' not always working)
Replies: 11
Views: 1451

Re: Make the cursor move to next field ('select before text' not always working)

Many thanks for your suggestions. I tried them but unfortunately the problem remains: the cursor won't skip to the next field if the text in the first field is input too quickly - this though goes for the Windows standalone only. :?

Go to advanced search