Page 1 of 1 1
Topic Options
#206621 - 2013-02-02 06:09 PM Show Console
Seppe Offline
Fresh Scripter

Registered: 2013-01-09
Posts: 7
Loc: Tenerife
How to make the console visible again after it has been minimized by the user?
Top
#206622 - 2013-02-02 06:29 PM Re: Show Console [Re: Seppe]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
http://www.kixtart.org/manual/Functions/setconsole.htm
_________________________
(... better days ahead)

Top
#206636 - 2013-02-05 10:47 AM Re: Show Console [Re: Allen]
Seppe Offline
Fresh Scripter

Registered: 2013-01-09
Posts: 7
Loc: Tenerife
Only "Maximize" seems to work.
This little script may illustrate my remark:
 Code:
    Break On $=SetTitle("Console")                ; Test the Console modes
    "Illustration of the SetConsole modes" ? ?    ; open the console
    $S=CreateObject("Kixforms.System")            ; S = Kixforms.net (NOT KIXTART)
    $F=$S.Form() $F.Text="ModeTest"               ; F = Form
    CrB(5,"HIDE")                                 ; Hide
    CrB(25,"SHOW")                                ; Show
    CrB(45,"MINIMIZE")                            ; Minimize
    CrB(65,"MAXIMIZE")                            ; Maximize
    CrB(85,"FOREGROUND")                          ; Foreground
    CrB(105,"ALWAYSONTOP")                        ; AlwaysOnTop
    $F.Show                                       ; Lets see
    While $F.Visible $=Execute($F.DoEvents) Loop Exit  ; Exit on Close
Function CrB($top,$tx) ;--------------------------- Create Button
    Dim $B $B=$S.Button()                         ; B = Button
    $B.Height=20 $B.Left=10 $B.Width=200          ; button shape
    $B.Top=$top $B.Text=$tx                       ; apply params
    $B.MouseUp="BCl($tx)"                         ; attach a ClickHandler
    $=$F.Controls.Add($B) EndFunction             ; add button to Form
Function BCl($mode) $mode ? PLAY "3d700f"         ; show mode in console
    $=SetConsole($mode) EndFunction               ; and set the consolemode


Edited by Mart (2013-02-05 10:56 AM)
Edit Reason: Please use code tags when posting code.

Top
#206637 - 2013-02-05 04:23 PM Re: Show Console [Re: Seppe]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
IMHO there should not even be a console if it is a logon script. The script should be neither seen nor heard.

It's obvious that your users don't/won't read it anyway since they minimized it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#206638 - 2013-02-06 04:58 AM Re: Show Console [Re: Les]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Not sure what the issue is. I ran your test script...all of the buttons seem to work as expected.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2312 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.198 seconds in which 0.139 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org