Grid - Changing the sort order on a column heading click

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

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

Post 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?
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post 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
Viva INTERNATIONAL HMG :D
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

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

Post 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 :)
Attachments
window_in_the_window_error.PNG
window_in_the_window_error.PNG (10.54 KiB) Viewed 3849 times
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

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

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

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

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post 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
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

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

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post 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 301 times
Viva INTERNATIONAL HMG :D
Post Reply