comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » create widget_label on the frame line
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
create widget_label on the frame line [message #94643] Thu, 03 August 2017 08:57 Go to next message
dashtabadi.m.r is currently offline  dashtabadi.m.r
Messages: 10
Registered: May 2016
Junior Member
Hello

Inside the envi New widget is used.
like this:
http://imgur.com/a/P84Kp

And I want to know how to create it?

thanks and best regards
Re: create widget_label on the frame line [message #94644 is a reply to message #94643] Thu, 03 August 2017 15:28 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On Thursday, August 3, 2017 at 5:57:10 PM UTC+2, mrO_o wrote:
> Hello
>
> Inside the envi New widget is used.
> like this:
> http://imgur.com/a/P84Kp
>
> And I want to know how to create it?
>
> thanks and best regards

wow those do look like interesting widgets... Devs? Further info?
Re: create widget_label on the frame line [message #94645 is a reply to message #94644] Thu, 03 August 2017 16:27 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 8/3/17 4:28 PM, superchromix wrote:
> On Thursday, August 3, 2017 at 5:57:10 PM UTC+2, mrO_o wrote:
>> Hello
>>
>> Inside the envi New widget is used.
>> like this:
>> http://imgur.com/a/P84Kp
>>
>> And I want to know how to create it?
>>
>> thanks and best regards
>
> wow those do look like interesting widgets... Devs? Further info?
>

The details of this would look different depending on the platform and
there are some ugly hacks here, but the basic premise can be done.

Result on Mac OS (probably the ugliest):

http://michaelgalloy.com/wp-content/uploads/2017/08/mg_widge t_label_demo.png

Code:

pro mg_widget_label_demo
compile_opt strictarr

tlb = widget_base(/column, xpad=5, ypad=5)

base = widget_base(tlb)

label = widget_label(base, value='Conversion Parameters', xoffset=5,
yoffset=0)

framed_base = widget_base(base, /column, frame=1, xoffset=0, yoffset=8)
content = widget_base(framed_base, xsize=300, ysize=300)


base = widget_base(tlb, /row, /base_align_center)

icon1 = widget_draw(base, xsize=20, ysize=20)
slider = widget_slider(base, xsize=150, /suppress_value)
icon2 = widget_draw(base, xsize=20, ysize=20)
text = widget_text(base, xsize=4, ysize=1, value='38')

widget_control, tlb, /realize
end


Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Re: create widget_label on the frame line [message #94646 is a reply to message #94645] Thu, 03 August 2017 16:28 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 8/3/17 5:27 PM, Michael Galloy wrote:
> On 8/3/17 4:28 PM, superchromix wrote:
>> On Thursday, August 3, 2017 at 5:57:10 PM UTC+2, mrO_o wrote:
>>> Hello
>>>
>>> Inside the envi New widget is used.
>>> like this:
>>> http://imgur.com/a/P84Kp
>>>
>>> And I want to know how to create it?
>>>
>>> thanks and best regards
>>
>> wow those do look like interesting widgets... Devs? Further info?
>>
>
> The details of this would look different depending on the platform and
> there are some ugly hacks here, but the basic premise can be done.
>
> Result on Mac OS (probably the ugliest):
>
> http://michaelgalloy.com/wp-content/uploads/2017/08/mg_widge t_label_demo.png
>
>
> Code:
>
> pro mg_widget_label_demo
> compile_opt strictarr
>
> tlb = widget_base(/column, xpad=5, ypad=5)
>
> base = widget_base(tlb)
>
> label = widget_label(base, value='Conversion Parameters', xoffset=5,
> yoffset=0)
>
> framed_base = widget_base(base, /column, frame=1, xoffset=0, yoffset=8)
> content = widget_base(framed_base, xsize=300, ysize=300)
>
>
> base = widget_base(tlb, /row, /base_align_center)
>
> icon1 = widget_draw(base, xsize=20, ysize=20)
> slider = widget_slider(base, xsize=150, /suppress_value)
> icon2 = widget_draw(base, xsize=20, ysize=20)
> text = widget_text(base, xsize=4, ysize=1, value='38')
>
> widget_control, tlb, /realize
> end

And, of course, fill in those draw widgets with the icons of your choice.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Re: create widget_label on the frame line [message #94649 is a reply to message #94646] Fri, 04 August 2017 02:09 Go to previous messageGo to next message
dashtabadi.m.r is currently offline  dashtabadi.m.r
Messages: 10
Registered: May 2016
Junior Member
On Friday, August 4, 2017 at 3:55:00 AM UTC+4:30, Mike Galloy wrote:
> On 8/3/17 5:27 PM, Michael Galloy wrote:
>> On 8/3/17 4:28 PM, superchromix wrote:
>>> On Thursday, August 3, 2017 at 5:57:10 PM UTC+2, mrO_o wrote:
>>>> Hello
>>>>
>>>> Inside the envi New widget is used.
>>>> like this:
>>>> http://imgur.com/a/P84Kp
>>>>
>>>> And I want to know how to create it?
>>>>
>>>> thanks and best regards
>>>
>>> wow those do look like interesting widgets... Devs? Further info?
>>>
>>
>> The details of this would look different depending on the platform and
>> there are some ugly hacks here, but the basic premise can be done.
>>
>> Result on Mac OS (probably the ugliest):
>>
>> http://michaelgalloy.com/wp-content/uploads/2017/08/mg_widge t_label_demo.png
>>
>>
>> Code:
>>
>> pro mg_widget_label_demo
>> compile_opt strictarr
>>
>> tlb = widget_base(/column, xpad=5, ypad=5)
>>
>> base = widget_base(tlb)
>>
>> label = widget_label(base, value='Conversion Parameters', xoffset=5,
>> yoffset=0)
>>
>> framed_base = widget_base(base, /column, frame=1, xoffset=0, yoffset=8)
>> content = widget_base(framed_base, xsize=300, ysize=300)
>>
>>
>> base = widget_base(tlb, /row, /base_align_center)
>>
>> icon1 = widget_draw(base, xsize=20, ysize=20)
>> slider = widget_slider(base, xsize=150, /suppress_value)
>> icon2 = widget_draw(base, xsize=20, ysize=20)
>> text = widget_text(base, xsize=4, ysize=1, value='38')
>>
>> widget_control, tlb, /realize
>> end
>
> And, of course, fill in those draw widgets with the icons of your choice.
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)

thanks a lot Michael Galloy.
I really appreciate your help.
Re: create widget_label on the frame line [message #94656 is a reply to message #94643] Mon, 07 August 2017 01:37 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, August 3, 2017 at 5:57:10 PM UTC+2, mrO_o wrote:
> Hello
>
> Inside the envi New widget is used.
> like this:
> http://imgur.com/a/P84Kp
>
> And I want to know how to create it?
>
> thanks and best regards

Hi,
just got back from holidays and read this. I use very often this solution from David:
http://www.idlcoyote.com/widget_tips/fancyframe.html

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: FFT confusion
Next Topic: Locating ImageMagick on a linux fedora

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 05:20:01 PDT 2025

Total time taken to generate the page: 0.00463 seconds