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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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 09:13:51 PDT 2025

Total time taken to generate the page: 0.00394 seconds