Search found 9388 matches

by dunbarx
Wed Apr 03, 2024 2:44 pm
Forum: Talking LiveCode
Topic: Checking user answer in a quiz
Replies: 5
Views: 266

Re: Checking user answer in a quiz

Rereading, maybe your real issue is:
"How do I store the answer to the current question so I can compare it to whatever and however the user responds"
Is that so?

Craig
by dunbarx
Wed Apr 03, 2024 2:11 pm
Forum: Talking LiveCode
Topic: Checking user answer in a quiz
Replies: 5
Views: 266

Re: Checking user answer in a quiz

Much depends on how your program interacts with the user. If you pose a question, like "What is 2 + 2", how do you want the user to respond? To enter a value in a field? To click on a line in a list? To click on one button of many?

What went wrong with your own code?

Craig
by dunbarx
Wed Apr 03, 2024 2:07 pm
Forum: Talking LiveCode
Topic: Checking user answer in a quiz
Replies: 5
Views: 266

Re: Checking user answer in a quiz

Hi.

So if you ask a certain question, do I assume that there is an answer already loaded somewhere? In other words, if you have a button with:

Code: Select all

on mouseUp
   answer "What is 2 + 2?" with "3" or "4" or "5"
   if it = "4" then answer "RIGHT!" else answer "Wrong"
end mouseUp
That sort of thing?

Craig
by dunbarx
Tue Apr 02, 2024 10:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Where are the newbies?
Replies: 139
Views: 1242017

Re: Where are the newbies?

Here is an out-of-the-box item I see, perfectly suited to those who find LC enjoyable.

There are 850,000 views of this thread. :wink:

Craig
by dunbarx
Tue Apr 02, 2024 3:00 pm
Forum: Talking LiveCode
Topic: A combobox alternative
Replies: 15
Views: 845

Re: A combobox alternative

Stam.

You should prevent the gadget from responding if the cursor is outside the rect of the group. Right now I can invoke the menuItem list, and if I fool around a bit, I can scroll and select from anywhere on the card. Also, how do you trap "menuPick"?

Craig
by dunbarx
Tue Apr 02, 2024 2:38 pm
Forum: Talking LiveCode
Topic: A combobox alternative
Replies: 15
Views: 845

Re: A combobox alternative

Stam. Your v.2 gadget seems to work mostly fine. If you make the textSize too large, the "title" field (not the menuItem list) overloads. Also, the action is different from the stock version (and other such) in that the menuItem list is invoked on mouseUp, which is different than most, which fire on...
by dunbarx
Tue Apr 02, 2024 2:21 pm
Forum: Windows
Topic: LiveCode 9 quits unexpectedly
Replies: 3
Views: 562

Re: LiveCode 9 quits unexpectedly

Hi. We need much more information. What does "physical device" mean? In your current project, which I assume works to some extent, what action do you take when you notice that something has gone wrong? Is it the same action all the time? If you never take that action, does your project work as you i...
by dunbarx
Tue Apr 02, 2024 2:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Where are the newbies?
Replies: 139
Views: 1242017

Re: Where are the newbies?

To me, and like others here I lived through the decline of HC around the turn of the century, it seems that if one measures LC popularity by raw activity on the forum (and the use-list, no other platform matters) there has been a decline in activity. Does that mean there is a decline in the number o...
by dunbarx
Mon Apr 01, 2024 8:29 pm
Forum: Talking LiveCode
Topic: "Close and Remove from Memory" does not call CloseStack
Replies: 10
Views: 473

Re: "Close and Remove from Memory" does not call CloseStack

Richard.

Did you mean "suspend development tools"? I never heard of suspending the IDE.

Craig
by dunbarx
Mon Apr 01, 2024 8:27 pm
Forum: Talking LiveCode
Topic: "Close and Remove from Memory" does not call CloseStack
Replies: 10
Views: 473

Re: "Close and Remove from Memory" does not call CloseStack

Richard.

Nobody ever mentioned suspending the IDE. Simon just wondered why using the "close and remove from memory" menuItem no messages are sent.

Craig
by dunbarx
Mon Apr 01, 2024 3:30 pm
Forum: Talking LiveCode
Topic: "Close and Remove from Memory" does not call CloseStack
Replies: 10
Views: 473

Re: "Close and Remove from Memory" does not call CloseStack

I cannot understand why neither message is sent with the ""close and remove from memory" selection. In fact, nothing appears in the message watcher with that menuItem. LC obviously closes down really fast and really early when this is the selected way out.

Craig
by dunbarx
Mon Apr 01, 2024 3:25 pm
Forum: Talking LiveCode
Topic: "Close and Remove from Memory" does not call CloseStack
Replies: 10
Views: 473

Re: "Close and Remove from Memory" does not call CloseStack

If I have both a closeStack and a closeStackRequest handler in the stack script: on closeStack answer random(999) end closeStack on closeStackRequest answer any char of "ASDFG" pass closeStackRequest end closeStackRequest Only "closeStack" fires from the "close" menuitem. Both fire if I close from t...
by dunbarx
Sun Mar 31, 2024 3:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LC makes my stack a substack
Replies: 15
Views: 870

Re: LC makes my stack a substack

oldDummy. I agree with Jacque, it is not a corruption thing. Somehow it is a problem with LC "finding" the other stack. Currently, are you certain that your mainStack and your "other" stack are both mainStacks, and each live their own stack files? And this would not matter until you create a standal...
by dunbarx
Fri Mar 29, 2024 4:13 pm
Forum: Talking LiveCode
Topic: A combobox alternative
Replies: 15
Views: 845

Re: A combobox alternative

Ah.

I see that the new combo has to be selected for the other features to work back in the main SK stack.

I could not change the submenus and make the new items stick. And afterwards, the actual SK gadget was unresponsive.

Not a well presented list of issues, I know, but just a first try...

Craig
by dunbarx
Fri Mar 29, 2024 4:08 pm
Forum: Talking LiveCode
Topic: A combobox alternative
Replies: 15
Views: 845

Re: A combobox alternative

Stam. I tried playing with this. The first time I dragged one onto a new stack I saw that clicking on the arrow offered three choices in a pulldown. Very like the standard type in LC. But I could not access any of the other features in the original stack. When I deleted the control and pulled anothe...

Go to advanced search