News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to create a hyperlink?

Started by Stas_Rocketman, April 15, 2012, 02:13:00 PM

Previous topic - Next topic

dedndave

sorry - i misunderstood...
QuoteHi there Force ...nice to meet you !
You link leads us to a page were you have Call Listview From Menu
"AniMultipleWindows.zip"

hfheatherfox07

LOL

the link in his hyperlink example

Gunner

~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

dedndave

Quote from: hfheatherfox07 on May 16, 2012, 01:35:04 AM
LOL

the link in his hyperlink example
ohhhhhhhhhh   :P

Rob - nice example
i suspect you could also do it by displaying it as an HTML with an "a" tag

Force

Hi hfheatherfox07
nice 2 meet u too
At the begining i just wanted to call listview from menu later i changed idea
closing menu.... opening child window like when we were programing on DOS times
I got ur example its nice I may use it in coming projects

in fact my plan is small window will get bigger slowly while its opening
and it will get smaller while its closing I did it in java b4
but i couldnt do it in assembly yet
do you have any idea for it ?
Never Stop Until You Are Better Than The Best

dedndave

neat idea   :P

in WM_CREATE, you could use SetTimer
then handle WM_TIMER messages to set the window size

the same could be done in reverse when you receive WM_DESTROY

Force

Thanks Dave i will try it soon  :U
Never Stop Until You Are Better Than The Best


hfheatherfox07

Quote from: Force on May 16, 2012, 08:38:54 AM
Hi hfheatherfox07
nice 2 meet u too
At the begining i just wanted to call listview from menu later i changed idea
closing menu.... opening child window like when we were programing on DOS times
I got ur example its nice I may use it in coming projects

in fact my plan is small window will get bigger slowly while its opening
and it will get smaller while its closing I did it in java b4
but i couldnt do it in assembly yet
do you have any idea for it ?

I think I just might .... I have an example that lets you animate the window  by using 2 destination rects ...I have an example were I can make the window animate to open from the corner of the screen to open and close there too .... but you can do what ever you want it to do with different co-ordinates in the rect definition
I made a note for my self and bring it on my flash drive tomorrow and upload it for you
....in any case Dave was right..... you are going to have to use a timer to slow down the animation

hfheatherfox07

Quote from: Force on May 16, 2012, 08:38:54 AM
Hi hfheatherfox07
nice 2 meet u too
At the begining i just wanted to call listview from menu later i changed idea
closing menu.... opening child window like when we were programing on DOS times
I got ur example its nice I may use it in coming projects

in fact my plan is small window will get bigger slowly while its opening
and it will get smaller while its closing I did it in java b4
but i couldnt do it in assembly yet
do you have any idea for it ?

Disregard what I said before ... I had another Brain fart day .... LOL..... in the invoke animatewindow API call  the 500 is your timer ...there is no need to add timer
switch all your 500 to 2500 (it is in milliseconds) also you can make the window open like in DOS and close to here is your source modified to do that ...at least this is what I think you want  :U

Let me know if this is the effect you wanted when you open and close child window
For the heck of it since I promised that other source I brought it ....SO I will post it

Force

heather what i mean is ... opening window  from the smallest to bigger *by changing size*
i got ur ani window example b4 its nice
Never Stop Until You Are Better Than The Best

dedndave

i think it does change size - lol
it's hard to tell because it's also moving

hfheatherfox07

Quote from: Force on May 19, 2012, 04:51:22 PM
heather what i mean is ... opening window  from the smallest to bigger *by changing size*
i got ur ani window example b4 its nice

That is doable ... I found a bunch of hex value commands that are not included in the windows.inc .... instead of just AW_CENTER etc.....
can you please post a small video or a gif of video ..... SO I know what you want exactly ?

hfheatherfox07

Quote from: dedndave on May 19, 2012, 06:01:50 PM
i think it does change size - lol
it's hard to tell because it's also moving

The window opening from one corner slowly in diagonal to open that I can do  .....

In theory we should be able to make the window move across the screen  with a timer proc
invoke MoveWindow,hwnd,0,0,rec.right,rec.bottom,TRUE   to     invoke MoveWindow,hwnd,50,50,rec.right,rec.bottom,TRUE
we we'd need system metrics in there some were too  LOL

Wat do you think dedndave ?

dedndave

welllll
i think you start with....
where and how big you want the window to be when you are done
find the center of that window
make smaller windows centered on the same spot, gradually larger and larger
it would take a little experimentation to see how many steps and how fast
it might flicker and not be as cool as it sounds

although that would be kind of a cool effect...
i like my shit to SNAP onto the screen - lol
i want it to appear to be done, just BEFORE i hit enter   :bg

i was thinking of drawing the window while it is invisible - then BANG - snap it onto the screen
back in the days of DOS, we used to go to great lengths to achieve that effect

a good example is one i am working on now
it displays a bitmap, which is pretty large
just before it does, it finds the average color value of that bitmap to use as the background color
i played some tricks and got that average calculation to be pretty fast, but there is still a slight delay
i could make the app window and everything invisible - then snap it on when done   :8)