Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Demo: TreeView + ImageList
#11
Mipooh, to get a screenshot, bring the window into focus, then hit ALT-PrnScr (PrintScreen). It should be near your Scroll Lock key or NumLock.

That basically copies the window into the same place stuff goes when you do a ctrl-c on a document. Then, open up whatever graphics editor you like, and just paste it into a new document. Save it how you like, and you're set.

Actually, just hitting PrintScreen on it's own works, too. But that does your whole screen and wastes space, unless you want to grab the whole screen.
Reply
#12
Ok it´s here:

[Image: TreeviewXP.jpg]

Mipooh

Edit: Changed the picture after changing the code as Zydon said in the following posting.
Reply
#13
Thanks mipooh, now I understand WinXP clientarea and styles. If you change the following lines it may looks better in XP.

[syntax="QBasic"]
' ............

iclr = ILC_COLOR32 OR ILC_MASK

' ............

htv = CreateWindowEx( _
WS_EX_CLIENTEDGE,WC_TREEVIEW, "",_
WS_CHILD OR WS_VISIBLE OR TVS_HASLINES _
OR TVS_LINESATROOT OR TVS_HASBUTTONS,_
2,18,160,rc.nbottom-20,_
hWnd,0,hInstance,0)

' ............

CASE WM_SIZE
' ............
IF ( htv <> 0 ) THEN _
MoveWindow(htv,2,18,160,rc.nBottom-rc.nTop-20,1)

' ............

[/syntax]

It depend to your desktop resolutions you could choose any of these constant: ILC_COLOR16, ILC_COLOR24, ILC_COLOR32.
= inc(¢) Big Grin
Reply
#14
To Zydon:

Welcome to you, and I must tell you up front that you did such a great job so far on your Treeview program in FB! Big Grin !

Truth is, with that fine work you have presented right here, you are *well* on your way to such excellent GUI-based program coding in FB and then some, you got that, man? Wink=b

See you again now, and keep up the awesome work!! :king:



GIVING YOU MY THANKS ON YOUR SUPERB CODING HERE,

[Image: file.php?id=32]
Adigun Azikiwe Polack
One of the Founders of “Aura Flow”
Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger”
Webmaster of the “AAP Official Projects Squad”
url=http://dhost.hopto.org/aapproj/][Image: file.php?id=194][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!! Big Grin !
Reply
#15
Dear Sir Adigun A. Polack,

I'm glad you like the example. I still got a lots more to learn about win32api. Thank you for a warm welcome to the community. And of-course I will share more examples as I'm understand more on how to handle them. Smile

It's a joy being able to get know FB. It's instantly attract me to learn more about it. Thank you, v1ctor for inventing it. FB is one of it's kinds and very friendly 32bit basic compiler and it's community.
= inc(¢) Big Grin
Reply
#16
To Zydon:

You might say that FreeBasic is one of the absolute best freeware-based BASIC programming platforms of its kind, really! Big Grin !! No kidding! I mean, with Allegro game library now built in here as well as Angelo Mottola’s awesome QB-like GFXlib 2 and more, plus the fact that Adosorken is currently working really good and hard on the FB GUI compiler, we in programming heaven and then some, my man!!! ;*)

Look, your programming skills and abilities like that are *definitely* welcome into the FB world, Zydon, and in the QBasicNews.com forums, you are among fellow friends and other programmers who are very happy to share and even exchange knowledge about FB coding and stuff with you! Hey, that is part of what this forumboard here is for, right? Cool

So with that said, do feel free to hop in the pool with us, and be seeing you later! Thank you!! :king:=b



[Image: file.php?id=32]
- Adigun Azikiwe Polack
One of the Founders of “Aura Flow”
Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger”
Webmaster of the “AAP Official Projects Squad”
url=http://dhost.hopto.org/aapproj/][Image: file.php?id=194][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!! Big Grin !
Reply
#17
Quote:Dear Sir Adigun A. Polack,

I'm glad you like the example. I still got a lots more to learn about win32api. Thank you for a warm welcome to the community. And of-course I will share more examples as I'm understand more on how to handle them. Smile

It's a joy being able to get know FB. It's instantly attract me to learn more about it. Thank you, v1ctor for inventing it. FB is one of it's kinds and very friendly 32bit basic compiler and it's community.
hah!!! I know 0.000000001% of the windows API, so you should pat yourself on the back for the job well done!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#18
good work Big Grin
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)