HideGadget() troubles

Everything else that doesn't fall into one of the other PB categories.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

HideGadget() troubles

Post by Karbon »

Are there any known problems using HideGadget(#Gadget, 1) with gadgets on a panel gadget?

I'm calling HideGadget() from inside a procedure and the gadgets seem to become disabled in that you can't click on them but you can still see them. It's really odd since I hide the gadget when the window opens, then show the gadget when a button is clicked and when I try to hide the gadget again when another button is clicked it behaves in the way described. If I switch to another tab and back then the gadget(s) are hidden...

Strrrrrrrange. Hopefully it's just something I'm doing wrong...
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
wcardoso
User
User
Posts: 80
Joined: Fri Apr 25, 2003 5:06 pm
Location: Uruguay

Post by wcardoso »

try to force a paint message to the container gadget, the panel in this case; after you process the hide command. :wink:
with love from Uruguay
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

RedrawWindow_(WindowID(#Window_main), 0, 0, 7)

Seemed to do the trick... Is this a bug or just one of those Windows "features"?

Thanks!!!!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
plouf
Enthusiast
Enthusiast
Posts: 282
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post by plouf »

i have this problem with 3.70 and i use SetGadgetState(#PanelGAdget,ActivePage)
propably its a ne feature :wink:
Christos
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Ahh - good to know.. I have 3.72 so I guess the problem is still around..

Thanks for the help guys!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
wcardoso
User
User
Posts: 80
Joined: Fri Apr 25, 2003 5:06 pm
Location: Uruguay

Post by wcardoso »

I think the HideGadget command do not complete the job, you must to do it forcing the redraw of the container panel or the whole window. :(
with love from Uruguay
freak
PureBasic Team
PureBasic Team
Posts: 5946
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

To me, this sounds like a bug in PanelGadget

Timo
quidquid Latine dictum sit altum videtur
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

It does seem like a bug with the panel gadget - I don't see this happening when it's not on a panel. I'll try to post some code in bug reports to reproduce the problem..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post by Le Soldat Inconnu »

i have the same bug, but setgadgetstate is not a valid solution

because with imagegadget, when you resize this gadget, he don't refresh, and i don't find solution.

i test all this solutions :
resizewindow
rezizegadget(#panel, ....)
windowupdate_(windowid())
RedrawWindow_(GadgetID(#gadget),0,0,7)
but this way don't work

the way which works is
setgadgetstate(#panel, 1)
setgadgetstate(#panel, 0)
but it's not a good solution because it's cause a flashing of the window

excuse me for mistakes

bye
LSI
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post by Le Soldat Inconnu »

it's a bug, nothing else :wink:
LSI
Post Reply