00001
00002
00003
00004
00005 #ifndef __GCOMBO2_H
00006 #define __GCOMBO2_H
00007
00009 class LgiClass GCombo :
00010 public GView,
00011 public ResObject
00012 {
00013 private:
00014 class GComboPrivate *d;
00015
00016 public:
00018 GCombo
00019 (
00021 int id,
00023 int x,
00025 int y,
00027 int cx,
00029 int cy,
00031 const char *name
00032 );
00033 ~GCombo();
00034
00035
00036 const char *GetClass() { return "GCombo"; }
00038 bool Sort();
00040 void Sort(bool s);
00042 int Sub();
00044 void Sub
00045 (
00047 int Type
00048 );
00050 void Value(int64 i);
00052 int64 Value();
00054 bool Name(const char *n);
00056 char *Name();
00058 GSubMenu *GetMenu();
00060 void SetMenu(GSubMenu *m);
00061
00064 enum SelectedState
00065 {
00067 SelectedDisable,
00069 SelectedHide,
00071 SelectedShow
00072 };
00073
00075 SelectedState GetSelectedState();
00077 void SetSelectedState(SelectedState s);
00078
00079
00080
00082 bool Delete();
00084 bool Delete(int i);
00086 bool Delete(char *p);
00088 void Empty();
00090 bool Insert
00091 (
00093 const char *p,
00095 int Index = -1
00096 );
00098 int GetItems();
00100 char *operator [](int i);
00101
00102
00103 virtual void DoMenu();
00104
00105
00106 int OnEvent(GMessage *Msg);
00107 void OnMouseClick(GMouse &m);
00108 bool OnKey(GKey &k);
00109 void OnFocus(bool f);
00110 void OnPaint(GSurface *pDC);
00111 void SetFont(GFont *Fnt, bool OwnIt = false);
00112 void OnAttach();
00113 bool SetPos(GRect &p, bool Repaint = false);
00114 };
00115
00116 #endif
00117