[Fxruby-users] Re: Focus for FXDialogBox & Widgets
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-04-19 22:57:09
|
On Apr 18, 2004, at 8:40 PM, John Reed wrote: > I=92m trying to put a workable hyperlink on my FXDialogBox screen. = Have=20 > you done anything like this? I haven't done anything like this, but if I were going to I think I'd=20 use an FXButton widget as a jumping-off point. The default frame=20 options for an FXButton cause it to be drawn with a "raised" and=20 "thick" border (i.e. the FRAME_RAISED and FRAME_THICK options). If you=20= change these settings, either at construction time: flatButton =3D FXButton.new(parent, text, tgt, sel,=20 JUSTIFY_NORMAL|ICON_BEFORE_TEXT, ...) or after: flatButton =3D FXButton.new(...) flatButton.frameStyle =3D FRAME_NONE you'll get a button that looks like an FXLabel, but is still clickable.=20= You could then wire-up the command handler for the button to launch a=20 web browser (or whatever): flatButton.connect(SEL_COMMAND) { system("mozilla") } What I'm not sure about is whether there's a way to draw the label text=20= underlined, so that it will look like a traditional hyperlink. Hope this helps, Lyle |