Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6038 > unrolled thread
| Started by | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| First post | 2013-10-08 12:21 -0700 |
| Last post | 2013-10-10 14:00 -0700 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
List of Buttons George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-08 12:21 -0700
List of Buttons jls@igsoft.be - 2013-10-08 13:48 -0700
Re: List of Buttons George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-08 21:48 -0700
Re: List of Buttons Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-10-09 10:05 +0100
Re: List of Buttons George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-09 03:13 -0700
Re: List of Buttons Norbert Kolb <n.kolb_entferne_dies@aon.at> - 2013-10-09 13:51 +0200
Re: List of Buttons George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-10 14:00 -0700
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2013-10-08 12:21 -0700 |
| Subject | List of Buttons |
| Message-ID | <066efc10-a4d5-4547-b8e1-0855f9757957@googlegroups.com> |
Hi all, I want to take a list of buttons in an DIALOGWINOW. How can i take a array with all buttons? Thanks in advance George
[toc] | [next] | [standalone]
| From | jls@igsoft.be |
|---|---|
| Date | 2013-10-08 13:48 -0700 |
| Message-ID | <505efa23-b7e3-4622-8387-4b87e3ad88f0@googlegroups.com> |
| In reply to | #6038 |
Hi George Are you talking about a toolbar buttons ? If yes I think it´s not possible on a dialog, we put push button with image on it Jean-Luc Stassen
[toc] | [prev] | [next] | [standalone]
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2013-10-08 21:48 -0700 |
| Message-ID | <e065dd08-853a-4a7b-a9cc-784914a1dc3d@googlegroups.com> |
| In reply to | #6041 |
Hi Jean-Luc, I mean PushButtons Regards, George
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2013-10-09 10:05 +0100 |
| Message-ID | <f%85u.11$JS6.6@fx31.am4> |
| In reply to | #6038 |
On 08/10/2013 20:21, George Tritsos wrote: > Hi all, > > I want to take a list of buttons in an DIALOGWINOW. > How can i take a array with all buttons? Initial thoughts: Do all the buttons have VO objects or are some only in the resource? Does this apply to one dialog window or many? If many do they inherit from a superclass you control or directly from DIALOGWINDOW? Are there any other controls on the dialog? I would probably start with GetAllChildren() and then extract the buttons from that. But I would also consider a subclassed button that registered with a subclassed Dialog.
[toc] | [prev] | [next] | [standalone]
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2013-10-09 03:13 -0700 |
| Message-ID | <1c2e3c6e-8a67-4ab8-983a-298801881004@googlegroups.com> |
| In reply to | #6043 |
Hi Malcolm, No all buttons of VO objects, i need to take a list of buttons of my window in run time. e.g. CLASS MyWinDlg INHERIT DIALOGWINDOW PROTECT Btn1 AS PUSHBUTTON PROTECT Btn2 AS PUSHBUTTON PROTECT Btn3 AS PUSHBUTTON PROTECT Btn4 AS PUSHBUTTON METHOD init() CLASS MyWinDlg RETURN FUNCTION MyListButtons( oWin AS Window) AS ARRAY LOCAL aListBtns AS ARRAY // fill the array with pushbuttons RETRUN aListBts METHOD Btn4() CLASS MyWinDlg x:=MyListButtons(SELF) RETURN NIL When i select btn4, then i want to take the list of buttons. Thanks, George
[toc] | [prev] | [next] | [standalone]
| From | Norbert Kolb <n.kolb_entferne_dies@aon.at> |
|---|---|
| Date | 2013-10-09 13:51 +0200 |
| Message-ID | <525542b7$0$2358$91cee783@newsreader04.highway.telekom.at> |
| In reply to | #6044 |
Hi George,
whats about
FUNCTION MyListButtons( oWin AS Window) AS ARRAY
LOCAL aListBtns AS ARRAY
LOCAL aChildren AS ARRAY
LOCAL i AS DWORD
aChildren := oWin:GetAllChildren()
aListBtns := {}
FOR i := 1 UPTO ALen(aChildren)
IF IsInstanceOf(aChildren[i], #PUSHBUTTON)
AAdd(aListBtns, aChildren[i])
ENDIF
NEXT
RETURN aListBtns
Norbert
[toc] | [prev] | [next] | [standalone]
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2013-10-10 14:00 -0700 |
| Message-ID | <535e5a55-5cbe-469b-91ab-dabd84ac0f3b@googlegroups.com> |
| In reply to | #6046 |
Hi Norbert, It works perfect!!!!! Thanks for help Regards George
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web