NewEra 
Author Message
 NewEra

Hi all

I am writing an application using NewEra3.0 and need the functionality
of a "Print Setup Dialog box". Any one knows how I can implement the
standard dialog into NewEra ?

Also, another thing. There seems to be no maximise() function around ! I
need some code which will have the same effect on a window.

regards
David



Wed, 18 Jun 1902 08:00:00 GMT
 NewEra



Quote:
>Hi all

>I am writing an application using NewEra3.0 and need the functionality
>of a "Print Setup Dialog box". Any one knows how I can implement the
>standard dialog into NewEra ?

>Also, another thing. There seems to be no maximise() function around ! I
>need some code which will have the same effect on a window.

Hi David,
It is possible to access all of the common dialogs of which the Print
Dialog box is a member, however you have to use C and the windows SDK
to do it.

The private function __getHWndFromixWindow() allows you to get to the
internal windows handle from your NewEra graphical objects. From there
it is possible to do just about anything. The clik manual has some
examples of how to integrate c and C++ code into NewEra and how to get
windows handles and instances.

What version of NewEra are you running (I have assumed that you are on
a Microsoft platform) ? There are slightly different calls to the SDK
depending on which OS you are running. The clik manual along with a
good windows programming book, e.g. Charles Petzold's Programming
Window's 95, should get you well on the way.

Dalton



Wed, 18 Jun 1902 08:00:00 GMT
 NewEra

Hope this help's (work's with newera 2.2):

function MaximizeWindow( win ixwindow ) returning void
BEGIN_C
  HWND hwnd = __getHWndFromixWindow( win );
  SendMessage( hwnd, (UINT ) WM_SYSCOMMAND,
    (WPARAM) SC_MAXIMIZE, (LPARAM) 0 );
END_C
end function




:
:>Hi all
:>
:>I am writing an application using NewEra3.0 and need the functionality
:>of a "Print Setup Dialog box". Any one knows how I can implement the
:>standard dialog into NewEra ?
:>
:>Also, another thing. There seems to be no maximise() function around ! I
:>need some code which will have the same effect on a window.
:>
:Hi David,
:It is possible to access all of the common dialogs of which the Print
:Dialog box is a member, however you have to use C and the windows SDK
:to do it.
:
:The private function __getHWndFromixWindow() allows you to get to the
:internal windows handle from your NewEra graphical objects. From there
:it is possible to do just about anything. The clik manual has some
:examples of how to integrate c and C++ code into NewEra and how to get
:windows handles and instances.
:
:What version of NewEra are you running (I have assumed that you are on
:a Microsoft platform) ? There are slightly different calls to the SDK
:depending on which OS you are running. The clik manual along with a
:good windows programming book, e.g. Charles Petzold's Programming
:Window's 95, should get you well on the way.
:
:
:Dalton
:



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. NEWERA : NewEra mailing list

2. NewEra 2 to NewEra 3

3. NewEra: is it possible to read windows events from NewEra

4. IxSQLConnect() in NewEra, Is it another NewEra List?

5. VB vs. Informix NewEra

6. Delphi vs Informix NewEra

7. Calling NewEra DLL from Delphi

8. NewEra: button with tooltip

9. Informix NewEra

10. OO 4GL, was: RE: open source and NewEra (was: IIUG Stuff)

11. OTC OO 4GL, was: RE: open source and NewEra (was: IIUG Stuff)

12. OO 4GL, was: RE: open source and NewEra (was: IIUG Stuff)


 
Powered by phpBB® Forum Software