Easy to Create, Easy to Change - Easy to use!


Can I use function like THIS MODAL DIALOG at [MENU]?


Started by Mohd Sedik Zakaria
Search
You will need to Sign In to be able to add or comment on the forum!

Can I use function like THIS MODAL DIALOG at [MENU]?

CAN I USE FUNCTION LIKE THIS MODAL DIALOG AT MENU?

ALSO  CAN YOU CREATE AT MENU SAME AT FORM, CAUSE WHEN I CANT USE setstyle() FUNCTION AT MENU ITS VERY IMPORTANT FOR ME.

IF NO, CAN YOU GUIDE ME OTHERS WAY?

Written by Mohd Sedik Zakaria 17/02/16 at 13:24:07 Dataease [{8}]FIVE

Re:Can I use function like THIS MODAL DIALOG at [MENU]?

You can use a FORM as a Menu, so if that is what you want - simply use a form.

In DFW Forms, Menus, Reports, DQL's are all just documents so they can be used as you please.

You can for instance start your application by running DQL.

When it comes to Modal, you have to be careful for what you wish for.

Modal means that everything behind it is disabled so you HAVE to deal with the Modal Dialogue and end with closing it. If you open other forms from a Modal Dialogue they should ALSO be Modal, as if not you stand to compromise your application.

Modal however, is just a state. You can make a Maximized form Modal if you like.

In 8.5 we have worked a lot on making the end user application better so you can now open an application in Full Screen or Kiosk mode, and you can also run an application without File Menu, Tab bar, Tool bar and Status Bar. 

You can also change the "look" of a window by changing the Border, and you can also easily place Windows where you want on screen ex. Center/Center.

One problem we had in the "Old days" was that you couldn't size and place Forms the way you wanted. If you ran Maximized all Windows needed to be maximized and if  you opened a window that was normalized all the other windows went to Normalized state too.

This has been fixed in 8.5 as you can easily size forms to Maximized size but keep them as windows, and then you can load othe Windows on top in any place you like.

One new WindowType is NorMaxMax() which looks like MaxiMized but is actually a normalized window that is full screen and without borders.

SetCurrent

Function::Internal
SetCurrent

SetCurrent("FuncName","param1","param2"...)
Set a status to DataEase. This can be printers, windows etc.

WindowBorderNothingParameter
- NoEdge that removes caption and borders.
- NoCaption removes the caption
- Caption add back the caption
- thin what windows calls a BORDER
- thick what windows calls a THICKFRAME
- normal what windows calls a DLGFRAME
WindowClassNothingParameters
- Modal makes the current window modal
- Normal turns off modal for all windows
WindowPosNothingx, y, [width], [height] inside the client windows, can use + or - to add or subtract to current size position or T=top and B=bottom for y and L=left and R=right for x and C=center for both x and y.
WindowSizeNothingwidth, height, [x], [y] inside the client windows, can use + or - to add or subtract to current size position or T=top and B=bottom for y and L=left and R=right for x and C=center for both x and y.
WindowTypeNothingParameter
- NorMax normalizes the windows and makes it max size in the client frame.
- NorMaxMax normalizes the windows and makes it max size in the client frame. Borders and caption removed.
- Normal mormalized the window
- Maximize maximizes the window
- Minimize minimizes the window

More to come.

Written by DataEase 17/02/16 at 13:31:38 Dataease [{8}]FIVE