How open directly inspector when the optionKey is down ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How open directly inspector when the optionKey is down ?
Hi All,
I want open directly the inspector of control when the user click a control with browse tool and optionKey down ?
Is there a way to do that ?
I remember HC "doMenu" but it is not available in LC
Best regards
Jean-Marc
I want open directly the inspector of control when the user click a control with browse tool and optionKey down ?
Is there a way to do that ?
I remember HC "doMenu" but it is not available in LC
Best regards
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 256
- Joined: Sun May 27, 2007 8:19 pm
Re: How open directly inspector when the optionKey is down ?
I don't think you can open property inspector with browse tool.
You can open the script editor with the 'option' and 'command' key down while using the browse tool.
With the edit tool you click the control with the 'Control' key down. That will show a popup menu with items: Edit Script, Property Inspector, and some other items.
Martin
You can open the script editor with the 'option' and 'command' key down while using the browse tool.
With the edit tool you click the control with the 'Control' key down. That will show a popup menu with items: Edit Script, Property Inspector, and some other items.
Martin
Re: How open directly inspector when the optionKey is down ?
I was looking at this but found no solution. Note that in LC 7.0 rc1, the "doMenu" function did work on a few menu items (it worked on New Card but not the Property Inspectors), but only without the "of menuName" parameter, which caused a failure out to the Script Editor.
Walt
Walt
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
Re: How open directly inspector when the optionKey is down ?
Thanks,
Inspector palette is a stack, then that should be possible to call it.
I thought find it into Toolset folder of the app package but I didn't find.
I hoped use it instead make my own.
As said Klaus "lazy moi"
Jean-Marc
Inspector palette is a stack, then that should be possible to call it.
I thought find it into Toolset folder of the app package but I didn't find.
I hoped use it instead make my own.
As said Klaus "lazy moi"

Jean-Marc
https://alternatic.ch
Re: How open directly inspector when the optionKey is down ?
I tried calling it - it's name is "revPropertyPalette 1". I tried opening it and could do so, but then the IDE thinks it is a user stack (it puts it's name in the stacksInUse property), not part of the IDE - it asks if you want to save or discard changes when you try to close it, so I don't know if that will have an effect on the IDE. Making the actual menu selection in the IDE appears to do more than just open the stack.
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
Re: How open directly inspector when the optionKey is down ?
Thanks Walt,
I searched it but I can't found it in the package
The style of the stack "revPropertyPalette 1" is open in a standard style instead palette.
I will test if set its style is possible without problem with IDE
Jean-Marc
I searched it but I can't found it in the package
The style of the stack "revPropertyPalette 1" is open in a standard style instead palette.
I will test if set its style is possible without problem with IDE
Jean-Marc
https://alternatic.ch
Re: How open directly inspector when the optionKey is down ?
Hi,
I tried:
I think I have to create my own inspector.
Same problem hereit asks if you want to save or discard changes when you try to close it
I tried:
Code: Select all
on doOpenInspector
select control "myControl"
open stack "revPropertyPalette 1"
palette stack "revPropertyPalette 1"
end doOpenInspector
https://alternatic.ch
Re: How open directly inspector when the optionKey is down ?
Hi Jean-Marc,
try this
I took this from the script of button "object properties" from card id 1002 of stack "revMenuBar"
That is the button you click when in the IDE and want to choose the Properties Inspector.
Kind regards
Bernd
try this
Code: Select all
on doOpenInspector
select control "myControl"
send "revBuildPropertyPalette" to stack "revTemplatePalette"
end doOpenInspector
That is the button you click when in the IDE and want to choose the Properties Inspector.
Kind regards
Bernd
Re: How open directly inspector when the optionKey is down ?
Hi friends,
I'm afraid this is a tad more complex than you hope!
This is the "mousedoubleup" handler from the "revFrontScript", which usually opens the Inspector if in POINTER mode.
That should give you a clue where to dig deeper, note the first line:
Hope that helps, good luck!
Best
Klaus
I'm afraid this is a tad more complex than you hope!

This is the "mousedoubleup" handler from the "revFrontScript", which usually opens the Inspector if in POINTER mode.
That should give you a clue where to dig deeper, note the first line:
Code: Select all
on mouseDoubleUp pButtonNo, pTarget
if revCheckEdit(pTarget) then send "revBuildPropertyPalette" to stack "revTemplatePalette"
else if not gREVSuppressMessages or (gREVSuppressMessages and revOKTarget()) then pass mouseDoubleUp
end mouseDoubleUp

Best
Klaus
Re: How open directly inspector when the optionKey is down ?
Salut les amis,
Wow! The german livecode staff is coming with a very good solution
Thanks a lot, it works fine for my goals
I changed my scenario:
Instead a click on object I use a list of all controls in a list field of a palette stack
The list field script:
Best regards
Jean-Marc
Wow! The german livecode staff is coming with a very good solution
Thanks a lot, it works fine for my goals
I mean a simplified inspectorI'm afraid this is a tad more complex than you hope!
I changed my scenario:
Instead a click on object I use a list of all controls in a list field of a palette stack
The list field script:
Code: Select all
on mouseup
put line (the hilitedlines of fld "fImagesRef") of fld "fImagesRef" into tnameC
doOpenInspector tnameC,stCrerStory -- stCrerStory = name of the mainstack
end mouseup
on doOpenInspector pControl,pStack
select control pControl of stack pStack
send "revBuildPropertyPalette" to stack "revTemplatePalette"
end doOpenInspector
Jean-Marc
https://alternatic.ch
Re: How open directly inspector when the optionKey is down ?
Bonjour Jean-Marc,
glad I could help, but I am not part of the Livecode staff, I am just a user of LC!
Best
Klaus
glad I could help, but I am not part of the Livecode staff, I am just a user of LC!
Best
Klaus
Re: How open directly inspector when the optionKey is down ?
Klaus wrote:
They even register with ridiculous user names in the forum to get help from you.
What does that make you? The Last Resort?
They never call me, so I am out of the "staff" business...
But seriously, thanks Klaus for all your help.
Kind regards
Bernd
So why do you get calls from Edinburgh every night when they get stuck?but I am not part of the Livecode staff, I am just a user of LC!
They even register with ridiculous user names in the forum to get help from you.
What does that make you? The Last Resort?



They never call me, so I am out of the "staff" business...
But seriously, thanks Klaus for all your help.
Kind regards
Bernd