October 31, 2025, 02:55:43 PM

News:

IWBasic runs in Windows 11!


SETSIZE, reference CONTROL

Started by hugh, June 27, 2008, 10:46:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hugh

I posted this as a reply to Larry,s topic on GETSIZE/SETSIZE.
just realising i should have posted it here as a topic.

I have tried this with my bingo program, ie control 101 is that which displays the random number called. text size set to 1000.
just  a test to make random number larger then set it to fit screen


setsize w1,0,0,400,600,101
    setfont w1,"Ariel",3000,101
   SETCONTROLCOLOR(w1,101,RGB(255,255,0),RGB(255,0,0))                               



tried different combinations, works fine for me on vista home premuim.
but the text size stays the same?.
anyone got any ideas; or do i have to use a special command to enlarge the text to fit the enlarged control.

regards.

Hugh

Ionic Wind Support Team

Hugh,
You need a bit more patience as I have already answered the question in Larry's thread.

http://www.ionicwind.com/forums/index.php/topic,2271.msg21625.html#msg21625
Ionic Wind Support Team

hugh

 ::) Thanks Paul,
I will now goto the thread again and try and digest it, and see what i have missed'

regards

Hugh

hugh

Found what i needed,
sw=screen width , sh = screen height
when [Start] , clicked then sub bingonumber


sub bingonumber
SHOWWINDOW w1,@SWRESTORE,101
SETSIZE w1,0,45,sw,sh-100,101
SETFONT w1,"Ariel",500,800,0,101


The number [rnum] now covers the main bingo display board after [start] clicked.
only things visable are, [time$] , [timer], at top of screen.
and , [<Exit Game] ,  [line Call] ,    [Start],    [House Call] ,  [Next Game] ,  "at the bottom of screen"

when [linecall] or [housecall] is clicked, then sub linecall or sub housecall


sub linecall
SHOWWINDOW w1,@SWHIDE,101


Thank You.

Regards

Hugh