Welcome! Log In Create A New Profile

Advanced

windows navigation

Posted by emirhan 
emirhan
windows navigation
March 02, 2009 01:06AM
Hi all,

I try to do, windows navigation. When the user open settings window, firstly he/she must enter a pasword to have acces the settings window. And when the user enter correct password, the password window must close and the settings window must open. How can I do that in WINDEV10?
Carlo Hermus
Re: windows navigation
March 02, 2009 01:11AM
Emirhan,

Why not use planes? When correct password has entered change plan, if not close window.
Carlo Hermus
Re: windows navigation
March 02, 2009 01:11AM
Emirhan,

Why not use planes? When correct password has entered change plan, if not close window.

====

Sorry first post gave an error.



Edited 1 time(s). Last edit at 03/02/2009 01:12AM by Carlo Hermus.
emirhan
Re: windows navigation
March 02, 2009 01:54AM
I could not use plane because The password window was used for another windows, settings windows and profile windows need confirmation to acces,and both window use the password window.
Carlo Hermus
Re: windows navigation
March 02, 2009 06:29AM
Emirhan,

Then make sure the password window returns a value like true (when password is correct) and false (when password is wrong).

Then open the window inside the settingswindow in global declaration. Like:

res is boolean

res = open(win_password)

if res = false then
close()
end
Piet van Zanten
Re: windows navigation
March 02, 2009 10:56AM
Hi,

Simple solution in the window initialization code:

if not open(win_login) then close

win_login should return true or false.

Regards,
Piet
Paulo Oliveira
Re: windows navigation
March 02, 2009 11:02AM
Check OPENCHILD or USE.
Depending of how you need it one this two commands can do the job.
emirhan
Re: windows navigation
March 02, 2009 11:08AM
I could not solve it yet. here is the my code

Ok Button of the WIN_configuration_password window

//Control if password true and then
Open(WIN_backup_configuration,0)

Global decleration of configuration window

res is boolean = Open(WIN_configuration_password)
IF res = True THEN
Close()
END

I enter a correct password but, the password window does not close and new window does not open
Piet van Zanten
Re: windows navigation
March 02, 2009 01:12PM
Hi Emirhan,

I'll be more specific:

The login window:

Set a global variable e.g. bLoginOK
If login ok, set bLoginOK=True
In the "closing of" section enter: RESULT bLoginOk
Now the Login window will return true or false

The configuration window:

In the "global declarations of" section enter:
if not open(win_login) then close
If the login window returns false, then the configuration window will close before it becomes visible, otherwise it will open normally.

HTH, regards,
Piet

emirhan
Re: windows navigation
March 02, 2009 01:27PM
Hi,

I solved the problem, thank you

Best regards.

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: