Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module Fox
#
# Drive box
#
# === Events
#
# The following messages are sent by FXDriveBox to its target:
#
# +SEL_CHANGED+:: sent when the current item changes; the message data is the current drive
# +SEL_COMMAND+:: sent when a new item is selected from the list; the message data is the drive
#
class FXDriveBox < FXListBox
# Current drive [String]
attr_accessor :drive
# File associations [FXFileDict]
attr_accessor :associations
# Returns an initialized FXDriveBox instance
def initialize(p, target=nil, selector=0, opts=FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theDriveBox
end
#
# Set current drive, where _drive_ is a string.
# Returns +true+ on success, +false+ on failure.
#
def setDrive(drive); end
#
# Return current drive as a string.
#
def getDrive(); end
#
# Change file associations, where _assoc_ is an FXFileDict instance.
#
def setAssociations(assoc); end
#
# Return file associations (an FXFileDict instance).
#
def getAssociations(); end
end
end