HideGadget Problem solution

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
menschmarkus
User
User
Posts: 18
Joined: Fri Dec 28, 2012 11:23 pm
Location: Center Germany

HideGadget Problem solution

Post by menschmarkus »

Gnozal,

I use PureForm for a longer time. Maybe I found a bug.
I designed a window which contains several container at the same position.
I enable/disable these by HideGadget() command which is working fine.

BUT..

I faced the problem that I could not acces to Option Gadgets, string Gadgets, Button Gadgets or any other active Gadgets. It took me some days to find out what happened. At last I found it.
Although I used button "HIDE" during designing at PureForm the command HideGadget(#Gadget,1) was missing in Source. Due to this fact there was an yet empty container above the one I want to use and I had no access.

Code: Select all

ContainerGadget(#Container_01,0,0,100,100)
    HideGadget(#Container_01,1)     ;<--  This line is missing
    .
    .
CloseGadgetList()
I think whenever I hide a Gadget I don't want to see it in the window in the moment. Even if I am in designing phase.
Following WYSIWYG designing with PureForm, HideGadget command should be included in Source Code whenever I hide a gadget.

Your comments are welcomed.
Updateing Program, if you agree, as well.
It saves time after every modification of one window Item to rewrite complete source by adding HideGadget command manually.

Happy new Year to you everyone here in this Forum

menschmarkus

[edit 30.12.2013]

In the moment I use "Code infusion" which works fine.
Hopefully I do not forget to write this extra code for additional container :wink:

menschmarkus
As soon you do it right, it works !