Sample Property Inspector
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Sample Property Inspector
Hi,
I am trying to modify the LiveCode IDE by making new stacks and replacing them with the existing components. However I have run into a problem with the property inspector. I cannot seem to make a stack that is opened instead of the property inspector.
Does anyone have a property inspector demo stack that shows the basics of the property inspector. (Something that just opens in place of the property inspector and changes the name of the selected object to the text of a field).
Thanks,
Andrew
I am trying to modify the LiveCode IDE by making new stacks and replacing them with the existing components. However I have run into a problem with the property inspector. I cannot seem to make a stack that is opened instead of the property inspector.
Does anyone have a property inspector demo stack that shows the basics of the property inspector. (Something that just opens in place of the property inspector and changes the name of the selected object to the text of a field).
Thanks,
Andrew
Re: Sample Property Inspector
When you say you cannot make a stack that is opened instead of the property inspector, do you mean when you double-click on an object in edit mode?
You can certainly roll your own inspector. I am not sure where you can trap the automatic appearance of the IDE inspector and divert that process. It is likely one of the "revxxx" messages. But someone will know.
Craig Newman
You can certainly roll your own inspector. I am not sure where you can trap the automatic appearance of the IDE inspector and divert that process. It is likely one of the "revxxx" messages. But someone will know.
Craig Newman
Re: Sample Property Inspector
The IDE sends uses this code:
So your replacement Properties palette would need to handle the "revBuildPropertyPalette" message, there is a single parameter that is passed to the message that looks like it might contain an object (it was always empty in my tests, so no idea what it should be)
Code: Select all
send "revBuildPropertyPalette" to stack "revTemplatePalette"
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Sample Property Inspector
Hi,
Thanks!
Is there a way to know if the user has double clicked to object, or has chosen Card Inspector/ Stack Inspector.
Thanks,
Andrew
Thanks!
Is there a way to know if the user has double clicked to object, or has chosen Card Inspector/ Stack Inspector.
Thanks,
Andrew
Re: Sample Property Inspector
Code: Select all
if (item 2 of line 1 of the executionContexts = "mouseDoubleUp") then
answer "They double clicked in the Application Browser"
else if (item 2 of line 1 of the executionContexts = "mouseDown") then
answer "Used the context menu"
else if (item 2 of line 1 of the executionContexts = "menuPick") then
answer "Used the Object menu"
end if
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Sample Property Inspector
Hi,
Thanks. However when I right-click on an object an choose "Property Inspector" I get the message: "Used the Object menu."
Is this right or should it display: "Used the context menu"?
Thanks,
Andrew
Thanks. However when I right-click on an object an choose "Property Inspector" I get the message: "Used the Object menu."
Is this right or should it display: "Used the context menu"?
Thanks,
Andrew
Re: Sample Property Inspector
Let me take a look.. What operating system are you on?
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Sample Property Inspector
Hi,
I am on:
Windows 7 64-bit
AMD Athlon II x3 processor
3gb Ram
LiveCode 6.1.0
I am on:
Windows 7 64-bit
AMD Athlon II x3 processor
3gb Ram
LiveCode 6.1.0