Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Gtk2::Dialog window size

by smittypaddler (Acolyte)
on Jun 30, 2016 at 23:43 UTC ( [id://1166960]=note: print w/replies, xml ) Need Help??


in reply to Re: Gtk2::Dialog window size
in thread Gtk2::Dialog window size

set_default_size needs sizes in pixels. I had tried $dialog->set_size_request(500,-1), which worked, sort of. I know the size of my title in characters, but I don't know the width of the font used, so I can only guess at the required width in pixels, hence the 500. If my title is e.g. "No, whatever" I need something that will tell me how many pixels is equivalent to length("No, whatever").

Replies are listed 'Best First'.
Re^3: Gtk2::Dialog window size
by Anonymous Monk on Jul 01, 2016 at 00:50 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found