October 31, 2025, 05:06:02 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


problems with a window, within a window, ie w1, w2

Started by hugh, September 18, 2008, 05:02:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hugh

any suggestions please.
below is the code, which i wish to create a new window with, and  make it @swhide when the button,[START BINGO] is clicked
this is to stop FLASHING when a number is called, ie the called number has its color changed and is RECTed, it can be seen through
the black background' the window should be at outer perimiter of the  rectangle  in the code below.
disregard the minus,msw,numl,plus, i know i have to make the window a child of the parent, as w1 is the parent, w2 is child, or
am i getting it wrong?.
w1 is the parent window


openwindow w2,178,r-minus,msw-356,numl+plus,@nocaption|@noborder,0,"",&w1handler
setwindowcolor w2,rgb(o,o,o)
RECT w2,178,r-minus,msw-356,numl+plus,rgb(125,100,50),rgb(0,0,0)


then the following code is CONTROLS which are placed inside the w2 rectangle.
this is just the first line if the code, it is in a FOR, NEXT,  Loop
I just need a nudge in the right direction as to HOW!.
i hope i have given a enough information


CONTROL w2,@STATIC,ltrim$(str$(z)),c-15,r-10,20,18,1,Z
SETSIZE w2,c-37,r-25,r1,40,z
setfont w2,"Ariel",25,800,0,z
rect w2,l-5,t-23,w+4,h+3,rgb(140,0,0),rgb(255,0,0)



any HELP, CRITICISM appreciated.

regards

hugh

LarryMc

Hugh,
I'm having an awful hard time following your train of thought.

I have no idea what you are having a problem accomplishing.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Not sure this is of any help but I butchered up the controldemo and have it opening as a child window with a button and then closing with a button.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

hugh

Thank you Larry,

Thats exactly what i was looking for.
Just wanted a 2nd window to display the numbers board,.
when START BINGO clicked, then w2 is , "@SWHIDE.
I had the numbers in a FOR,NEXT,loop.
ie, FOR J = 1 TO number
show w1,@SWHIDE,j
next j
It didnt look very good, as it was not instantanous.
but with the SHOWWINDOW w2,@SWHIDE, is.
I had it wrong, thats why when any buton was clicked, w1 took over and w2 was sent to the back.

Reason i could'nt find CONTROL DEMO, this computer crashed, could not retrieve anything of the hard drive.
Installed new drive, and copied everything of the laptop on to it.
EBASIC puts its projects in MYDOCUMENTS in VISTA,
In XP pro it puts the projects in its on folder in program files, so i have now transfered them to ebd program files/

Hope that explains it a little better.

Hugh

LarryMc

The controldemo program that comes with EBasic wouldn't have helped you.

But to give you an example that had controls on the 2nd window I just picked the controldemo program and then added the 1st window stuff.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

hugh

Larry,
Code from Your controldemo source


openwindow w1,0,0,800,550,@SIZE|@MINBOX|@MAXBOX,0,"window 1",&mainwindow1
CONTROL w1,@button,"open w2",56,10,150,20,@TABSTOP,920
CONTROL w1,@button,"hide w2",56,40,150,20,@TABSTOP,921


and this is the part which helped me


openwindow win,0,0,600,350,@SIZE|@MINBOX|@MAXBOX|@SWHIDE,w1,"window 2",&mainwindow


and this is my code for my 2nd window


   OPENWINDOW w1,0,0,sw,sh,@size|@NOCAPTION,0,"",&w1handler
    SETWINDOWCOLOR w1, RGB(50,70,60)
openwindow w2,178,50,655,380,@SIZE|@NOCAPTION|@BORDER,w1,"",&w1handler
    SETWINDOWCOLOR win, RGB(0,0,0)


2nd window is were all the controls 1 to number are now displayed

Regards

Hugh