Re: [MSEide-MSEgui-talk] HTML frame behavior: how to simulate ?

2012-09-23 Thread Martin Schreiber
On Sunday 23 September 2012 19:39:40 Ivanko B wrote: > Me need to change between different submodules over a single tabpage > of the main form on selection in the main menu. How can > "ttabpage.OnGetSubform" be used in this approach ? > Return the wanted submodule class. Martin --

Re: [MSEide-MSEgui-talk] TmainMenu: items shit after inheritance

2012-09-23 Thread Martin Schreiber
On Sunday 23 September 2012 15:36:54 Ivanko B wrote: > Now compiles :) > > PS: > Inherited menu items are not marked as inherited in MFM-file as it's > done with fields of TMSESQQuery. Is this approach reliable ? > Menu items are no components. The menu component has the inherited flag. Martin --

Re: [MSEide-MSEgui-talk] Code to traverse (to access at TMenuItem) all items of TMainMenu widget in run-time?

2012-09-23 Thread Sieghard
Hallo Ivanko, Du schriebst am Sun, 23 Sep 2012 22:59:50 +0500: > while not (pm = nil) do begin > should be > while pm <> nil do begin Well - what's the mathematical / logical difference? (Do these generate different code, even?) -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohn

Re: [MSEide-MSEgui-talk] Code to traverse (to access at TMenuItem) all items of TMainMenu widget in run-time?

2012-09-23 Thread Ivanko B
Instead of while not (pm = nil) do begin should be while pm <> nil do begin :) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: ht

Re: [MSEide-MSEgui-talk] HTML frame behavior: how to simulate ?

2012-09-23 Thread Ivanko B
Me need to change between different submodules over a single tabpage of the main form on selection in the main menu. How can "ttabpage.OnGetSubform" be used in this approach ? -- Everyone hates slow websites. So do we. Mak

Re: [MSEide-MSEgui-talk] Code to traverse (to access at TMenuItem) all items of TMainMenu widget in run-time?

2012-09-23 Thread Ivanko B
With the "parenmtmenu" property, it seems working: // procedure checkmenureenablebyname(const aitems: tmenuitems); var int1: integer; cf: menuenableccheckfuncty; pm: tmenuitem; begin menuitemssetstate(aitems,false); {disabling all menu items to enable then conditionally}

Re: [MSEide-MSEgui-talk] Code to traverse (to access at TMenuItem) all items of TMainMenu widget in run-time?

2012-09-23 Thread Ivanko B
procedure checkmenureenablebyname(const aitems: tmenuitems); var int1: integer; s1: string; begin menuitemssetstate(aitems,false); with aitems do begin {индивидуальные пункты меню} for int1:= 0 to count-1 do begin with items[int1] do begin if mainmenucheckhashlist.find(name,pointer(c

Re: [MSEide-MSEgui-talk] Code to traverse (to access at TMenuItem) all items of TMainMenu widget in run-time?

2012-09-23 Thread Ivanko B
> procedure dosomething(const aitems: tmenuitems); > var > int1: integer; > begin > with aitems do begin > for int1:= 0 to count-1 do begin >with items[int1] do begin > //do something > if count > 0 then begin //avoid to create empty submenu list > dosomething(submenu); > e

Re: [MSEide-MSEgui-talk] TmainMenu: items shit after inheritance

2012-09-23 Thread Ivanko B
Now compiles :) PS: Inherited menu items are not marked as inherited in MFM-file as it's done with fields of TMSESQQuery. Is this approach reliable ? -- Everyone hates slow websites. So do we. Make your web apps faster wi

Re: [MSEide-MSEgui-talk] TmainMenu: items shit after inheritance

2012-09-23 Thread Martin Schreiber
On 23.09.2012 10:17, Ivanko B wrote: > It doesn't compile: Should work on Windows too in git master 4cb04cb58043b2f49fd05b5a8487f58f7244ce8e. Martin -- Everyone hates slow websites. So do we. Make your web apps faster w

Re: [MSEide-MSEgui-talk] TmainMenu: items shit after inheritance

2012-09-23 Thread Ivanko B
It doesn't compile: // Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling apps\ide\mseide.pas Compiling .\lib\common\kernel\mseclasses.pas Compiling .\lib\common\kernel\mseclass

Re: [MSEide-MSEgui-talk] TmainMenu: items shit after inheritance

2012-09-23 Thread Martin Schreiber
On Saturday 22 September 2012 12:13:49 Ivanko B wrote: > - create a new menu on PARENT1FO & assign it to the form - is may also > assigns this menu on PARENT2FO but this assignment is unsteady - the > only choice in the combo is is "parent1.tmainmenu1" that's the > inherited menu not the one we can