|
OCX
Jan 24, 2013 10:45:05 GMT 1
Post by floyesoft on Jan 24, 2013 10:45:05 GMT 1
hi how to have new control like OCX WebBrowser or DateTimePicker present in vb but not in gfa ?
|
|
|
OCX
Jan 24, 2013 11:56:40 GMT 1
Post by dragonjim on Jan 24, 2013 11:56:40 GMT 1
The easiest answer to your question is: that they haven't been implemented into the GFA OCX (or ActiveX) file.
The Good-ish news:
1. OCX Monthview allows for date (but not time) selection; you could customise a text box for the time, possible using the OCX UpDown control for easier editting.
2. It is possible to access a web browser by creating an Internet Explorer object (I know many people now use Chrome and Firefox, but not everyone; whereas IE is on EVERY Windows computer). To do this, use the following code:
dim iep as Object Set iep = CreateObject("InternetExplorer.Application")
This IE object is then controllable by using the standard IE methods, etc such as:
iep.Visible = (True or False); iep.Navigate(webpage); iep.quit ...and all the rest.
This may not be the answer you were hoping for, I hope it helps.
|
|
|
OCX
Jan 28, 2013 22:41:32 GMT 1
Post by 649psoft2 on Jan 28, 2013 22:41:32 GMT 1
Gfa Basic has the standard Win32 controls where they left off development before folding. To continue an .OCX Active X control or COM object has to be made and I think GFA used the Watcom C compiler, but it must be outside the gfa .OCX and then made access able from the IDE. Not all languages are all things to everyone and they don't support the same objects as standard. A example a number of controls in VB 6 are available added by 3rd party. Sjouke Hamstra has started with the use of COM objects and may be working on this aspect of creating new controls. see: gfabasic32.blogspot.com Alternatively controls of a different type can be created as proprietary structured objects with methods and then if needed implemented in an .lg32 library file.
|
|