|
-
Aug 6th, 2000, 12:14 PM
#1
Thread Starter
Junior Member
Preface:
My computer department sold us Visual Studio Enterprise for CHEAP. I am trying to teach myself VB/VC++/ASP/MsSQL coming from a C/C++/PHP/mySQL background.
I couldn't find this answer in my MSDN CD, a case of information overload :/ Can someone explain why/how/the purpose of .Buttons taking the LISTVIEW_MODE0 arg?
// --- BEGIN CODE ---
// --- FROM MODULE1 ---
Global Const LISTVIEW_MODE0 = "View Large Icons"
Global Const LISTVIEW_MODE1 = "View Small Icons"
Global Const LISTVIEW_MODE2 = "View List"
Global Const LISTVIEW_MODE3 = "View Details"
Public fMainForm As frmMain
// --- FROM FORM1 ---
Private Sub Form_Paint()
lvListView.View = Val(GetSetting(App.Title, "Settings", "ViewMode", "0"))
Select Case lvListView.View
Case lvwIcon
tbToolBar.Buttons(LISTVIEW_MODE0).Value = tbrPressed ' <<--- ???? LISTVIEW_MODE0 purpose ???
Case lvwSmallIcon
tbToolBar.Buttons(LISTVIEW_MODE1).Value = tbrPressed
Case lvwList
tbToolBar.Buttons(LISTVIEW_MODE2).Value = tbrPressed
Case lvwReport
tbToolBar.Buttons(LISTVIEW_MODE3).Value = tbrPressed
End Select
End Sub
//--- END CODE ---
thanks
----
http://www.learntogo.f.net
-
Aug 6th, 2000, 12:29 PM
#2
Monday Morning Lunatic
There is a collection of buttons, and their Key property is the specific constant.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 6th, 2000, 12:55 PM
#3
Thread Starter
Junior Member
Originally posted by parksie
There is a collection of buttons, and their Key property is the specific constant.
DOH !! That makes total sense, I am supprised I did not catch that in the 1st place.
Thanks
-jfs
----
http://www.learntogo.f.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|