Re: How to make a gui

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Wed, 22 Feb 2006 18:34:06 +0100


Hi Roger,

My comments about fMainV was related to the error message I saw. Of course you do not need to declare it as public. To avoid guessing things please minimize your code and send a macro that will help to reproduce the problem.

My message about layout hints was: if they are re-usable, do not use Cleanup() for the container frame where these hints are registered. This kind of errors are seen often and I would like to protect you from that.

Cheers, Ilka

>Should it be declared public?
>
>
>
>>Next, I see that you have assigned the same widgets ID to any pair of
>>slider and text entry. This is wrong, because the widget's id are used
>>for event processing and they should be unique. So, you could apply a
>>simple formula using 'i' to generate them.
>>
>>
>
>Thanks, I see my mistake.
>
>
>
>>In addition, be careful when re-using the same layout hints (fLslider)
>>for several widgets in AddFrame method.
>>
>>
>
>Layout hints are not reusable? Then the only purpose in storing them
>is to tidy the code?
>
>
>
>>I hope you will delete
>>fLslider in the destructor, as well as all created GUI elements in
>>your application, i.e. you will use the Cleanup() method for container
>>frames.
>>
>>
>
>Will do.
>
>Thanks very much for your help and for answering naiive C++ questions,
>
>Roger
>
>
Received on Wed Feb 22 2006 - 18:34:12 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET