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

Home » Public Forums » archive » Re: Widget creation performance
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: Widget creation performance [message #47313 is a reply to message #47312] Fri, 03 February 2006 08:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ricardo Bugalho writes:

> I'm having some trouble with the performance of widget creation.
> One of the components in my program contains a list of items, for which
> I need to have a few labels and buttons per entry.
> To achieve this, whenever the item list changes, I destroy the list's
> base widget and then recreate a new base for my entry list and the
> entries' widgets.
> But it's slow. I can actually see IDL redrawing the widgets. The problem
> seems to be that for every widget I add, IDL reorganizes the layout.
> Does anyone have any ideias?

Turn updating off for your top-level base widget until you
are finished creating your new widget, then turn it back on.

Widget_Control, tlb, UPDATE=0
..... do your widget thing here....
Widget_Control, tlb, UPDATE=1

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Widget creation performance
Next Topic: Re: Suppressing diagnostic messages en masse

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

Current Time: Sat Nov 29 07:09:35 PST 2025

Total time taken to generate the page: 1.36583 seconds