Jump to content

Propercje przycisku.


Recommended Posts

Posted

Witam.

Mam pewien problem z tym, gdyż mam stworzony przycisk w przycisku. Tutaj pojawia się problem, chcę zablokować tylko przycisk 'ojciec', bez 'dziecka', lecz gdy blokuję 'ojca', to 'dzecko' też jest zablokowane.

Jest możliwość zablokowania przycisku głównego, nie blokując childa?

build_btn[1] = guiCreateButton(0.0452,0.7258,0.9095,0.2016, "Wejdź/Wyjdź                  .",true,build_wdw[1]) 
    guiSetFont(build_btn[1],"default-bold-small") 
    guiSetProperty(build_btn[1],"NormalTextColour","FFFFFFFF") 
    build_btn[2] = guiCreateButton(0.7017,0,0.2928,1,"Zamknij",true,build_btn[1]) 
    guiSetFont(build_btn[2],"default-bold-small") 

i

guiSetProperty(build_btn[1],"Disabled","true") 

blokuje build_btn[1] i [2].

Posted

A dlaczego w ogóle button jest dzieckiem drugiego buttona? Jaki to ma sens? Button raczej nie jest w buttonie, więc powinien być jego rodzeństwem.

Spróbuj po zablokowaniu rodzica (nie ojca - rodzica :D) odblokować dziecko - choć nie sądzę, że to zadziała (zgodnie z logiką).

I wyraz "propercje" razi - właściwości brzmi lepiej :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...