new types and classes
This commit is contained in:
parent
20df39ee4e
commit
9a3a1b084a
26 changed files with 1324 additions and 2 deletions
33
lib/widgets/combobox.ts
Normal file
33
lib/widgets/combobox.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { NativeClasses } from "../milsko";
|
||||
import { Widget } from "../widget";
|
||||
import { WidgetOptions } from "../types";
|
||||
|
||||
export class ComboBox extends Widget {
|
||||
constructor(options: WidgetOptions) {
|
||||
super(NativeClasses.ComboBox, options);
|
||||
}
|
||||
|
||||
public setAreaShown(value: number): this {
|
||||
return this.setInteger("IareaShown", value);
|
||||
}
|
||||
|
||||
get areaShown(): number {
|
||||
return this.getInteger("IareaShown");
|
||||
}
|
||||
|
||||
set areaShown(value: number) {
|
||||
this.setInteger("IareaShown", value);
|
||||
}
|
||||
|
||||
public setValue(value: number): this {
|
||||
return this.setInteger("Ivalue", value);
|
||||
}
|
||||
|
||||
get value(): number {
|
||||
return this.getInteger("Ivalue");
|
||||
}
|
||||
|
||||
set value(value: number) {
|
||||
this.setInteger("Ivalue", value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue