Results 1 to 3 of 3

Thread: Question - .Buttons(ARG).Value

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    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
  •  



Click Here to Expand Forum to Full Width