Hi,

Thanks for the reply.
Perhaps I should be more specific?
I already have the basic GUI built including the panels I require and a text box in the second panel. My confusion is in regard to the contents of the first panel. For each file found in the user selected directory, I will most likely have something like(ignoring the parameters):
   lr(label()
       radiobutton()
       radiobutton()
       etc..)

What I don't understand is what container each of these should be in and how I generate them at runtime bearing in mind the number of them is initially unknown and subsequently variable.

Regards
Mark

Fred Spiessens wrote:
Hi Mark,

Are you asking which toplevel widget you should use? Use a simple td or lr widget for that.
Canvas widgets are for drawing.

You will find lots of useful examples in the prototyper, just do:

declare
[Prototyper]={Module.link ["x-oz://system/wp/Prototyper.ozf"]}
{Prototyper.run}


cheers,
Fred.

On 14 Jul 2008, at 00:46, mark richardson wrote:

Hi,

I'm trying to develop a QTk app that will have a number of panels. The first panel will show a list of files in a user-selected directory, each one followed by a number of radiobuttons to select various actions on each file - one of them being to edit the file in the second panel. The user will also be able to add files to the directory.

I'm fairly confident that I can get to grips with dynamically creating handles for widgets where necessary but I'm not sure of the best way to approach dynamically creating the widgets themselves.

Some of my questions are:-
Would I use a canvas widget, then add QTk widgets to it? (At least I think you can do that!) If I used placeholder widgets, would I need a 'dummy' number of them created initially, to be populated as required?
Or something completely different?

If it wasn't for the requirement to be able to add files at runtime, the problem would be a lot simpler I think.

Any help would be really appreciated.

Regards
Mark


--
Mark Richardson
Final Year Undergraduate
University of Teesside, UK


_________________________________________________________________________________ mozart-users mailing list [email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users


_________________________________________________________________________________ mozart-users mailing list [email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users



--
Mark Richardson
Final Year Undergraduate
University of Teesside, UK


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to