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 


Notitle Resize

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Jul 19, 2012 1:41 pm    Post subject: Notitle Resize Reply with quote

Anyone know of an easy way to make a no title dialog resizable?
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


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

PostPosted: Thu Jul 19, 2012 6:30 pm    Post subject: Reply with quote

Check the source code archive here at VDSWorld. I'm pretty sure there's one or two examples for that already.
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Jul 19, 2012 8:52 pm    Post subject: Reply with quote

I did look there, but I might have missed it, I'll take a look again. Thanks!
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Jul 19, 2012 10:52 pm    Post subject: Reply with quote

nope, didn't find anything. i was able to make something work. Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


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

PostPosted: Fri Jul 20, 2012 5:12 pm    Post subject: Reply with quote

Well darn it... I had to dig out my old back up drive, but if you do need an example, I can search my archives here now.
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Sat Jul 21, 2012 8:36 pm    Post subject: Reply with quote

Sure if you have something. I was only able to make something work resizing from right and bottom to resize the window.

Here is the app if you want to check it out. It's called Pixel Block and I made it to measure things on my screen. No install, just run. Right click on the window for a menu.


https://www.dropbox.com/s/imeq2g070mz20p9/Pixel%20Block.exe

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Mon Aug 27, 2012 1:19 pm    Post subject: Reply with quote

Code:
 DIALOG CREATE,New Dialog,-1,0,800,400,,resizable,notitle
REM *** Modified by Dialog Designer on 4/25/2011 -08:07 ***
%%k = @strdel(@winexists(@dlgtext()),1,1)
LOADLIB user32.dll
  %%knockout = @lib(user32,SetWindowLongA,INT:,%%k,-16,$40000)
%%knockout = @lib(user32,SetWindowLongA,INT:,%%k,-20,INT: $2000000)
FREELIB user32.dll
dialog show
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 2:30 pm    Post subject: Reply with quote

Some mistakes above, apologies was short on time.

Code corrected below.

Code:


DIALOG CREATE,New Dialog,-1,0,800,400,,resizable
REM *** Modified by Dialog Designer on 4/25/2011 -08:07 ***
%%k = @strdel(@winexists(@dlgtext()),1,1)
LOADLIB user32.dll
%%knockout = @lib(user32,SetWindowLongA,INT:,%%k,-16,$40000)
%%knockout = @lib(user32,SetWindowLongA,INT:,%%k,-20,INT: $2000000)
FREELIB user32.dll
dialog show

:evloop
wait event
goto @event()

:resize
goto evloop

:close
exit
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 3:09 pm    Post subject: Reply with quote

By the way, Pixel Block is a great program!! I have a really old program (12+ years) called 'Screen Calipers' I was using previously. Found it! It's no longer free, and the new interface looks fancy. My version is a blue and red thing Wink

http://www.iconico.com/caliper/
Back to top
View user's profile Send private message AIM Address
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue Aug 28, 2012 8:42 pm    Post subject: Reply with quote

You'll need to add this to the end of your resize loop

Code:

%%k = @strdel(@winexists(@dlgtext()),1,1)
loadlib user32.dll
 %P = @lib(user32,InvalidateRect,BOOL:,INT:%%k,0,1)
 %P = @lib(user32,UpdateWindow,BOOL:,INT:%%k)
freelib user32.dll
 


Refreshes the window. Not compatible with savepos type for some reason.
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Aug 30, 2012 5:23 pm    Post subject: Reply with quote

Cool, thanks! Now I have to adjust for the window border, but this is nicer then the way I have it now and this will come in handy for other things!
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Aug 30, 2012 5:39 pm    Post subject: Reply with quote

Also, BTW I have a copy of Screen Calipers the free version if you want it. I used that a lot also, still do in some cases, but I like mine better. Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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