View previous topic :: View next topic |
Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Jul 19, 2012 1:41 pm Post subject: Notitle Resize |
|
|
Anyone know of an easy way to make a no title dialog resizable? _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Jul 19, 2012 6:30 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Jul 19, 2012 8:52 pm Post subject: |
|
|
I did look there, but I might have missed it, I'll take a look again. Thanks! _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Jul 19, 2012 10:52 pm Post subject: |
|
|
nope, didn't find anything. i was able to make something work. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Jul 20, 2012 5:12 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Sat Jul 21, 2012 8:36 pm Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Mon Aug 27, 2012 1:19 pm Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 2:30 pm Post subject: |
|
|
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 |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 3:09 pm Post subject: |
|
|
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
http://www.iconico.com/caliper/ |
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Tue Aug 28, 2012 8:42 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Aug 30, 2012 5:23 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Aug 30, 2012 5:39 pm Post subject: |
|
|
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. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
|