I wanted to force the user to click in an edit box to see a cursor prompt.
I found I could hide the cursor when launching a gtkdialog window using
a little trick--->
Squeeze an unused ENTRY widget to the left of window
and put "1" in entry field to make it as small as possible.
The result is light blue vertical line that can be hardly seen (see image)
Final project is " PUP Diary"
Here is some code to show how I did it...
Note that I used
Code: Select all
space-expand="false" space-fill="false"
to squeeze the first entry widget.
The second widget is normal-sized to enter some data.
Code: Select all
<window title="PUP Diary '$VERSION'" resizable="false">
<vbox>
<hbox> <text space-expand="false" space-fill="false">
<label>"'$(gettext 'Window height')'"</label>
</text>
<entry space-expand="false" space-fill="false" max_length="1" width-request="1">
<variable>Fake_entry</variable>
<default>1</default>
</entry>
<entry space-expand="false" space-fill="false" max_length="3" tooltip-text="'$(gettext 'Change the height of window')'" width-request="50">
<variable>Height</variable>
<default>'`cat $WORKDIR/height`'</default>
</entry>