It is currently Thu Jun 20, 2024 6:47 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Script-Fu User Entry Screen Scroll-bars (Yes!)
PostPosted: Mon Dec 23, 2013 10:03 pm  (#1) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 10:09 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
GnuTux wrote:
I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.


That is a good question. And it could very well be the answer to our one column dilemma. :) You see user/value added areas in the dialogs in GIMPs interface so why not scripts also?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 10:22 pm  (#3) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
In Linux (MATE), I can hold Alt-m and drag the input screen with the mouse to get to the entry fields that are off screen.

Is there a similar feature in Windows and/or MAC?

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 10:34 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Why can't we interactively call a script-fu whilest in a script-fu I can call other plugins twice, why not script-fu.exe
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 11:07 pm  (#5) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan wrote:
Why can't we interactively call a script-fu whilest in a script-fu I can call other plugins twice, why not script-fu.exe

The answer is in this thread..

viewtopic.php?f=9&t=2850#p36798

Basically, it's because you don't actually call a Script-Fu script directly, like a plug-in, you call the Script-Fu plugin, which runs the script interpretatively. The Script-Fu script can't then call another Script-Fu script interactively because the Script-Fu plug-in is already running your script interpretatively and there is no mechinism to spawn another instance, while passing the proper parameters/arguments to the new instance.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 11:38 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux I know what it says but scrip-fu.exe is just a plugin and i can call other plugins twice interactively
and it only says no in the src file, info below is from the script-fu-interface.c file, not sure what the intrface.c file relates to

gtk_table_set_col_spacings (GTK_TABLE (sf_interface->table), 6);
gtk_table_set_row_spacings (GTK_TABLE (sf_interface->table), 6);
gtk_box_pack_start (GTK_BOX (vbox), sf_interface->table, FALSE, FALSE, 0);
gtk_widget_show (sf_interface->table);

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 11:47 pm  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan wrote:
GnuTux I know what it says but scrip-fu.exe is just a plugin and i can call other plugins twice interactively

Well, it's not just any old plug-in. It's a scheme interpreter and the problem arises when attempting to call another instance from a script already running inside.

The interface to the interactive dialog can't be called from a script running in the scheme interpreter, because the interface code exists outside the interpreter.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Mon Dec 23, 2013 11:59 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Drats! Wilbur does not like us
GnuTux I wish I new how the GTK interface worked
It's good to see everyone tossing around ideas on this

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 12:09 am  (#9) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Yeah, I guess since we can't call a Script-Fu script interactively from another Script-Fu script, a workaround might be to modify interface to allow scrolling.

Can you drag the menu around to see the off screen fields in Windows, as I can in Linux with the Ctrl-m + mouse? I can't remember if there are Window's keystroke to do that or not.

Found this for Windows..
http://lib.umhs-sk.net/keybshortc.pdf

ALT+ SPACEBAR + M = Move current windows with arrow keys
ALT+ SPACEBAR + M + any arrow key once, then move the mouse to position the window where you like.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 2:13 am  (#10) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
GnuTux wrote:
I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.


I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python and creating a custom UI using pygtk or TkInter, then you can expand to more than one column, tabbed interface etc. (Of course you'll also learn about the extra complications in building a flexible UI ;) )

Kevin


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 3:08 am  (#11) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
paynekj wrote:
I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python

Well, if that is true, it's laughably misguided that scroll bars have been omitted because Script-Fu's UI has been intentionally "kept simple". I actually doubt that is the case. Heck, I can't even get some of GIMP's Built-in Logo scripts, like Glossy, to fit on the screen and I have decent resolution. This issue is exacerbated when one is working with even lower resolution displays, such as 1024x768. Why would some Script-fu scripts, that many users can't even see on the screen, be included in GIMP? It just doesn't make sense. It's not like we need 100's of inputs, anyway. How about 15-20, which would cover very basic functionality?

If it is true, whoever made that decision should be severely beaten around the face and head, so as to have some common sense slapped into them. :hehe

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 5:57 am  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
paynekj wrote:
I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python and creating a custom UI using pygtk or TkInter, then you can expand to more than one column, tabbed interface etc. (Of course you'll also learn about the extra complications in building a flexible UI ;) )

Kevin

+1 to that.

_________________
Image


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:37 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I wonder if it would really be that difficult to add auto scrolling for all op systems to script-fu dialogs via the script-fu.exe plug-in src.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:39 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Found this
http://www.codeproject.com/Articles/109 ... -a-C-Helpe

And GTK.
http://hackage.haskell.org/package/gtk- ... indow.html

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:41 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Can Java scripts be ran in GIMP yet? I thought they were going to implement that in GIMP-2.8.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:58 am  (#16) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Scrolling of the controls within a dialog is not consistent with traditional human interface guidelines. Does anybody have an example of this being done? F-Spot has a scrolling toolbox, which in itself is ugly enough; but I have never seen a scrolling dialog.

The preferred method for handling more controls than fit on a page is either tabbed dialogs:

Image

or list controls:

Image

It would be entirely feasible for Script-fu dialogs to resort to a tabbed dialog if the number of widgets is too large. The main reason it hasn't been done before is probably that any decent window manager provides a ready means of accessing parts of a window that display off-screen (e.g., ALT+CLICK).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:09 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
You can right click and move a dialog with the arrow keys in Windows XP but as soon as you try to enter data (clicking mouse), the window position resets itself.
You can however use the "TAB" key to get to value input areas , type in the value and TAB on to the next value area. Pain though. :)
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:23 am  (#18) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Rod wrote:
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?

I would just add an SF-PAGE option to the script-fu-register procedure.

For example (using the Lighting Effects tabs):
SF-PAGE "Options" 0
SF-IMAGE "image" 0
:
:
SF-PAGE "Light" 0
:
:
SF-PAGE "Material" 0
:
:
SF-PAGE "Bump Map" 0
:
:
SF-PAGE "Environment" 0
:

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:30 am  (#19) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
Well, if that is true, it's laughably misguided that scroll bars have been omitted because Script-Fu's UI has been intentionally "kept simple". I actually doubt that is the case. Heck, I can't even get some of GIMP's Built-in Logo scripts, like Glossy, to fit on the screen and I have decent resolution. This issue is exacerbated when one is working with even lower resolution displays, such as 1024x768. Why would some Script-fu scripts, that many users can't even see on the screen, be included in GIMP?


If not the reason i believe that was a perfect excuse , but you should consider WHEN was written the script fu interpreter , in that period was rare for script and plugin have more the 3 or 4 controls, with even people complaining that unsharpmak was too complex because have too much sliders :3 ! :rofl

And "kept simple" was a suggestion repeated as a mantra ,and respected almost a religious point

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:38 am  (#20) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod wrote:
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?


would be no possible allow to toggle the not used options ?

i.e. suppose a script has a option for... let say use gimpressionist, and after the "use" gimpressionist" box there are all related commands

now toggle off that part, when that plugin is not used, would not only shrink the dialogue so hopefully would fit in the screen size but maybe even more important will "kept simple" for the users, avoiding to confound them with inactive dialogue.

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts scroll bar for gmic exercise

1

No new posts Attachment(s) x=x+1 for Text entry

4

No new posts Attachment(s) Entry point _ZdaPv could not be located

2

No new posts Attachment(s) Missing menu entry for 'Fade Retinex' in 2.10.18

4

No new posts The old the-BRL-box-is-too-big-for-my-screen problem

9



* Login  



Powered by phpBB3 © phpBB Group