Page 2 of 2

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 1:24 pm
by Roberto Lopez
Czarny_Pijar wrote:
esgici wrote:
JALMAG wrote: Hello Esgici, what compiling?
Hi JALMAG

Sorry for inconvenience :(

My project became old ;)
Bad news... With HMG ver.3.034 this happend again :?
Which is exactly the problem?

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 2:39 pm
by esgici
Czarny_Pijar wrote: Bad news... With HMG ver.3.034 this happend again :?
Hi Czarny,

What is happened ?

Please more specific

Regards

--

Esgici

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 3:02 pm
by Czarny_Pijar
The construction "window in the window" is forbiden now, the compilation error occurs.
( frmAbout inside frmMiniAgenda )

Despite this "SoftSeek" and "ColumnSort" (the gems of this demo) works excellent :)

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 4:45 pm
by Roberto Lopez
Czarny_Pijar wrote:The construction "window in the window" is forbiden now, the compilation error occurs.
( frmAbout inside frmMiniAgenda )

Despite this "SoftSeek" and "ColumnSort" (the gems of this demo) works excellent :)
Could you be so kind to post the sources giving this error?

TIA.

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 5:06 pm
by Czarny_Pijar
The code was taken directly from the kind contribution of esgici (located in this topic):
esgici wrote:Hi Ralph

Please look at one of my humble contributions.

I hope that help you.
Regards
alongside with his corrections:
esgici wrote:Hi JALMAG

Sorry for inconvenience :(

My project became old ;)

- rename MAgenda.Hpj to MAgenda.Hbp
- open this .hbp with HMG-IDE
- add C:\hmg\HFCL\Include to Include paths of configuration tab of Project Browser
- add hfcl to additional libs of configuration tab of Project Browser

and press RUN button :)
Esgici

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 8:35 pm
by esgici
Hi

This is a problem arise after PANEL type windows introduced.

Simply change WINDOW TYPE as MODAL from CHILD.

This is corrected code snap beginning with line 159 in MAgenda.prg.

Code: Select all

      DEFINE WINDOW frmAbout ;
         AT 0, 0 ;
         WIDTH  320 ;
         HEIGHT 300 ;
         MODAL ;
         NOSIZE ;
         NOCAPTION 
Regards

--

Esgici

Re: Grid - Changing the sort order on a column heading click

Posted: Thu Jun 03, 2010 10:13 pm
by Roberto Lopez
Czarny_Pijar wrote:The code was taken directly from the kind contribution of esgici (located in this topic):
Ok.

Nested window definitions were never supported (it just worked in some occasion if you tried).

When I've added panel windows, I've put in place a proper validation that generates the error.

Re: Grid - Changing the sort order on a column heading click

Posted: Fri Jun 04, 2010 11:41 am
by esgici
Roberto Lopez wrote:
Nested window definitions were never supported (it just worked in some occasion if you tried).
Well, no nested window definition included version of Mini Agenda attached.

Enjoy !

Regards

--

Esgici

PS: Please don't forget adding "hfcl" infos to "configuration" page or build script.
MAgendaA6.rar
June 2010 version of Mini Agenda
(6.32 KiB) Downloaded 302 times