I have a window that is used as a search window within the application I'm working with, and I want to reuse it within a different part of the application. The problem I'm having, is that the window was that part of the selection criteria was designed as a code table instead of a drop down...
Does anyone know of a way to have text wrap on a command button? I have tried resizing it, and all that happens is the text gets cut off. I also did not see any properties listed that I could set to get the text wrap. I am using PB 7.0.
Daniel
Gary,
I do not know of a way you can make it appear without re-retrieving the datawindow. But, the one thing you can do is try coding something similar to the following in a post save or update event.
dw_1.Reset()
dw_1.Retrieve(retrieval arguments if needed)
This will reset the window and...
getjbb,
Try the following code and see what happens.
idw_child_CB_Set.InsertRow(0)
idw_child_CB_Set.SelectRow(0,FALSE)
idw_child_CB_Set.SetRow(1)
idw_child_CB_Set.SelectRow(1,TRUE)
By inserting a row into the datawindow and then setting the row, you should be able to have the row display the...
PBP,
Are these rows going to be inserted or retrieved onto the datawindow? If they are going to be inserted, I would place your code in either the insert or pre_insert event to set the edit mask for the column.
If they are going to be retrieved onto the datawindow, then place your code in the...
Keith,
If you are using a dddw there should be a selectionchanged event for the drop down datawindow. Put your code in the selection changed event instead of itemchanged and see if that does the trick.
Daniel
If this is happening when you are attempting to save the datawindow, try dw_1.Accepttext() and see if that solves your problem. From what you said, it sounds like this is happening when you insert a row. AcceptText() will place a value in the buffer and should stop this error from happening.
If you have a backup copy of the datawindow soemwhere remove it from the library list you are trying to migrate. If you are able to complete the migration, copy the datawindow back into the library you removed it from or recreate the datawindow all together.
Girls,
All your data can not be committing OK if you are getting the Datawindow error. I had this happen to me and the problem was the datatypes in the code being used for updating did not match the datatypes in the table in the database. So I would start there and see if that solves your...
Try using papersize = 13 and then playing with the left and right margins until you get it formatted the way that you want it. That is about the only other thing I can think of that you might be able to do. Either that or reformat your report so that it fits into one of the options.
Daniel32
ESC1N,
You can look at print.property in pb help. There it tells you how to specify the paper size that you want to have printed.
To print in landscape, you would code it as
dw_1.Object.DataWindow.Print.Orientation = 1 (Landscape)
There is a long list of all the paper sizes that you can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.