| View previous topic :: View next topic |
| Author |
Message |
Raymond175 Contributor


Joined: 24 Apr 2002 Posts: 72
|
Posted: Sun May 19, 2002 4:01 pm Post subject: 2 simple questions? |
|
|
Hi all,
I've got two simple (?) questions. One about a visual list and one about resising elements:
--- I've made a list, but I don't like the colors of the list. They do not fit my program. That's why I want to remove the scrollbars or want to give them another color.
I found this intresting command to add a horizontal scrollbar:
%P = @sendmsg(@winexists(~LIST1),$0194,1000,0)
So I think it might be possible to delete a bar or to give them another color, but I have no clue about how to archive this! ANYONE?
--- I've made a dialog with the NOTILE style, so there is no resize either. That's why I made my own resize routine which is working perfect, accept for one thing. Everything is flickering when resising.
This is the code I use, maybe there are commands which do not flicker?
%%MouseYpos = @MOUSEPOS(Y)
%%WinHeightOld = %%WinHeight
REPEAT
%%WinHeight = @DIFF(%%WinHeightOld,@DIFF(%%MouseYpos,@MOUSEPOS(Y)))
IF @GREATER(230,%%WinHeight)
%%WinHeight = 230
END
DIALOG SETPOS,, %%WinXpos, %%WinYpos, 275, %%WinHeight
DIALOG SETPOS, Background2, 166, 0, 275, @DIFF(%%WinHeight,216)
DIALOG SETPOS, Background3, @DIFF(%%WinHeight,50), 0, 275, 50
DIALOG SETPOS, MusicList, 132, 10, 255, @DIFF(%%WinHeight,166)
DIALOG SETPOS, ResizeWindow, @DIFF(%%WinHeight,25), 250, 25, 25
UNTIL @NOT(@DLL(KEYBOARD,LBUTTON))
Thanks,
-=Raymond=- |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun May 19, 2002 5:51 pm Post subject: |
|
|
| Quote: | --- I've made a list, but I don't like the colors of the list. They do not fit my program. That's why I want to remove the scrollbars or want to give them another color.
|
You change the background and text color of a list by using a STYLE, but I don't know of any way to change or remove the scrollbars.
| Quote: | | --- I've made a dialog with the NOTILE style, so there is no resize either. That's why I made my own resize routine which is working perfect, accept for one thing. Everything is flickering when resising. |
VDS only likes whole numbers when resizing and things like that, so you will need to use @FORMAT().
Try using:
| Code: | | %%Winheight = @FORMAT(%%Winheight,0) |
After this code:
| Code: |
REPEAT
%%WinHeight = @DIFF(%%WinHeightOld,@DIFF(%%MouseYpos,@MOUSEPOS(Y)))
|
If it still flickers, you might want to put a WAIT 0.5 before your UNTIL statement so it's not resizing so fast.
Hope that helps. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|