I`m trying to auto. set the width and height of PopMenus.
I have the height done, but the width is trickier of course.
HowTo get the number of pixels in a text string?
I was thinking a hidden textbox and get it`s width, crude but simple if it works.
The problem is <visible>false</visible> isn`t invisible in gtkdialog, it`s grayed out.
But pop up a textbox only GUI off screen, get it`s width and then kill it may work.
It`ll only be there a split second and it`ll be off screen so it`s not visible.
Update: I tested it and it will allow a GUI to be off the bottom of the screen just a little bit.
I think as the screen resolution changes the allowable off screen area moves with it.
And perhaps the area`s height expands and contracts in a ratio to the screen resolution.
It seems gtkdialog doesn`t like negative numbers for geometry, and X off right side of screen.
I`m at resolution 1024x768 ( can`t get it to go higher ), and X=900 is OK, but X=1000 nope.
But even though screen Y=768, Y=900 is OK, so I can hide the textbox GUI below the bottom.
Can anyone with their screen at a higher resolution please verify this?
Code for test textbox GUI:
Change the second 900 (Y) at the last of the code to a bit more than your screen resolution Y.
The problem is <visible>false</visible> isn`t invisible in gtkdialog, it`s grayed out.
But pop up a textbox only GUI off screen, get it`s width and then kill it may work.
It`ll only be there a split second and it`ll be off screen so it`s not visible.
Update: I tested it and it will allow a GUI to be off the bottom of the screen just a little bit.
I think as the screen resolution changes the allowable off screen area moves with it.
And perhaps the area`s height expands and contracts in a ratio to the screen resolution.
It seems gtkdialog doesn`t like negative numbers for geometry, and X off right side of screen.
I`m at resolution 1024x768 ( can`t get it to go higher ), and X=900 is OK, but X=1000 nope.
But even though screen Y=768, Y=900 is OK, so I can hide the textbox GUI below the bottom.
Can anyone with their screen at a higher resolution please verify this?
Code for test textbox GUI:
Code: Select all
#! /bin/sh
export TEXT_W="<window title=\"TEXTW\"><vbox>
<text><label>0123456789</label><visible>false</visible></text>
</vbox></window>" ; gtkdialog3 -p TEXT_W +900+900 &
As to the Class and nolist, I tried at technasaurous suggestion to make a separate file containing the additions to be made to .jwmrc and then writing a little code that would put and include line in /etc/xdg/templates/_root_.jwmrc.
I tried it with a restart of JWM and it did not work.
The only way I could get the nolist to work for the DM window was just the way you did it.
Either I am missing something or just plain dumb!
There is commented lines at the start of the .jwmrc file that modifications should be made to the jwmrc configuration file.
But there are cautions there also.
So I am still at a loss as to the approved correct way to do it.
Still lost and still trying to learn!
Also, here is a thought.
Are all bash versions included with Puppy versions the same?
How does one check this?
I have heard comments on things being left out of bash when it is compiled to keep Puppy small.
I tried it with a restart of JWM and it did not work.
The only way I could get the nolist to work for the DM window was just the way you did it.
Either I am missing something or just plain dumb!
There is commented lines at the start of the .jwmrc file that modifications should be made to the jwmrc configuration file.
But there are cautions there also.
So I am still at a loss as to the approved correct way to do it.
Still lost and still trying to learn!
Also, here is a thought.
Are all bash versions included with Puppy versions the same?
How does one check this?
I have heard comments on things being left out of bash when it is compiled to keep Puppy small.