forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Skinning VDS apps...
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2150
Location: A House

PostPosted: Thu Dec 05, 2002 11:27 pm    Post subject: Reply with quote

Mac wrote:
Hey Garrett, Smile

[snip]

I'm beginning to see why NOTITLE (and non-resizable) skinnable
windows would be a lot easier though. Would window text be the
the only problem left then? Confused


Yeah, if going skin, then TEXT would be the only thing left to worry
about. When skinning, I usually only use TEXT from VDS.. I won't
add BUTTON or anything else.. No GROUP either.

Mac wrote:

_____________________________________________________________

Hey Hortalonus, Smile

You're welcome. I'm not sure if the TRANSPARENT style is even
in the VDS3 help file - there's several things that arent...

BTW, I think you'll find that most of us don't use the Dialog
Designer. It's kinda like training wheels - good if ya really
need 'em, but at a certain point they begin to hinder your
progress. LOL, that's my opinion anyway. Wink

Cheers, Mac Smile


Ehhhhh..... Ok, I do still use the Dialog designer a lot. But initially
to just layout the gui. After that, it's all by source code to adjust
and such. Call me lazy or spoiled.. Not sure which. Wink

-Garrett
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Dec 05, 2002 11:34 pm    Post subject: Reply with quote

Lol, prolly both... Razz Laughing

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Dec 06, 2002 12:51 am    Post subject: Reply with quote

OK - looks like a status bar stays the same height as the
title bar when settings are changed. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2150
Location: A House

PostPosted: Fri Dec 06, 2002 3:53 am    Post subject: Reply with quote

That's good to know. I normally don't use the status element myself,
which is why I didn't bother checking for it in the source code. I make
my own status bars using GROUP and TEXT, or if a skinned interface,
then it's part of the bmp.

-Garrett
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 3:05 pm    Post subject: Reply with quote

Hey Garrett, Smile

I found out the status bar isn't exactly the size of the title
bar, but it's based on it.

Here's what I have so far. I think it's finished, but it needs
some more testing, and I have no idea what it does on a
different OS. I'll try to post some examples with it later
and maybe we can get a few folks to test it on different
systems. Wink
____________________________________________________________________________________________
Code:

:GetWindowSpecs
  rem -- Titlebar/status bar/menu height and side/bottom border width --
  %c = "TempWindowToGetWindowSpecs"
  rem -- Normal and RESIZABLE have different title heights --
  if %%resize
     DIALOG CREATE, "GetWindowSpecs",-1,0,200,200,RESIZABLE,CLASS %c
  else
     DIALOG CREATE, "GetWindowSpecs",-1,0,200,200,CLASS %c
  end
    %%b_lside = @div(@diff(@winpos(#%c,W),200), 2)
    %%b_rside = @pred(%%b_lside)
    %%b_lside = @succ(%%b_lside)
    %%b_bottom = %%b_rside
    %%t_height = @diff(@diff(@winpos(#%c,H),200),%%b_bottom)
    %%sb_height = @diff(%%t_height, @succ(%%b_bottom))
  DIALOG ADD,MENU,MenuTest
    %%m_height = @diff(@winpos(#%c,H),@sum(200,%%t_height,%%b_bottom))
  DIALOG CLOSE
  %c = @event()
  %c = ""
  exit

[EDIT] Quite a few changes - am on my way to post a test example.

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group