having trouble with visibility...

MichaelTJ

Member
Licensed User
Longtime User
i've got a fairly simple layout with one panel and perhaps 5 each labels and edittext objects on that panel... i have tried setting the individual objects visible property to false but they do not go invisible... so then i tried sending them to back, nothing.... so then i created another panel placed it over the objects i wanted invisible and that did it.... however i cannot get that panel2 to go invisible or send it to the back so that the objects will once again be visible.... this has to do with a record type which is identified by entry into another editt box.... if a certain rectype is entered i need the visibility of the other objects in order to be able to enter necessary details for that record type.... is there some hidden trick to making objects, panels, labels and edittext boxes go visible and invisible based on entered data in a different textbox on the same panel?
 

MichaelTJ

Member
Licensed User
Longtime User
some code that doesn't seem to work....

If EditText1.Text = "E" OR EditText1.text = "e" Then
Label3.text = "Exercise"
Label7.Visible = True
Label10.Visible = True
EditText6.Visible = True

Panel2.SendToBack
Panel2.Visible = False
End If
If EditText1.Text = "M" OR EditText1.text = "m" Then
Label3.text = "Medication"
End If


Panel2 covers the label7, label10 and edittext6 objects which were previously set to v=false just as panel2.visib was previously set to v=true..... have i managed to do this precisely wrong somehow?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Could you post the project as a zip file (IDE menu File / Export As Zip).
The Visible properties should work even without a Panel.
If you want to show or hide several views at the same time you can add these views to a panel and set its Visible property instead of havinh a panel covering the views.

Best regards.
 
Upvote 0

MichaelTJ

Member
Licensed User
Longtime User
found the problem....

i backed out the code i was working on but then in a completely different section of my efforts i saw the same sort of ghost progressbar.... i had thought it a progressbar because the shape and position of the ghost like object on the screen..... as it turns out it was a spinner problem.... as i say, i got clued in when the exact same ghost showed up in a completely different project...

other than the "ghost" being a good indicator of a spinner problem i don't see how my question or the followups could be of any use to anyone.... there is TOO much clutter in the forum.... people giving partial info, figuring it out and then not really sharing the solution.....

is there a segregated area for JUST code samples? sure would be nice to have one and i would certainly contribute to it.... all vb code is accompanied by such examples closely linked to the the vb terms being questioned....

a spinner example really needs the subglobal and functioning sub at the very least..... as i say, given the opportunity i would be happy to pare my software down to such a degree that it would demonstrate in a very straightforward manner one technique/concept at a time

the spinner example that i fought my way through had calls and what not that were absolutely unrelated to the spinner functionality but i got to the code originally by looking for "spinner examples"

love to help if you'll tell me where to put such examples and again, not problems but complete and to the point examples that are straight forward and work

Michael
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Sorry, but I don't understand now who is asking for help ?
You ask for help for Visible property problems you have.
I ask you if you could post your project so I could test it in the same conditions as you do.
If you won't, that's OK for me.

Best regards.
 
Upvote 0
Top