folderbrowserdialog

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 2 Imported by: 0

README

folderbrowserdialog

golang folderbrowserdialog

package main

import (
	"fmt"

	"github.com/Tobotobo/folderbrowserdialog"
)

func main() {
	if selectedPath, ok := folderbrowserdialog.Show(); ok {
		fmt.Println(selectedPath)
	} else {
		fmt.Println("Cancel")
	}
}

image

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show() (folderPath string, accepted bool)

Types

type FolderBrowserDialog

type FolderBrowserDialog struct {
	InnerValue folderBrowserDialog
}

func Description

func Description(description string) *FolderBrowserDialog

func HideNewFolderButton

func HideNewFolderButton() *FolderBrowserDialog

func New

func New() *FolderBrowserDialog

func Owner

func Owner(owner win.HWND) *FolderBrowserDialog

func RootFolder

func RootFolder(path string) *FolderBrowserDialog

func SelectedPath

func SelectedPath(path string) *FolderBrowserDialog

func (*FolderBrowserDialog) Description

func (dlg *FolderBrowserDialog) Description(description string) *FolderBrowserDialog

func (*FolderBrowserDialog) HideNewFolderButton

func (dlg *FolderBrowserDialog) HideNewFolderButton() *FolderBrowserDialog

func (*FolderBrowserDialog) Owner

func (dlg *FolderBrowserDialog) Owner(owner win.HWND) *FolderBrowserDialog

func (*FolderBrowserDialog) RootFolder

func (dlg *FolderBrowserDialog) RootFolder(path string) *FolderBrowserDialog

func (*FolderBrowserDialog) SelectedPath

func (dlg *FolderBrowserDialog) SelectedPath(path string) *FolderBrowserDialog

func (*FolderBrowserDialog) Show

func (dlg *FolderBrowserDialog) Show() (selectedPath string, accepted bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL