[Gambas-devel] Design property
Robert Rowe
robert.c.rowe at ...176...
Fri Apr 4 05:10:04 CEST 2008
What I'd like to do is to display a button on the control at design
time. When the developer clicks the button it brings up a GUI that lets
them create/edit the tools on the toolbar. I'd save these settings
somewhere. Either in the form file or another file in the project's data
directory. The control would look for this file at runtime and load the
tools from it. I hope to provide codeless setup and use of the toolbar.
I can't seem to get any code that I put into a
If me.Design Then
block to run. I've also tried me.parent.design within the primary
control in my component. This doesn't run either.
Any suggestions?
Robert Rowe
Benoit Minisini wrote:
> On mercredi 2 avril 2008, Robert Rowe wrote:
>
>> Is there some trick to getting a component that you are writing in
>> gambas to respond to the Design property? I have code in an if statement
>> that is checking the design property of the parent of my component. As I
>> understand it this is the form that the control has been drawn on. It
>> should be in design mode if it is in the IDE. My code doesn't ever seem
>> to run.
>>
>> Robert Rowe
>>
>>
>
> Please provide more details. You have examples of tests of the Design property
> in the gb.form component. You must check this property to ensure that your
> control is really inert inside the IDE, especially if it is a container: it
> must not arrange its contents when in design mode!
>
> Regards,
>
>
More information about the Devel
mailing list