Why does adding DEFINE SPLITBOX cause havoc (lots of error messages, disappearing buttons etc as follows :-
Try it out yourself as in the following code snippet:-
Yup, silly mistake by me but on further testing I found that although EDIT/EDIT EXTENDED now works, my TOOLBAR on my Main Form will disappear once I chose to Print & Preview.
#include "minigui.ch"
PROC Main()
DEFINE WINDOW MainForm ;
AT 0,0 ;
WIDTH 600 ;
HEIGHT 480 ;
TITLE 'FAS4MiniGUI' ;
MAIN ; // MDI
ON INIT OpNEdEx() ;
ON RELEASE DBCLOSEALL()
DEFINE MAIN MENU
POPUP '&File'
ITEM 'Exit' ACTION MainForm.Release
END POPUP
END MENU
DEFINE STATUSBAR FONT 'MS Sans Serif' SIZE 9
KEYBOARD
DATE
CLOCK
END STATUSBAR
// VERY IMPORTANT, commenting away solves EDIT/EDITEXTENDED issue but cannot show 'coolbar effect'
DEFINE SPLITBOX
DEFINE TOOLBAR ToolBar_1 BUTTONSIZE 25,25 FLAT BORDER
BUTTON Button_Close ;
PICTURE 'exit.bmp' ;
TOOLTIP 'Close this Window' ;
AUTOSIZE ;
ACTION MainForm.Release ;
SEPARATOR
END TOOLBAR
END SPLITBOX
END WINDOW // MainForm()
CENTER WINDOW MainForm
ACTIVATE WINDOW MainForm
RETU // EdExHavoc.Main
PROC OpNEdEx()
USE TEST INDE TEST
EDIT EXTENDED
RETU